hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anup b (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-10806) Incorrect example for exploding map function in hive wiki
Date Sat, 23 May 2015 00:51:17 GMT
anup b created HIVE-10806:
-----------------------------

             Summary: Incorrect example for exploding map function in hive wiki
                 Key: HIVE-10806
                 URL: https://issues.apache.org/jira/browse/HIVE-10806
             Project: Hive
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 0.10.0
            Reporter: anup b
            Priority: Trivial


In hive wiki, example for exploding map is wrong it doesnt work in hive 0.10

Example given in wiki which doesnt work:

SELECT explode(myMap) AS myMapKey, myMapValue FROM myMapTable;

It should be updated to :
SELECT explode(myMap) AS (myMapKey, myMapValue) FROM myMapTable;

Link : https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-explode



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message