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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: