Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40194

SPLIT function on empty regex should truncate trailing empty string.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      E.g. `select split('hello', '')` should convert to `['h', 'e', 'l', 'l', 'o']` instead of `['h', 'e', 'l', 'l', 'o', '']`. Requires explicit `limit` parameter to preserve trailing empty string.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vli-databricks Vitalii Li
            vli-databricks Vitalii Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment