问题1:大数据计算MaxCompute错误:(1, 19) insert into HASH CLUSTERED table/partition comp is not current supported 插入表数据报错,表结构是CREATE TABLE IF NOT EXISTS comp
(file STRING,
x DOUBLE,
y DOUBLE,
aaa BIGINT,
bbb BIGINT,
)
CLUSTERED BY (file ASC,aaa ASC,bbb ASC) sorted by (file ASC,aaa ASC,bbb ASC) into 4096 buckets; 该如何插入?
问题2:语法应该是对的, clustered table and partition. 这种类型的表如何插入
大数据计算MaxCompute错误:(1, 19) insert into HASH 该如何插入?[阿里云MaxCompute]
「点点赞赏,手留余香」
还没有人赞赏,快来当第一个赞赏的人吧!
当在MaxCompute中执行类似以下语句时出现错误 “(1, 19) insert into HASH CLUSTERED table/partition comp is not currently supported”:
这个错误是因为MaxCompute目前不支持使用
HASH CLUSTERED
关键字进行数据插入。在MaxCompute中,表的数据存储方式由系统自动管理,无需手动指定数据的分布方式。要解决此问题,请删除
HASH CLUSTERED
关键字,并使用普通的INSERT INTO
语句将数据插入到表中。例如:请确保您的INSERT语句符合MaxCompute支持的语法规范,并且没有额外的关键字或语法错误。
回答1:插入的语法可以参考下这个文档
https://help.aliyun.com/zh/maxcompute/user-guide/insert-or-update-data-into-a-table-or-a-static-partition?spm=a2c4g.11186623.0.i197#section-b8d-3ac-gzr
回答2:不支持insert into,insert overwrite可以
分区表可以参考下文档里insert overwrite的示例模板https://help.aliyun.com/zh/maxcompute/user-guide/insert-or-update-data-into-a-table-or-a-static-partition?spm=a2c4g.11186623.0.i18,此回答整理自钉群“MaxCompute开发者社区2群”