You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/11/12 13:56:00 UTC
[jira] [Created] (CALCITE-4397)
StandardConvertletTable#convertDatetimeMinus is inconsistent with
MINUS_DATE return type inference
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)