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 2017/07/27 00:30:01 UTC
[jira] [Resolved] (SPARK-21540) add spark.sql.functions.map_keys
and spark.sql.functions.map_values
[ https://issues.apache.org/jira/browse/SPARK-21540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-21540.
----------------------------------
Resolution: Duplicate
I guess this was added in SPARK-19975.
> add spark.sql.functions.map_keys and spark.sql.functions.map_values
> -------------------------------------------------------------------
>
> Key: SPARK-21540
> URL: https://issues.apache.org/jira/browse/SPARK-21540
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: yu peng
>
> for dataframe/sql we support MapType, but unlike ArrayType, we can explode to unpack from it.
> getItems is just not powerful enough for manipulate MapTypes
> df.select(map_keys('$map')) and df.select(map_values('$map')) would be really useful
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org