-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14922][SPARK-17732][SPARK-23866][SQL] Support partition filter in ALTER TABLE DROP PARTITION and batch dropping PARTITIONS #26280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
please fix all failures |
a4e67c3 to
ce453ed
Compare
|
Ping @cloud-fan @mgaido91 @maropu @DazhuangSu Kindly review, thanks. |
|
ok to test |
|
Test build #112830 has finished for PR 26280 at commit
|
|
please retry test |
|
jenkins, retest this, please |
|
retest this please |
|
Test build #112845 has finished for PR 26280 at commit
|
|
retest this please |
|
retest this please |
|
Test build #112919 has finished for PR 26280 at commit
|
ce453ed to
a0c42fd
Compare
|
Test build #113000 has finished for PR 26280 at commit
|
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #113022 has finished for PR 26280 at commit
|
a0c42fd to
1bd2cd3
Compare
|
Test build #113084 has finished for PR 26280 at commit
|
1bd2cd3 to
e27f13c
Compare
|
Test build #113747 has finished for PR 26280 at commit
|
|
retest this please |
e27f13c to
21cd780
Compare
|
Test build #113757 has finished for PR 26280 at commit
|
21cd780 to
0d5bc03
Compare
|
Test build #113775 has finished for PR 26280 at commit
|
0d5bc03 to
11b4cb0
Compare
|
Test build #113834 has finished for PR 26280 at commit
|
11b4cb0 to
9d3ede5
Compare
|
Test build #113852 has finished for PR 26280 at commit
|
|
retest this please. |
…s in ALTER TABLE DROP PARTITION and batch dropping PARTITIONS
- Support partition filters in ALTER TABLE DROP PARTITION.
- Support batch dropping PARTITIONS by 'ExpressionBuilder'.
9d3ede5 to
c2639d0
Compare
|
Test build #114062 has finished for PR 26280 at commit
|
|
@cloud-fan Could you review this PR , thanks. |
| ; | ||
|
|
||
| dropPartitionVal | ||
| : identifier (comparisonOperator constant)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, can we replace constant with expression? In our PROD environment, there are some requirements like 'ALTER TABLE xxx DROP PARTITION (col < CURRENT_DATE)'.
|
This is also a requirement in our PROD environment, could anyone help review? |
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
Spark only can drop partitions by exact values. For instance, Spark doesn't support:
The PR adds the support to this syntax.
The PR takes input from the effort in #19691 by @DazhuangSu , in #20999 by @mgaido91 ,
, there are some related PRs: #15987,#16036,#19691,#15704.
some related issues:
https://issues.apache.org/jira/browse/SPARK-14922
https://issues.apache.org/jira/browse/SPARK-17732
https://issues.apache.org/jira/browse/SPARK-23866
How was this patch tested?
Add unittests.