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