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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17382971#comment-17382971 ] 

Bruce Wong commented on SPARK-36203:
------------------------------------

sql:
select distinct idselect distinct id , cols , extend_value from test.test_table 
-- extend_value's type is map<String, String>.
error:
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>;

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



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