tencent cloud

All product documents
Data Lake Compute
ALTER TABLE ... WRITE DISTRIBUTED BY PARTITION
Last updated: 2024-08-07 17:18:21
ALTER TABLE ... WRITE DISTRIBUTED BY PARTITION
Last updated: 2024-08-07 17:18:21

Description

Supported engine: SparkSQL
Applicable table: External and native Iceberg tables
Purpose: Change data distribution policy of partitioned table.

Statement

ALTER TABLE table_identifier
WRITE DISTRIBUTED BY PARTITION
[ LOCALLY ORDERED BY
{col_name [ASC|DESC] [NULLS FIRST|LAST]}[, ...]]

Example

ALTER TABLE dempts WRITE DISTRIBUTED BY PARTITION;
ALTER TABLE dempts WRITE DISTRIBUTED BY PARTITION LOCALLY ORDERED BY id;



Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support