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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersStop watchingWatchersConvert to IssueLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Chongguang Chongguang LIU Assign to me
              Reporter:
              Chongguang Chongguang LIU

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment