-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23823][SQL] ResolveReferences should preserve treenode origins #20939
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
|
@jiahuijiang Did you hit any error? |
|
ok to test |
|
Test build #88733 has finished for PR 20939 at commit
|
|
Yes, for any SQL queries with columns inside. |
|
retest this please |
|
@jiahuijiang Why do you need to check the value of origin? This is being used for error reporting only. |
|
Test build #88755 has finished for PR 20939 at commit
|
|
We are implementing a language server that needs to understand where the column locations, so we are depending on some of these internal APIs |
|
@gatorsmile Seems the tests are still flaking :/ |
|
@gatorsmile Is #20961 crazy to do? It makes sure all the origins are kept correctly after analyzing, so future refactor won't cause similar issue. But not sure whether that behavior should be expected |
|
#20961 looks good to me. Could you close this PR? Thanks! |
What changes were proposed in this pull request?
Fixes https://issues.apache.org/jira/browse/SPARK-23823
Introduced in #19585
ResolveReferences stopped doing transfromsUp after this change and Attributes sometimes lose its correct origin
How was this patch tested?
Manually tested after this change analyze won't throw away correct Origin for columns