[SPARK-7952][SQL] use internal Decimal instead of java.math.BigDecimal#6574
[SPARK-7952][SQL] use internal Decimal instead of java.math.BigDecimal#6574cloud-fan wants to merge 4 commits intoapache:masterfrom
Conversation
|
LGTM |
1 similar comment
|
LGTM |
There was a problem hiding this comment.
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.
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 <cloud0fan@outlook.com> 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 <cloud0fan@outlook.com> 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.