-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16049][SQL] Make InsertIntoTable's expectedColumns support case-insensitive resolution properly #13772
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 #60810 has finished for PR 13772 at commit
|
|
Test build #60813 has finished for PR 13772 at commit
|
|
Test build #60826 has finished for PR 13772 at commit
|
Conflicts: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
|
ping @liancheng @yhuai @cloud-fan |
|
Test build #60839 has finished for PR 13772 at commit
|
|
@liancheng yes. |
|
@liancheng hmm, for that part, seems so. But the added rule in #13769 seems only cover the case of |
|
Yea, but partitioning is only available for |
|
@viirya Thank you for the pr. After I filed the jira, I did some investigation. Actually as I noted at https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala#L372, the parser will turn the keys to their lowercase forms. So, I think there is nothing really broken assuming case-insensitive resolution is used. How about we close this PR? We need to address the case-sensitivity flag in a holistic way. We can revisit this particular issue later. |
|
#12993 (comment) This is the comment left by @rxin in my PR. I assume this will not be addressed in this release. Anything is changed? |
|
@yhuai I've run test against current branch. When case-insensitive resolution is used, exepctedColumns is not correct actually. So I am not sure why you said it is not really broken? I will close this first because I think this approach is not good. Maybe I will try alternative one later. Thanks! |
|
@viirya Can you comment in the jira with your case? |
|
@yhuai What case you meant? |
|
Tests that you mentioned in |
What changes were proposed in this pull request?
Right now,
InsertIntoTable'sexpectedColumnsuses the method ofcontainsto find static partitioning columns. When analyzer is case-insensitive, the initialization of this lazy val will not work as expected.How was this patch tested?
Existing tests.