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

IN operator type validation failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.18.0
    • None
    • core
    • None

    Description

      There are two columns in my table. Column A's type is VARCHAR while column B's type is VARCHAR ARRAY.

      When validating the SQL call `A IN B` the validation failed. 

      The root cause seems to be in checkTypes functions in SqlInOperator. 

      1. Not sure whether UNORDERED comparator is a good candidate because IN operands should have order.
      2. During being checked in the checker, `canConvertStringInCompare` will give a `false` when family is ARRAY and cause this failure. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            my7ym Will Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: