You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/07/19 08:39:00 UTC

[jira] [Resolved] (SPARK-36203) Spark SQL can't use "group by" on the column of map type.

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

Hyukjin Kwon resolved SPARK-36203.
----------------------------------
    Resolution: Incomplete

> Spark SQL can't use "group by" on the column of map type.
> ---------------------------------------------------------
>
>                 Key: SPARK-36203
>                 URL: https://issues.apache.org/jira/browse/SPARK-36203
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.5
>            Reporter: Bruce Wong
>            Priority: Major
>
> I want to know why the 'group by' can't use in column of map tyep.
>  
> *sql:*
> select distinct idselect distinct id , cols , extend_value from test.test_table 
> -- extend_value's type is map<String, String>.
> *error:*
> {color:#FF0000}Sql执行错误:org.apache.spark.sql.AnalysisException: Cannot have map type columns in DataFrame which calls set operations(intersect, except, etc.), but the type of column extend_value is map<string,string>;{color}
>  



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