You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2026/08/18 16:53:00 UTC

[jira] [Commented] (CALCITE-7725) Review safety of checked arithmetic operators

    [ https://issues.apache.org/jira/browse/CALCITE-7725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105659#comment-18105659 ] 

Mihai Budiu commented on CALCITE-7725:
--------------------------------------

This may be introduced by me. Probably I misunderstood what "safe" means.

> Review safety of checked arithmetic operators
> ---------------------------------------------
>
>                 Key: CALCITE-7725
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7725
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Ruben Q L
>            Priority: Major
>
> At the moment, some checked arithmetic operators (CHECKED_PLUS, CHECKED_MINUS, CHECKED_TIMES, CHECKED_MINUS_PREFIX) are part of the {{safeOps}} set in {{RexSimplify#SafeRexVisitor}}, i.e. they are considered "safe" by {{RexSimplify#isSafeExpression}} .
> To be reviewed if these operations should be considered actually "safe", since they can throw at runtime (in case of overflow), similarly to e.g. a division by zero, which is considered "unsafe".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)