Runkang He created CALCITE-5826:
-----------------------------------
Summary: 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
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)