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

FamilyOperandTypeChecker with a Predicate describing optional arguments does not reject mistyped expressions

    XMLWordPrintableJSON

Details

    Description

      CALCITE-6976 is a symptom of a deeper problem: the family operand type checker using a predicate for specifying optional arguments will accept mistyped expressions if their number of arguments does not match the maximum number of arguments.

      This affects at least 20 functions from SqlLibraryOperators.

      A partial solution is to use the .or type checker when possible.

      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:
                Resolved: