Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Testcase:
/* RexProgramTest */ @Test public void testInDigest() { RexNode e = in(vInt(), literal(1), literal(2)); assertThat(e.toString(), is("IN(?0.int0, 1, 2)")); } /* RexProgramBuilder */ protected RexNode in(Iterable<? extends RexNode> nodes) { return rexBuilder.makeCall(SqlStdOperatorTable.IN, ImmutableList.copyOf(nodes)); }
The exception is due to that it tries to look at the other operand https://github.com/apache/calcite/blob/883666929478aabe07ee5b9e572c43a6f1a703e2/core/src/main/java/org/apache/calcite/rex/RexCall.java#L115
SIMPLE_BINARY_OPS contains COMPARISION which also contains "IN"
this was introduced in CALCITE-2454 a few days ago; bug not released
Attachments
Issue Links
- links to