[ 
https://issues.apache.org/jira/browse/SPARK-36203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17383143#comment-17383143
 ] 

Hyukjin Kwon commented on SPARK-36203:
--------------------------------------

Can you show the fullly self-contained reproducer? BTW, Spark 2.4 is EOL so 
that won't be fixed in Spark 2.4.x. Can you also try it in a higher version of 
Spark?

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

Reply via email to