[
https://issues.apache.org/jira/browse/SPARK-36203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761796#comment-17761796
]
Paul Praet edited comment on SPARK-36203 at 9/4/23 11:55 AM:
-------------------------------------------------------------
This problem is still present in 3.3.2 (and I think also in 3.4.1).
I cannot do a UNION on a dataframe with a map<>
was (Author: praetp):
This problem is still present in 3.3.2 (and I think also in 3.4.1).
> 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.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]