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 37c4539 commit 80b2166Copy full SHA for 80b2166
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/collect.scala
@@ -65,6 +65,8 @@ abstract class Collect extends ImperativeAggregate {
65
}
66
67
override def update(b: MutableRow, input: InternalRow): Unit = {
68
+ // Do not allow null values. We follow the semantics of Hive's collect_list/collect_set here.
69
+ // See: org.apache.hadoop.hive.ql.udf.generic.GenericUDAFMkCollectionEvaluator
70
val value = child.eval(input)
71
if (value != null) {
72
buffer += value
0 commit comments