Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4938

Report UserException when constant expression reduction fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • Execution - Data Types
    • None

    Description

      We need a better error message instead of DrillRuntimeException
      Drill 1.9.0 git commit ID : 4edabe7a

      0: jdbc:drill:schema=dfs.tmp> select (res1 = 2016/09/22) res2
      . . . . . . . . . . . . . . > from
      . . . . . . . . . . . . . . > (
      . . . . . . . . . . . . . . >     select (case when (false) then null else cast('2016/09/22' as date) end) res1
      . . . . . . . . . . . . . . >     from (values(1)) foo
      . . . . . . . . . . . . . . > ) foobar;
      Error: SYSTEM ERROR: DrillRuntimeException: Failure while materializing expression in constant expression evaluator [CASE(false, =(null, /(/(2016, 9), 22)), =(CAST('2016/09/22'):DATE NOT NULL, /(/(2016, 9), 22)))].  Errors:
      Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
      Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
      

      Attachments

        Issue Links

          Activity

            People

              sharnyk Serhii Harnyk
              khfaraaz Khurram Faraaz
              Khurram Faraaz Khurram Faraaz
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: