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

Add ability to configure RexExecutable behavior on exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.36.0
    • None
    • core
    • None

    Description

      The current behavior of Calcite's RexExecutable constant folding class is to eat all exceptions encountered during reduction. The underlying reason, as far as I understand it, is that even if Calcite can't reduce an expression, maybe the evaluation engine will be able to do it. Fair enough.

      But it would be useful to be able to chose to let some exceptions go through. One good example is ArithmeticException errors. They occur on divisions by zero, negative logarithms, etc. and we may want to avoid the downstream evaluation engine to receive such invalid expressions.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cbrisson Claude Brisson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: