数据湖计算 DLC REPLACE TABLE AS SELECT

CREATE [OR REPLACE] TABLE table_identifierUSING iceberg [ COMMENT table_comment ] [ PARTITIONED BY ( col_name1, transform(col_name2), … ) ] [ LOCATION path ] [ TBLPROPERTIES ( property_name=property_value, ..。

相关产品
数据湖计算 DLC 产品页,含版本规格、价格与购买入口。

一、说明

·支持内核:SparkSQL。

·适用表类型:外部 Iceberg 表、原生 Iceberg 表。

·用途:保留表 history 情况下,从目标表更新替换表快照 snapshot。

二、示例

CREATE OR REPLACE TABLE dempts_replaceUSING icebergCOMMENT 'table create as replace' PARTITIONED BY (eno, dno) TBLPROPERTIES ('write.format.default'='avro') LOCATION '/warehouse/db_001/dempts_replace'AS SELECT * from dempts;

赞 (0)
上一篇 4天前
下一篇 4天前