You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/08/30 01:01:11 UTC
[jira] [Commented] (CALCITE-3306) Add REGEXP_SPLIT_TO_ARRAY
function
[ https://issues.apache.org/jira/browse/CALCITE-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919077#comment-16919077 ]
Julian Hyde commented on CALCITE-3306:
--------------------------------------
* Please, no '.' at the end of commit message
* Should not be in {{SqlStdOperatorTable}}, because it is not standard.
* In {{reference.md}}, functions are in alphabetical order
* The function is strict, right? In {{SqlFunctions.regexpSplitToArray}}, don't even check whether {{r}} and {{s}} are null. They will never be.
> Add REGEXP_SPLIT_TO_ARRAY function
> ----------------------------------
>
> Key: CALCITE-3306
> URL: https://issues.apache.org/jira/browse/CALCITE-3306
> Project: Calcite
> Issue Type: New Feature
> Reporter: Wang Yanlin
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In work, I need to split a string into array. But I found there is no coresponding *split* function in calcite like the *regexp_split_to_array* in [PostgreSQL|https://www.postgresql.org/docs/9.1/functions-matching.html].
> Although we can solve this by creating a udf based on calcite, but a built in function might be better, in case some others may have the same need.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)