[
https://issues.apache.org/jira/browse/CALCITE-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704376#comment-15704376
]
Ashutosh Chauhan commented on CALCITE-1512:
-------------------------------------------
{{-}} operator is initialized with SqlReturnTypeInferenceChain of
DECIMAL_SUM_NULLABLE, LEAST_RESTRICTIVE For ts-ts it picks up Least restrictive
which results in timestamp. Need to add another type inference rule to handle
ts - ts.
> Return type of timestamp - timestamp should be interval
> -------------------------------------------------------
>
> Key: CALCITE-1512
> URL: https://issues.apache.org/jira/browse/CALCITE-1512
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.10.0
> Reporter: Ashutosh Chauhan
> Assignee: Julian Hyde
>
> Currently return type of expression ts - ts is inferred as timestamp
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)