You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Evgeny Stanilovsky (Jira)" <ji...@apache.org> on 2021/12/29 06:04:00 UTC

[jira] [Commented] (IGNITE-16228) Calcite engine. SetOp execution node cannot be rewinded

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

Evgeny Stanilovsky commented on IGNITE-16228:
---------------------------------------------

good catch !) LGTM

> Calcite engine. SetOp execution node cannot be rewinded
> -------------------------------------------------------
>
>                 Key: IGNITE-16228
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16228
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: calcite2-required, calcite3-required
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reproducer:
> {code:java}
> executeSql("CREATE TABLE test(i INTEGER)");
> executeSql("INSERT INTO test VALUES (1), (2)");
> assertQuery("SELECT (SELECT test.i EXCEPT SELECT 0) FROM test")
>     .returns(1)
>     .returns(2)
>     .check();{code}
> Throws:
> {noformat}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
>     at java.util.ArrayList.rangeCheck(ArrayList.java:657)
>     at java.util.ArrayList.get(ArrayList.java:433)
>     at org.apache.ignite.internal.processors.query.calcite.exec.rel.AbstractSetOpNode.request(AbstractSetOpNode.java:76){noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)