Description
statement ok CREATE TABLE t1 (a INTEGER, b INTEGER) statement ok INSERT INTO t1 VALUES (1, 2) statement ok CREATE TABLE t2 (b INTEGER, c INTEGER) statement ok INSERT INTO t2 VALUES (2, 3) statement ok CREATE TABLE t3 (c INTEGER, d INTEGER) statement ok INSERT INTO t3 VALUES (3, 4) query IIII SELECT * FROM t1 JOIN t2 USING (b) JOIN t3 USING (c) ORDER BY 1, 2, 3, 4; ---- 1 2 3 4
fails with
java.lang.ArrayIndexOutOfBoundsException: 7 at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:60) at org.apache.calcite.sql.validate.SqlValidatorImpl$Permute.permute(SqlValidatorImpl.java:7084) at org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(SqlValidatorImpl.java:662) at org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(SqlValidatorImpl.java:424) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(SqlValidatorImpl.java:4414) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:3657) at org.apache.ignite.internal.processors.query.calcite.prepare.IgniteSqlValidator.validateSelect(IgniteSqlValidator.java:182)
Attachments
Issue Links
- is duplicated by
-
IGNITE-15808 Calcite engine. Failed to join table with itself with 'USING' clause
- Resolved
- is part of
-
IGNITE-12248 Apache Calcite based query execution engine
- Open
- links to