-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6452] [SQL] Checks for missing attributes and unresolved operator for all types of operator #5129
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 #28965 has started for PR 5129 at commit
|
|
Test build #28965 timed out for PR 5129 at commit |
|
Test FAILed. |
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.
should throw AnalysisException ? otherwise it is an incomplete sentence
|
Test build #28983 has started for PR 5129 at commit
|
|
Test build #28983 has finished for PR 5129 at commit
|
|
Test PASSed. |
|
Test build #28991 has started for PR 5129 at commit
|
|
Rebased after #5132 being merged. All comments are addressed. Thanks everyone for the review! |
|
Test build #28991 has finished for PR 5129 at commit
|
|
Test PASSed. |
…tor for all types of operator In `CheckAnalysis`, `Filter` and `Aggregate` are checked in separate case clauses, thus never hit those clauses for unresolved operators and missing input attributes. This PR also removes the `prettyString` call when generating error message for missing input attributes. Because result of `prettyString` doesn't contain expression ID, and may give confusing messages like > resolved attributes a missing from a cc rxin <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/5129) <!-- Reviewable:end --> Author: Cheng Lian <[email protected]> Closes #5129 from liancheng/spark-6452 and squashes the following commits: 52cdc69 [Cheng Lian] Addresses comments 029f9bd [Cheng Lian] Checks for missing attributes and unresolved operator for all types of operator (cherry picked from commit 1afcf77) Signed-off-by: Michael Armbrust <[email protected]>
|
Thanks! Merged to master and 1.3 |
In
CheckAnalysis,FilterandAggregateare checked in separate case clauses, thus never hit those clauses for unresolved operators and missing input attributes.This PR also removes the
prettyStringcall when generating error message for missing input attributes. Because result ofprettyStringdoesn't contain expression ID, and may give confusing messages likecc @rxin