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

need better error message to handle invalid inputs to AGE function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.9.0
    • None
    • Execution - Flow
    • None

    Description

      Need a better error message when invalid inputs are given to AGE function
      Drill 1.9.0

      0: jdbc:drill:schema=dfs.tmp> SELECT AGE(-1) FROM `date_data.csv`;
      Error: SYSTEM ERROR: DrillRuntimeException: Failure while materializing expression in constant expression evaluator [AGE(-1)].  Errors:
      Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
      
      
      [Error Id: 4f91d5cc-95b1-4bad-903e-138facea5f63 on centos-01.qa.lab:31010] (state=,code=0)
      
      0: jdbc:drill:schema=dfs.tmp> SELECT AGE(0) FROM `date_data.csv`;
      Error: SYSTEM ERROR: DrillRuntimeException: Failure while materializing expression in constant expression evaluator [AGE(0)].  Errors:
      Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
      
      
      [Error Id: c641647d-ef6b-4847-aaea-2de4af646a9c on centos-01.qa.lab:31010] (state=,code=0)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            khfaraaz Khurram Faraaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: