Yuning Zhang created SPARK-34268:
------------------------------------

             Summary: 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


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)|
+------------+
|            |
+------------+



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to