ALTER TABLE table_name [ PARTITION (partition_spec) ] SET LOCATION 'new location';
table_name:数据表的名称。PARTITION (partition_spec):指定分区列。'new location':新的表或者分区在 tencent cos 上的位置。ALTER TABLE tbl PARTITION (a='1', b='2') SET LOCATION '/path/to/part/ways';ALTER TABLE tbl SET LOCATION '/path/to/part/ways';
文档反馈