yaooqinn commented on issue #26202: [SPARK-28087][SQL] Add string function support for split_part URL: https://github.com/apache/spark/pull/26202#issuecomment-545522342 ```sql spark-sql> select element_at(split('abc~@~def~@~ghi', ''), 1); a ``` ```sql postgres=# select split_part('abc~@~def~@~ghi', '', 1); split_part ----------------- abc~@~def~@~ghi ``` 1. some cases as I show one example above not fit such replacement 2. split takes regex, split_part take string literal as parameter 3.the idx in split_part can be null, but not in element at
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
