You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tanner Clary (Jira)" <ji...@apache.org> on 2023/05/30 19:03:00 UTC

[jira] [Created] (CALCITE-5735) Implement BigQuery SAFE_MULTIPLY function

Tanner Clary created CALCITE-5735:
-------------------------------------

             Summary: Implement BigQuery SAFE_MULTIPLY function
                 Key: CALCITE-5735
                 URL: https://issues.apache.org/jira/browse/CALCITE-5735
             Project: Calcite
          Issue Type: Sub-task
            Reporter: Tanner Clary
            Assignee: Tanner Clary


Add support for SAFE_MULTIPLY in BigQuery.
SAFE_MULTIPLY: Equivalent to the multiplication operator '*', but returns NULL if overflow occurs.

Example #1: {{SELECT SAFE_MULTIPLY(3, 4)}} would return {{12}}.
Example #2: {{SELECT SAFE_MULTIPLY(2^63, 2)}} would return {{NULL}} because of overflow.



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