-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] Fix decimal literal equals uncheck type #50626
Conversation
Signed-off-by: Seaven <[email protected]>
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 1 / 1 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
@Mergifyio backport branch-3.0 |
@Mergifyio backport branch-2.5 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee)
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee) # Conflicts: # fe/fe-core/src/test/java/com/starrocks/sql/plan/DecimalTypeTest.java
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee) # Conflicts: # fe/fe-core/src/test/java/com/starrocks/sql/plan/DecimalTypeTest.java
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/analysis/DecimalLiteral.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/DecimalTypeTest.java
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee)
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee)
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee)
Signed-off-by: Seaven <[email protected]> (cherry picked from commit b95c6ee)
…50661) Co-authored-by: Seaven <[email protected]>
…50658) Co-authored-by: Seaven <[email protected]>
…50660) Co-authored-by: Seaven <[email protected]>
…50657) Co-authored-by: Seaven <[email protected]>
…50626) (StarRocks#50657) Co-authored-by: Seaven <[email protected]>
…50659) Co-authored-by: Seaven <[email protected]>
Signed-off-by: Seaven <[email protected]> Signed-off-by: zhiminr.ren <[email protected]>
Why I'm doing:
sum(gmv * 1.00000000000)
:1.00000000000
isDECIMAL64(12, 11)
Literalsum(gmv * 1.000)
:1.000
isDECIMAL32(4, 3)
Literalequals method check
1.00000000000
is same as1.000
, but the results of hashcode method is different.In analyze, will check duplicate expression by list.contains, only use equals method, then two expression will be reduce to one, but in QueryTransform, use HashMap to find expression, it's will take can't find expression because hashcode is different.
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: