You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kent Yao (Jira)" <ji...@apache.org> on 2019/11/24 15:47:00 UTC

[jira] [Created] (SPARK-30008) the dataType of collect_list and collect_set aggregate functions should be ArrayType(_, false)

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org