[ 
https://issues.apache.org/jira/browse/IGNITE-23308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886861#comment-17886861
 ] 

Ignite TC Bot commented on IGNITE-23308:
----------------------------------------

{panel:title=Branch: [pull/11557/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11557/head] Base: [master] : New Tests 
(4)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests 
4|https://ci2.ignite.apache.org/viewLog.html?buildId=8094700]]
* {color:#013220}IgniteCalciteTestSuite: 
SetOpIntegrationTest.testNumbersCastInExcept - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: 
SetOpIntegrationTest.testNumbersCastInIntersect - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: 
SetOpIntegrationTest.testNumbersCastInUnion - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: 
DataTypesPlannerTest.testSetOpNumbersCast - PASSED{color}

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8094698&buildTypeId=IgniteTests24Java8_RunAll]

> Calcite. Wrong numeric type coercion with set-op operations.
> ------------------------------------------------------------
>
>                 Key: IGNITE-23308
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23308
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.14
>            Reporter: Vladimir Steshin
>            Assignee: Vladimir Steshin
>            Priority: Major
>              Labels: calcite, ignite-2, ise
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Wrong numers cast with operators like _UNION_ / _INTERSECT_ / EXCEPT. 
> Reproducer:
> {code:java}
>     public void testUnionWithNumerics() {
>         sql("CREATE TABLE t0(id INT PRIMARY KEY, val INT)");
>         sql("CREATE TABLE t1(id INT PRIMARY KEY, val DECIMAL)");
>         sql("INSERT INTO t0 VALUES (1, 10)");
>         sql("INSERT INTO t1 VALUES (1, 10)");
>         assertQuery(ignite(0), "SELECT val from t0 UNION select val from t1")
>             .returns(new BigDecimal(10))
>             .ordered()
>             .check();
>     }
> {code}
> Error:
> {code:java}
> java.lang.AssertionError: Collections sizes are not equal:
> Expected: [[10]]
> Actual:   [[10], [10]] 
> {code}
> Or:
> {code:java}
>     public void testIntersectWithNumerics() {
>         sql("CREATE TABLE t0(id INT PRIMARY KEY, val INT)");
>         sql("CREATE TABLE t1(id INT PRIMARY KEY, val DECIMAL)");
>         sql("INSERT INTO t0 VALUES (1, 10), (2, 20), (3, 30), (4, 40), (5, 
> 50)");
>         sql("INSERT INTO t1 VALUES (1, 10), (2, 20), (3, 300), (4, 400), (5, 
> 50)");
>         assertQuery(ignite(0), "SELECT val from t0 INTERSECT select val from 
> t1")
>             .returns(new BigDecimal(10))
>             .returns(new BigDecimal(20))
>             .returns(new BigDecimal(50))
>             .ordered()
>             .check();
>     }
> {code}
> Error:
> {code:java}
> java.lang.AssertionError: Collections sizes are not equal:
> Expected: [[10], [20], [50]]
> Actual:   [] 
> {code}
> Adoption of #IGNITE-21827 and #IGNITE-20649



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to