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

Composite of two checkers with SqlOperandCountRange throws IllegalArgumentException

    XMLWordPrintableJSON

    Details

      Description

      If we define a type checker with:

      ```

      OperandTypes.or(

          OperandTypes.variadic(SqlOperandCountRanges.from(3),

          OperandTypes.variadic(SqlOperandCountRanges.from(4))

      ```

      will throw a java.lang.IllegalArgumentException

      The root cause is: 

      the minMin function of CompositeOperandTypeChecker should return the minimum of lower bound of all SqlOperandCountRange

       

          

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                docete Zhenghua Gao
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m