[SPARK-6452] [SQL] Checks for missing attributes and unresolved operator for all types of operator#5129
[SPARK-6452] [SQL] Checks for missing attributes and unresolved operator for all types of operator#5129liancheng wants to merge 2 commits into
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.
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 <lian@databricks.com> 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 <michael@databricks.com>
|
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