Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33275 ANSI mode: runtime errors instead of returning null on invalid inputs
  3. SPARK-33723

ANSI mode: Casting string to date should throw exception on parse error

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      When casting a string as timestamp in ANSI mode, Spark throws a runtime exception on parsing error.
      However, the result for casting a string to date is always null. We should throw an exception on parsing error as well.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: