You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2022/10/20 16:00:00 UTC

[jira] [Assigned] (IGNITE-15574) Calcite. JOIN with DISTINCT FROM fails.

     [ https://issues.apache.org/jira/browse/IGNITE-15574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksey Plekhanov reassigned IGNITE-15574:
------------------------------------------

    Assignee: Aleksey Plekhanov

> 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
>
> {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)