You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/02/08 13:54:07 UTC

[jira] [Updated] (SPARK-34268) The Signature for ConcatWs in Spark SQL Docs Is Inconsistent with the Actual Behavior

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

Hyukjin Kwon updated SPARK-34268:
---------------------------------
    Fix Version/s: 3.1.1

> 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
>            Assignee: Yuning Zhang
>            Priority: Major
>             Fix For: 2.4.8, 3.0.2, 3.1.1, 3.1.2
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org