-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8670][SQL] Nested columns can't be referenced in pyspark #8202
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
|
retest this please. |
|
Test build #40879 has finished for PR 8202 at commit
|
|
Test build #40887 has finished for PR 8202 at commit
|
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.
Could we still have this check if there is not '.' in item?
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.
or maybe, instead of doing any checks here, is it possible to catch specific errors here thrown by the analyzer and just reformat them nicely?
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.
(i assume that was the whole point of doing a check here?)
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.
We already capture the AnalysisException. If it's already good enough, we can just remove this check.
|
Thanks! Merging to master and 1.5 |
This bug is caused by a wrong column-exist-check in `__getitem__` of pyspark dataframe. `DataFrame.apply` accepts not only top level column names, but also nested column name like `a.b`, so we should remove that check from `__getitem__`. Author: Wenchen Fan <[email protected]> Closes #8202 from cloud-fan/nested.
This bug is caused by a wrong column-exist-check in `__getitem__` of pyspark dataframe. `DataFrame.apply` accepts not only top level column names, but also nested column name like `a.b`, so we should remove that check from `__getitem__`. Author: Wenchen Fan <[email protected]> Closes apache#8202 from cloud-fan/nested.
This bug is caused by a wrong column-exist-check in
__getitem__of pyspark dataframe.DataFrame.applyaccepts not only top level column names, but also nested column name likea.b, so we should remove that check from__getitem__.