[
https://issues.apache.org/jira/browse/CALCITE-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781596#comment-17781596
]
Jiajun Xie commented on CALCITE-5826:
-------------------------------------
Fixed in
[2ddc605|https://github.com/apache/calcite/commit/2ddc6053b55147622f4a4642786d36403ce7f49a].
Thanks for the PR.[~Runking]
Thanks for the review [~shenlang] , [~mbudiu].
> 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, 1.35.0
> Reporter: Runkang He
> Assignee: Runkang He
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.36.0
>
>
> 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)