[
https://issues.apache.org/jira/browse/CALCITE-3872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066472#comment-17066472
]
Feng Zhu commented on CALCITE-3872:
-----------------------------------
Just of curious, will this simplification bury some exception?
E.g., for a bigint column with min value '-9223372036854775808'
{code:java}
-(-(-9223372036854775808)){code}
In the second step, we will get a number (9223372036854775808) out of bigint's
range.
> Simplify expressions with unary minus
> -------------------------------------
>
> Key: CALCITE-3872
> URL: https://issues.apache.org/jira/browse/CALCITE-3872
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Liya Fan
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Support simplifying expression - ( - ( x ) ) as x.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)