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

There is no support for checked arithmetic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.38.0
    • None
    • core

    Description

      Many SQL dialects perform arithmetic using checked operations.
      I.e., they raise errors when the result of an arithmetic exception cannot be represented using the target type.

      Some SQL dialects make this behavior configurable: e.g., SQL Server has an ARITHABORT flag:
      https://learn.microsoft.com/en-us/sql/t-sql/statements/set-arithabort-transact-sql

      Calcite's executor and many optimization passes use Java arithmetic, which is not checked.

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: