File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,15 @@ case class Concat(children: Seq[Expression]) extends Expression with ImplicitCas
6565}
6666
6767
68- case class ConcatWs (children : Seq [Expression ]) extends Expression with ImplicitCastInputTypes with CodegenFallback {
68+ /**
69+ * An expression that concatenates multiple input strings into a single string, using a given
70+ * separator (the first child).
71+ *
72+ * Returns null if the separator is null. Otherwise, concat_ws skips all null values.
73+ */
74+ case class ConcatWs (children : Seq [Expression ])
75+ extends Expression with ImplicitCastInputTypes with CodegenFallback {
76+
6977 require(children.nonEmpty, s " $prettyName requires at least one argument. " )
7078
7179 override def prettyName : String = " concat_ws"
You can’t perform that action at this time.
0 commit comments