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

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

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

Dongjoon Hyun reassigned SPARK-30008:
-------------------------------------

    Assignee: Kent Yao

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