You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2022/10/25 09:02:00 UTC
[jira] [Commented] (IGNITE-15574) Calcite. JOIN with DISTINCT FROM fails.
[ https://issues.apache.org/jira/browse/IGNITE-15574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623685#comment-17623685 ]
Ignite TC Bot commented on IGNITE-15574:
----------------------------------------
{panel:title=Branch: [pull/10341/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/10341/head] Base: [master] : New Tests (2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=6855073]]
* {color:#013220}IgniteCalciteTestSuite: HashSpoolIntegrationTest.testIsNotDistinctFrom - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: IndexScanlIntegrationTest.testIsNotDistinctFrom - PASSED{color}
{panel}
[TeamCity *--> Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=6855153&buildTypeId=IgniteTests24Java8_RunAll]
> Calcite. JOIN with DISTINCT FROM fails.
> ---------------------------------------
>
> Key: IGNITE-15574
> URL: https://issues.apache.org/jira/browse/IGNITE-15574
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Evgeny Stanilovsky
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: calcite, calcite2-required, calcite3-required, ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {noformat}
> statement ok
> create table tbl_1 (a integer, b integer)
> statement ok
> insert into tbl_1 values (1,NULL),(2,3),(NULL,NULL)
> statement ok
> create table tbl_2 (b integer)
> statement ok
> insert into tbl_2 values (1),(2),(NULL)
> query II
> select a,tbl_2.b from tbl_1 inner join tbl_2 on (a IS NOT DISTINCT FROM tbl_2.b)
> ----
> 1 1
> 2 2
> NULL NULL
> {noformat}
> failed with
> {noformat}
> java.lang.RuntimeException: cannot translate call IS NOT DISTINCT FROM($t0, $t1)
> at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitCall(RexToLixTranslator.java:980)
> at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitCall(RexToLixTranslator.java:79)
> at org.apache.calcite.rex.RexCall.accept(RexCall.java:189)
> at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitLocalRef(RexToLixTranslator.java:886)
> at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitLocalRef(RexToLixTranslator.java:79)
> {noformat}
> {noformat}
> /join/test_not_distinct_from.test[_ignore]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)