Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5591

Add SAFE_ADD, SAFE_DIVIDE, SAFE_MULTIPLY, SAFE_NEGATE, SAFE_SUBTRACT functions (enabled in BigQuery library)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.36.0
    • None
    • None

    Description

      Add support for SAFE_ADD, SAFE_SUBTRACT, SAFE_MULTIPLY, SAFE_DIVIDE and SAFE_NEGATE in BigQuery.

      Function description:

      • SAFE_ADD: Equivalent to the addition operator '+', but returns NULL if overflow occurs.
      • SAFE_SUBTRACT: Equivalent to the subtraction operator '-', but returns NULL if overflow occurs.
      • SAFE_MULTIPLY: Equivalent to the multiplication operator '*', but returns NULL if overflow occurs.
      • SAFE_DIVIDE: Equivalent to the division operator '/ ', but returns NULL if an error occurs, such as a division by zero error.
      • SAFE_NEGATE: Equivalent to the unary minus operator '-', but returns NULL if overflow occurs.

      See more details in BigQuery Doc

      Attachments

        Activity

          People

            tanclary Tanner Clary
            FrankZou Dan Zou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: