Kent Yao created SPARK-30008:
--------------------------------

             Summary: the dataType of collect_list and collect_set aggregate 
functions should be ArrayType(_, false)
                 Key: SPARK-30008
                 URL: https://issues.apache.org/jira/browse/SPARK-30008
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.4, 2.3.4
            Reporter: Kent Yao



{code:java}
// Do not allow null values. We follow the semantics of Hive's 
collect_list/collect_set here.
// See: org.apache.hadoop.hive.ql.udf.generic.GenericUDAFMkCollectionEvaluator
{code}

These two functions do not allow null values as they are defined, so their 
elements should not contain null.

Casting collect_list(a) to ArrayType(_, false) will fail.




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