[ 
https://issues.apache.org/jira/browse/SPARK-30008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kent Yao updated SPARK-30008:
-----------------------------
    Issue Type: Bug  (was: Improvement)

> 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: Bug
>          Components: SQL
>    Affects Versions: 2.3.4, 2.4.4
>            Reporter: Kent Yao
>            Priority: Major
>
> {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