Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
A query which has a pattern:
column IN (1, 1 + 1, 1 + 2)
For the tuple, Calcite makes a plan like
UnionAll(all=[true]) UnionAll(all=[true]) Project(EXPR$0=[+(1, 1)]) Values Project(EXPR$0=[+(1, 2)]) Values Values
At execution, the schema of the recordbatch from scanning Values is [`ZERO`(BIGINT: OPTIONAL), `*`(BIGINT: OPTIONAL)].
The second column (i.e., `*`) is not supposed to be there.