All Products
Search
Document Center

Realtime Compute for Apache Flink:Manage partitions

Last Updated:Aug 20, 2026

This topic describes how to query, add, and delete partitions in Flink.

Query partitions

You can view all partitions of a Fluss table.

  1. Log on to the Real-time Compute for Apache Flink console.

  2. For the target Streaming Compute Flink workspace, click Console in the Actions column.

  3. In the navigation pane on the left, choose Development > Scripts > New Temporary Script.

  4. Write and run the SQL statement.

SHOW PARTITIONS `my-catalog`.`my_db`.`my_part_pk_table`; 
Note

This operation displays all partitions of a partitioned table and does not support filtering partitions based on specified conditions.

Add a partition

You can add a partition to an existing partitioned table.

ALTER TABLE my-catalog.my_db.my_part_pk_table 
ADD PARTITION (dt = '2025-03-05');

Delete a partition

You can manually delete an existing partition.

ALTER TABLE my-catalog.my_db.my_part_pk_table 
DROP PARTITION (dt = '2025-03-05');