You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "juntaozhang (Jira)" <ji...@apache.org> on 2025/05/15 13:17:00 UTC

[jira] [Commented] (CALCITE-6951) Add STRING_TO_ARRAY function(enabled in PostgreSQL Library)

    [ https://issues.apache.org/jira/browse/CALCITE-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951742#comment-17951742 ] 

juntaozhang commented on CALCITE-6951:
--------------------------------------

Hi team, I’m willing to take on this task if no one else is able to.

> Add STRING_TO_ARRAY function(enabled in PostgreSQL Library)
> -----------------------------------------------------------
>
>                 Key: CALCITE-6951
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6951
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Priority: Major
>
> *{{STRING_TO_ARRAY}}* is a PostgreSQL function that splits a delimited string into an array of substrings based on a specified delimiter. It takes two mandatory arguments and an optional third argument:
>  # {*}Input String{*}: The source string to be split (e.g., {{{}'apple,banana,cherry'{}}}).
>  # {*}Delimiter{*}: The character or substring used to split the input string (e.g., {{{}','{}}}).
>  # {*}Optional Null String{*}: (Optional) A substring to treat as SQL {{NULL}} in the resulting array (e.g., {{{}'NULL'{}}}).
> {*}Example{*}:
> {code:java}
> STRING_TO_ARRAY('John,SMITH,,Doe', ',', '')   {code}
> Official link:[STRING_TO_ARRAY in PostgreSQL|http://example.com|https://www.postgresql.org/docs/current/functions-string.html]
>  



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