-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-12271][SQL] Improve error message when Dataset.as[ ] has incompatible schemas. #10260
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 #47560 has finished for PR 10260 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.
the simpleString of attribute includes expr id, which I think is noisy to users, should we generate the string manually or use StructType.fromAttributes to turn schema into StructType and call StrcutType.simpleString?
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.
Done.
|
Could you maybe update the PR description to include the description from the JIRA? |
|
Test build #47680 has finished for PR 10260 at commit
|
I think it was a mistake, and we have not catched it so far until #10260 which begin to check if the `fromRowExpression` is resolved. Author: Wenchen Fan <[email protected]> Closes #10263 from cloud-fan/encoder.
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.
Is there a reason to not just put this in CheckAnalysis and make it more general (i.e. not just Project)? I realize its only used here now, but if we ever do use it elsewhere, its invalid to remain after analysis.
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.
much better!
|
This looks great now! LGTM pending tests / conflict resolution |
Fixed a type erasure issue with wrap option.
|
Test build #47747 has finished for PR 10260 at commit
|
|
Test build #47754 has finished for PR 10260 at commit
|
|
LGTM |
|
Thanks, merging to master. |
I think it was a mistake, and we have not catched it so far until apache#10260 which begin to check if the `fromRowExpression` is resolved. Author: Wenchen Fan <[email protected]> Closes apache#10263 from cloud-fan/encoder.
…patible schemas. Author: Nong Li <[email protected]> Closes apache#10260 from nongli/spark-11271.
No description provided.