Skip to content

Conversation

@baiyangtx
Copy link

@baiyangtx baiyangtx commented Aug 26, 2025

Purpose

To support drop partition from top level in spark if partition spec with one more fields

example:

CREATE TABLE tbl (id int, data string) 
USING paimon 
PARTITIONED BY (dt string, hour string, event string);

ALTER TABLE tbl DROP PARTITION (dt='2023-01-01');

Tests

  • DDLTestBase.scala
  • DropPartitionParserTest.java
  • PaimonPartitionManagementTest.scala

API and Format

No

Documentation

No

@baiyangtx baiyangtx force-pushed the spark-drop-partition branch from 95df33f to 012f15c Compare August 26, 2025 13:41
@Zouxxyy
Copy link
Contributor

Zouxxyy commented Aug 27, 2025

Can have a look at apache/spark#48108

@baiyangtx
Copy link
Author

Can have a look at apache/spark#48108

It looks like the Spark community hasn’t accepted this PR. Could we implement the feature within Paimon instead? From a data-ops perspective, cascading deletes based on parent partitions is a very useful capability.

@baiyangtx baiyangtx force-pushed the spark-drop-partition branch from 012f15c to 38aa584 Compare September 2, 2025 13:38
@baiyangtx
Copy link
Author

Would you mind have a look? @Zouxxyy @JingsongLi

@baiyangtx baiyangtx force-pushed the spark-drop-partition branch from 38aa584 to 16d3185 Compare September 4, 2025 12:21
@Aitozi
Copy link
Contributor

Aitozi commented Nov 28, 2025

Can have a look at apache/spark#48108

It looks like the Spark community hasn’t accepted this PR. Could we implement the feature within Paimon instead? From a data-ops perspective, cascading deletes based on parent partitions is a very useful capability.

+1, Can we support in paimon first to enable drop from the top level ? I think it's a useful feature to enhance the paimon spark operation cc @Zouxxyy @JingsongLi

@baiyangtx baiyangtx force-pushed the spark-drop-partition branch from 16d3185 to 0252e89 Compare December 5, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants