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

Mihai Budiu resolved CALCITE-6663.
----------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/a83f2f81f9275d670e7df86a525aef613af72366
Thank you for the contribution, [~zhuqi]
Thank you for the reviews [~caicancai][~nobigo]

> Support SPLIT_PART function for Postgres
> ----------------------------------------
>
>                 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
>             Fix For: 1.39.0
>
>
> We can support SPLIT_PART function for Postgres:
> {{  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.
> {noformat}
> split_part('abc#def#ghi', '#', 2)   # returns 'def'
> split_part('abc,def,ghi,jkl', ',', -2)     # returns 'ghi'
> {noformat}



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

Reply via email to