根据雅典娜·冰山文档,支持map类型。
为什么这两种说法都不起作用?
CREATE TABLE iceberg_test1 (id string, themap map)
LOCATION 's3://mybucket/test/iceberg1'
TBLPROPERTIES ( 'table_type' = 'ICEBERG' );错误:
无法解析冰山查询
第二次尝试:
CREATE TABLE iceberg_test1 (id string, themap map<varchar,varchar>)
LOCATION 's3://mybucket/test/iceberg1'
TBLPROPERTIES ( 'table_type' = 'ICEBERG' );同样的错误:
无法解析冰山查询
发布于 2022-06-12 15:36:28
map (没有指定键/值类型)和varchar都不是有效的Iceberg类型。参见有效类型的Iceberg文档。
CREATE TABLE iceberg_test1 (id string, themap map<string, string>)
LOCATION 's3://mybucket/test/iceberg1'
TBLPROPERTIES ( 'table_type' = 'ICEBERG' );只要您有访问S3位置的权限,就可以工作。
https://stackoverflow.com/questions/72298676
复制相似问题