-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-30082][SQL] Depend on Scala type coercion when building replace query #26738
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
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8de494e
Do not cast NaN to an Integer, Long, Short or Byte
johnhany97 fad3304
Revert "Do not cast NaN to an Integer, Long, Short or Byte"
johnhany97 4a9573c
Take it back a step
johnhany97 12f219b
Merge branch 'master' of github.com:apache/spark into SPARK-30082
johnhany97 532f447
Add tests
johnhany97 1c5f1eb
Avoid repeating df used in tests
johnhany97 ed6f08d
Improve coding style
johnhany97 279a9fd
Opt for a more simple fix
johnhany97 6b5d26d
Adjust unit tests to reflect new behaviour
johnhany97 10c91d6
Adjust whitespace
johnhany97 1744b28
Do not change param name
johnhany97 1295633
Clean unit tests df generator
johnhany97 b3709a1
Clean tests themselves as well
johnhany97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This fix relies on the type coercion rule to do the casting in the another side. It could cause the difference of query results. For example,
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.
Before this PR,
After this PR,
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 new behavior makes more sense, but I agree that the PR description needs update to reflect all the changes. cc @johnhany97
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.
Nice catch there @gatorsmile. I've updated the PR description. Should I also update the PR title? Let me know if you'd like me to add in more details into the PR description.
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.
Yes, we also need to update the PR title.