-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.18.0
-
Component/s: None
-
Labels:None
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)); }
- 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