Vitalii Li created SPARK-40194:
----------------------------------

             Summary: SPLIT function on empty regex should truncate trailing 
empty string.
                 Key: SPARK-40194
                 URL: https://issues.apache.org/jira/browse/SPARK-40194
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.4.0
            Reporter: Vitalii Li


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to