Vladimir Sitnikov created CALCITE-4397: ------------------------------------------
Summary: StandardConvertletTable#convertDatetimeMinus is inconsistent with MINUS_DATE return type inference Key: CALCITE-4397 URL: https://issues.apache.org/jira/browse/CALCITE-4397 Project: Calcite Issue Type: Bug Components: core Affects Versions: 1.26.0 Reporter: Vladimir Sitnikov SqlNode representation has 3 parameters: {{datetime}} - {{datetime}} {{interval_qualifier}} The return type inference is {{ARG2_NULLABLE}} so it assumes the call has three parameters. In practice, {{convertDatetimeMinus}} removes the last parameter via {{rexBuilder.makeCall(resType, op, exprs.subList(0, 2));}}, which blocks node cloning via {{rexBuilder.makeCall(e.getOperator(), operands)}} -- This message was sent by Atlassian Jira (v8.3.4#803005)