tencent cloud

Feedback

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;
    
    
    
    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 avaliable.

    7x24 Phone Support