You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "yu peng (JIRA)" <ji...@apache.org> on 2017/07/26 16:35:00 UTC
[jira] [Created] (SPARK-21540) add spark.sql.functions.map_keys and
spark.sql.functions.map_values
yu peng created SPARK-21540:
-------------------------------
Summary: 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