Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10175

Extend error message when cast(..format..) fails in parse phase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Backend

    Description

      select cast('0;367' as date format 'YY;DDD'); 
      ERROR: UDF ERROR: String to Date parse failed. Invalid string val: "0;367"
      

      Here the output contains the input string but would be more helpful for debugging if it also contained the original format string as well.

      This applies to String to Date conversions only as String to Timestamp failures currently doesn't raise an error.

      Attachments

        Activity

          People

            gaborkaszab Gabor Kaszab
            gaborkaszab Gabor Kaszab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: