XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Connectors / Hive
    • None

    Description

      Using hive dialect, can be reproduced using the following sql

      select if(1=1, 2,3)
      

      Then it'll throw such exception " Mismatch of function's argument data type 'BOOLEAN NOT NULL' and actual argument type 'BOOLEAN'.".

      The main reason is ScalarOperatorGens always generates expressions will nullable return type, which can be different from the inferred type in Calcite.
      We need to fix it in ScalarOperatorGens.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luoyuxia luoyuxia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: