We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc7be6 commit 3ae85f7Copy full SHA for 3ae85f7
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringOperations.scala
@@ -110,11 +110,8 @@ case class ConcatWs(children: Seq[Expression])
110
}.mkString(", ")
111
112
evals.map(_.code).mkString("\n") + s"""
113
- boolean ${ev.isNull} = false;
114
UTF8String ${ev.primitive} = UTF8String.concatWs($inputs);
115
- if (${ev.primitive} == null) {
116
- ${ev.isNull} = true;
117
- }
+ boolean ${ev.isNull} = ${ev.primitive} == null;
118
"""
119
} else {
120
// Contains a mix of strings and array<string>s. Fall back to interpreted mode for now.
0 commit comments