You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2022/01/31 23:54:00 UTC

[jira] [Updated] (SPARK-38063) Support SQL split_part function

     [ https://issues.apache.org/jira/browse/SPARK-38063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rui Wang updated SPARK-38063:
-----------------------------
    Description: 
`split_part()` is a commonly supported function by other systems such as Postgres and some other systems.

The Spark equivalent (please double check) is `element_at(split(arg, delim), part)`

If any input parameter is NULL, return NULL.

  was:
`split_part()` is a commonly supported function by other systems such as Postgres, Snowflake, Redshift.

The Spark equivalent (please double check) is `element_at(split(arg, delim), part)`

Note that Snowflake supports negative index which counts from the back. We should automatically support that by using `element_at()`.

If any input parameter is NULL, return NULL.


> Support SQL split_part function
> -------------------------------
>
>                 Key: SPARK-38063
>                 URL: https://issues.apache.org/jira/browse/SPARK-38063
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Rui Wang
>            Priority: Major
>
> `split_part()` is a commonly supported function by other systems such as Postgres and some other systems.
> The Spark equivalent (please double check) is `element_at(split(arg, delim), part)`
> If any input parameter is NULL, return NULL.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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