[
https://issues.apache.org/jira/browse/IGNITE-29306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146636#comment-18146636
]
Ignite TC Bot commented on IGNITE-29306:
----------------------------------------
{panel:title=Branch: [pull/13845/head] Base: [master] : Possible Blockers
(2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}[Check Code Style Ducktests]{color} [[tests 0 TIMEOUT , Exit
Code |https://ci2.ignite.apache.org/viewLog.html?buildId=9507942]]
{color:#d04437}Thin client: PHP{color} [[tests 0 Exit Code
|https://ci2.ignite.apache.org/viewLog.html?buildId=9507944]]
{panel}
{panel:title=Branch: [pull/13845/head] Base: [master] : New Tests
(4)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL 3{color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=9505682]]
*
{color:#013220}org.apache.ignite.internal.processors.query.calcite.integration.DecimalHashJoinIntegrationTest.DecimalHashJoinIntegrationTest
- PASSED{color}
*
{color:#013220}org.apache.ignite.internal.processors.query.calcite.integration.DecimalHashJoinIntegrationTest.testEqualDecimalKeysWithDifferentScales
- PASSED{color}
{color:#00008b}Calcite SQL 1{color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=9505600]]
*
{color:#013220}org.apache.ignite.internal.processors.query.calcite.util.SqlValueUtilsTest.testDifferentDecimalValues
- PASSED{color}
*
{color:#013220}org.apache.ignite.internal.processors.query.calcite.util.SqlValueUtilsTest.testDecimalValues
- PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9505717&buildTypeId=IgniteTests24Java8_RunAll]
{color:#ffffff}tcbot-analysis-comment chainBuildId=9505717
rerunBuildIds=none{color}
> SQL Calcite: Hash join misses equal DECIMAL keys with different scales
> ----------------------------------------------------------------------
>
> Key: IGNITE-29306
> URL: https://issues.apache.org/jira/browse/IGNITE-29306
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 2.18
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: calcite, ignite-2, sql
> Attachments: DecimalHashJoinScaleIntegrationTest.java
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> An inner join can return an empty result when matching DECIMAL values have
> different scales, even though the values are numerically equal.
> For example, {{BigDecimal("11845600")}} (scale 0) and
> {{BigDecimal("1.18456E+7")}} (scale −2) should match:
>
> {{SELECT l.k, r.k FROM LEFT_ROWS l JOIN RIGHT_ROWS r ON l.k = r.k WHERE l.k =
> 11845600;}}
>
> *Expected:* one matching row.
> *Actual:* no rows when the optimizer chooses Hash Join. Nested Loop Join
> returns the expected row.
> Hash join key equality and hashing are scale-sensitive for BigDecimal values.
> See {{DecimalHashJoinScaleIntegrationTest}} for the complete reproducer.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)