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 2023/07/14 01:15:00 UTC

[jira] [Updated] (CALCITE-5826) Add FIND_IN_SET function (enabled in Hive and Spark library)

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

ASF GitHub Bot updated CALCITE-5826:
------------------------------------
    Labels: pull-request-available  (was: )

> Add FIND_IN_SET function (enabled in Hive and Spark library)
> ------------------------------------------------------------
>
>                 Key: CALCITE-5826
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5826
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 1.34.0
>            Reporter: Runkang He
>            Assignee: Runkang He
>            Priority: Major
>              Labels: pull-request-available
>
> Add FIND_IN_SET function (enabled in Hive and Spark library):
>  
> FIND_IN_SET(str, str_array) - find_in_set(str, str_array) - Returns the index (1-based) of the given string ({{{}str{}}}) in the comma-delimited list ({{{}str_array{}}}). Returns 0, if the string was not found or if the given string ({{{}str{}}}) contains a comma.
>  
> See more details in [Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf#LanguageManualUDF-StringFunctions] and [Spark|https://spark.apache.org/docs/latest/api/sql/index.html#find_in_set] doc.



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