-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17732][SQL] ALTER TABLE DROP PARTITION should support comparators #15302
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
|
Test build #66123 has finished for PR 15302 at commit
|
|
Test build #66130 has finished for PR 15302 at commit
|
|
Rebased to the master. |
|
Test build #66219 has finished for PR 15302 at commit
|
|
The only failure is the following in |
|
Retest this please. |
|
Test build #66225 has finished for PR 15302 at commit
|
|
Hi, @hvanhovell . |
|
Hi, @hvanhovell . |
|
@dongjoon-hyun I have taken a quick look. Shouldn't we just use Expressions for filtering partitions? |
|
Thank you for review, @hvanhovell ! Do you mean SQL grammar or |
|
Recently, I've watched you improved those related function greatly. |
|
@dongjoon-hyun I think that I have added a few things the |
|
I see. Then, how can evaluate the generic expression? Is it okay to use 'eval(null)'? |
|
Thank you for the direction. I'll proceed to improve in that way. |
|
Test build #66276 has finished for PR 15302 at commit
|
|
The only failure looks irrelevant. Anyway, I'm revising the PR. [info] *** 1 SUITE ABORTED ***
[error] Error: Total 2604, Failed 0, Errors 1, Passed 2603, Ignored 48
[error] Error during tests:
[error] org.apache.spark.sql.jdbc.JDBCWriteSuite
[error] (sql/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 718 s, completed Oct 3, 2016 2:23:41 PM |
|
Hi, @hvanhovell . When using
ALTER TABLE sales DROP PARTITION (country < 'KR')To avoid this situations, I can add some rule to |
|
With today's master, it's like the following. Should we use expression in org.apache.spark.sql.AnalysisException: cannot resolve '`country`' given input columns: []; line 1 pos 23;
'AlterTableDropPartitionCommand `sales`, [('country < KR)], false, false |
|
Hi, @hvanhovell . |
|
Hi, @hvanhovell . |
|
@dongjoon-hyun I'll take a look tomorrow. |
|
Thank you, @hvanhovell ! |
|
I'm closing this PR in favor of #15704 . |
What changes were proposed in this pull request?
This PR aims to support
comparators, e.g. '<', '<=', '>', '>=', again in Apache Spark 2.0 for backward compatibility.Spark 1.6.2
Spark 2.0
After this PR, it's supported.
How was this patch tested?
Pass the Jenkins test with a newly added testcase.