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

next_day function should throw runtime exception when receiving invalid input under ANSI mode

    XMLWordPrintableJSON

Details

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

    Description

      Hello all,

      According to ANSI compliance, the next_day function should throw an runtime exception when receiving invalid value for dayOfWeek, exemple receiving "xx" instead of "SUNDAY".

       

      A similar improvement has been done on the element_at function: https://issues.apache.org/jira/browse/SPARK-33386

       

      If you agree with this proposition, i can submit a pull request with necessary change.

       

      Kind regardes,

       

      Attachments

        Activity

          People

            Chongguang Chongguang LIU
            Chongguang Chongguang LIU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: