Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/22227#discussion_r214562895 --- Diff: sql/core/src/test/resources/sql-tests/inputs/string-functions.sql --- @@ -46,4 +46,10 @@ FROM ( encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) -) +); + +-- split function +select split('aa1cc2ee3', '[1-9]+'); +select split('aa1cc2ee3', '[1-9]+', -1); +select split('aa1cc2ee3', '[1-9]+', 0); +select split('aa1cc2ee3', '[1-9]+', 2); --- End diff -- Likewise, I don't think we should add test cases for all cases. Just one test case and check if they are called fine.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org