You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/11/01 05:34:00 UTC
[jira] [Updated] (CALCITE-6663) Support SPLIT_PART function for postgresql
[ https://issues.apache.org/jira/browse/CALCITE-6663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CALCITE-6663:
------------------------------------
Labels: pull-request-available (was: )
> Support SPLIT_PART function for postgresql
> ------------------------------------------
>
> Key: CALCITE-6663
> URL: https://issues.apache.org/jira/browse/CALCITE-6663
> Project: Calcite
> Issue Type: Improvement
> Reporter: Qi Zhu
> Priority: Major
> Labels: pull-request-available
>
> {{We can support split_part function for postgresq:}}
> {{split_part}} ( _{{string}}_ {{{}text{}}}, _{{delimiter}}_ {{{}text{}}}, _{{n}}_ {{integer}} ) → {{text}}
> Splits _{{string}}_ at occurrences of _{{delimiter}}_ and returns the {_}{{n}}{_}'th field (counting from one), or when _{{n}}_ is negative, returns the |{_}{{n}}{_}|'th-from-last field.
> {{split_part('abc~@~def~@~ghi', '~@~', 2)}} → {{def}}
> {{split_part('abc,def,ghi,jkl', ',', -2)}} → {{ghi}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)