[ https://issues.apache.org/jira/browse/IGNITE-23435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17889732#comment-17889732 ]
Ignite TC Bot commented on IGNITE-23435: ---------------------------------------- {panel:title=Branch: [pull/11593/head] Base: [master] : Possible Blockers (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1} {color:#d04437}Platform .NET (Windows){color} [[tests 0 TIMEOUT , Exit Code |https://ci2.ignite.apache.org/viewLog.html?buildId=8114358]] {panel} {panel:title=Branch: [pull/11593/head] Base: [master] : New Tests (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1} {color:#00008b}Calcite SQL{color} [[tests 1|https://ci2.ignite.apache.org/viewLog.html?buildId=8114107]] * {color:#013220}IgniteCalciteTestSuite: CorrelatesIntegrationTest.testCorrelatesDifferentDataType - PASSED{color} {panel} [TeamCity *--> Run :: All* Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8114184&buildTypeId=IgniteTests24Java8_RunAll] > Calcite engine. Cached compiled expression for correlated variable can have > different data type > ----------------------------------------------------------------------------------------------- > > Key: IGNITE-23435 > URL: https://issues.apache.org/jira/browse/IGNITE-23435 > Project: Ignite > Issue Type: Bug > Reporter: Aleksey Plekhanov > Assignee: Aleksey Plekhanov > Priority: Major > Labels: calcite, ise > Time Spent: 20m > Remaining Estimate: 0h > > Reproducer: > {code:java} > @Test > public void testCorrelatesDifferentDataType() { > for (String type : new String[] {"INTEGER", "TINYINT"}) { > try { > sql("CREATE TABLE t1(v INTEGER)"); > sql("CREATE TABLE t2(v " + type + ")"); > sql("INSERT INTO t1 VALUES (1)"); > sql("INSERT INTO t2 VALUES (1)"); > assertQuery("SELECT (SELECT t1.v + t2.v FROM t1) FROM t2") > .returns(2) > .check(); > } > finally { > sql("DROP TABLE t1"); > sql("DROP TABLE t2"); > } > } > } > {code} > Fails with: > {noformat} > Caused by: java.lang.ClassCastException: class java.lang.Byte cannot be cast > to class java.lang.Integer (java.lang.Byte and java.lang.Integer are in > module java.base of loader 'bootstrap') > at SC.execute(Unknown Source) > at > org.apache.ignite.internal.processors.query.calcite.exec.exp.ExpressionFactoryImpl$ProjectImpl.apply(ExpressionFactoryImpl.java:668) > at > org.apache.ignite.internal.processors.query.calcite.exec.rel.ProjectNode.push(ProjectNode.java:63) > ... > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)