-
Couldn't load subscription status.
- Fork 28.9k
[SPARK-7952][SQL] use internal Decimal instead of java.math.BigDecimal #6574
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
|
LGTM |
1 similar comment
|
LGTM |
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.
btw we should rename this BooleanEquality instead of "Equalization".
|
Just realized decimal literal's type is not always |
|
We should handle those as well ... |
|
Test build #33960 has finished for PR 6574 at commit
|
|
Test build #33963 has finished for PR 6574 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.
We only care about boolean type and literal type here, not left and right, so I use bool instead.
|
Test build #34392 has finished for PR 6574 at commit
|
|
Thanks. Merging this in. |
This PR fixes a bug introduced in #6505. Decimal literal's value is not `java.math.BigDecimal`, but Spark SQL internal type: `Decimal`. Author: Wenchen Fan <[email protected]> Closes #6574 from cloud-fan/fix and squashes the following commits: b0e3549 [Wenchen Fan] rename to BooleanEquality 1987b37 [Wenchen Fan] use Decimal instead of java.math.BigDecimal f93c420 [Wenchen Fan] compare literal
|
btw I see the following compilation warning for master branch just now. Can you take a look? |
|
It's a mistake made in #6405, we should use |
|
Test build #34406 has finished for PR 6574 at commit
|
|
Can you submit a separate pull request? This patch has actually been merged already, but ASF's github sync is behind so it is not showing up here. |
|
Please close this pull request also (since it's already been merged). You can see the up-to-date merges here: https://git-wip-us.apache.org/repos/asf?p=spark.git |
This PR fixes a bug introduced in apache#6505. Decimal literal's value is not `java.math.BigDecimal`, but Spark SQL internal type: `Decimal`. Author: Wenchen Fan <[email protected]> Closes apache#6574 from cloud-fan/fix and squashes the following commits: b0e3549 [Wenchen Fan] rename to BooleanEquality 1987b37 [Wenchen Fan] use Decimal instead of java.math.BigDecimal f93c420 [Wenchen Fan] compare literal
This PR fixes a bug introduced in #6505.
Decimal literal's value is not
java.math.BigDecimal, but Spark SQL internal type:Decimal.