Uh oh!
There was an error while loading. Please reload this page.
[SPARK-3698][SQL] Correctly check case sensitivity in GetField - #2543
[SPARK-3698][SQL] Correctly check case sensitivity in GetField#2543cloud-fan wants to merge 2 commits into
Conversation
AmplabJenkins
commented
Sep 26, 2014
Can one of the admins verify this patch? |
There was a problem hiding this comment.
For something like a.b[0].c.d, the origin logic here only works for a and b. but not c and d. So I just simplified the logic here and let the ResolveGetField rule to do its job.
liancheng
commented
Sep 26, 2014
Would you mind to file a JIRA ticket for this PR? |
SparkQA
commented
Sep 26, 2014
QA tests have started for PR 2543 at commit
|
SparkQA
commented
Sep 26, 2014
QA tests have finished for PR 2543 at commit
|
There was a problem hiding this comment.
If possible, I think it might be clearer to keep the resolver logic in the Analyzer rule.
There was a problem hiding this comment.
I was going to put this logic into Analyzer rule, but found some tests depend on GetField(child, fieldName), so I have to create this constructor of GetField. And these two are so similar, so I combine them together. Maybe I should fix those tests instead?
marmbrus
commented
Sep 27, 2014
Thanks for working on this! A few minor comments. |
cloud-fan
commented
Sep 29, 2014
Hi @marmbrus , I have updated my PR according to your comments. Do you mind review it again? |
SparkQA
commented
Oct 1, 2014
QA tests have started for PR 2543 at commit
|
SparkQA
commented
Oct 1, 2014
QA tests have finished for PR 2543 at commit
|
There was a problem hiding this comment.
We don't need findField anymore do we?
cloud-fan
commented
Oct 10, 2014
@marmbrus As commented before, I think we should handle |
cloud-fan
commented
Oct 20, 2014
Ping @marmbrus@liancheng I have finished the code locally, if you vote for |
cloud-fan
commented
Oct 28, 2014
Hi @marmbrus@liancheng, I think it's better to calculate the |
marmbrus
commented
Dec 17, 2014
Sorry for the delay merging this, but I have been concerned that we are adding unnecessary complexity to analysis by adding more types of expressions. I've built a simpler solution in #3724 based off the test case that you provided. If that looks reasonable to you I suggest we close this issue. |
This PR is a follow up to #2382
It fix a bug when resolve something like
a.b[0].c.d, #2382 only do case sensitive check when resolveUnresolved("a.b")toGetField(Attribute("a"), "b"), but notcandd.