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

SPLIT function on empty regex should truncate trailing empty string.

    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

          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: