Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
There are cases in which casts are added; but they are not neccessary.
@Test public void testSimplifyRedundantCast() { RexNode expr = cast(isTrue(vBoolNotNull()), tBoolean(true)); assertThat(expr.getType().isNullable(), is(true)); RexNode result = simplify.simplifyUnknownAs(expr, RexUnknownAs.UNKNOWN); assertThat(result.getType().isNullable(), is(false)); }
Attachments
Issue Links
- relates to
-
CALCITE-2932 DruidAdapterIT regression after 1.17 release
- Closed
-
CALCITE-2933 In Druid adapter, expression like "cast(cast(\"timestamp\" as timestamp) as varchar)" returns as epoch millisecond
- Closed
- links to