This topic describes how to query, add, and delete partitions in Flink.
Query partitions
You can view all partitions of a Fluss table.
-
For the target Streaming Compute Flink workspace, click Console in the Actions column.
-
In the navigation pane on the left, choose .
-
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');