[
https://issues.apache.org/jira/browse/SPARK-34268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuning Zhang updated SPARK-34268:
---------------------------------
Description:
In [https://spark.apache.org/docs/latest/api/sql/index.html#concat_ws], the
signature of concat_ws is concat_ws(sep, [str | array(str)]+). However, it
doesn't actually need any str or array(str) arguments. Only having the sep
argument seems to work.
For example, `select concat_ws("a")` returns an empty string.
{code:java}
scala> sql("""select concat_ws("a")""").show
+------------+
|concat_ws(a)|
+------------+
| |
+------------+
{code}
was:
In https://spark.apache.org/docs/latest/api/sql/index.html#concat_ws, the
signature of conccat_ws is concat_ws(sep, [str | array(str)]+). However, it
doesn't actually need any str or array(str) arguments. Only having the sep
argument seems to work.
For example, select concat_ws("a") returns an empty string.
scala> sql("""select concat_ws("a")""").show
+------------+
|concat_ws(a)|
+------------+
| |
+------------+
> The Signature for ConcatWs in Spark SQL Docs Is Inconsistent with the Actual
> Behavior
> -------------------------------------------------------------------------------------
>
> Key: SPARK-34268
> URL: https://issues.apache.org/jira/browse/SPARK-34268
> Project: Spark
> Issue Type: Bug
> Components: docs
> Affects Versions: 3.2.0
> Reporter: Yuning Zhang
> Priority: Major
>
> In [https://spark.apache.org/docs/latest/api/sql/index.html#concat_ws], the
> signature of concat_ws is concat_ws(sep, [str | array(str)]+). However, it
> doesn't actually need any str or array(str) arguments. Only having the sep
> argument seems to work.
> For example, `select concat_ws("a")` returns an empty string.
> {code:java}
> scala> sql("""select concat_ws("a")""").show
> +------------+
> |concat_ws(a)|
> +------------+
> | |
> +------------+
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]