You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2017/01/27 22:53:24 UTC

[jira] [Created] (HIVE-15746) Fix default delimiter2 in str_to_map UDF or in method description

Alexander Pivovarov created HIVE-15746:
------------------------------------------

             Summary: Fix default delimiter2 in str_to_map UDF or in method description
                 Key: HIVE-15746
                 URL: https://issues.apache.org/jira/browse/HIVE-15746
             Project: Hive
          Issue Type: Bug
          Components: UDF
            Reporter: Alexander Pivovarov
            Assignee: Alexander Pivovarov
            Priority: Trivial


According to UDF wiki and to GenericUDFStringToMap.java class comments default delimiter 2 should be '='.

But in the code default_del2 = ":"
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFStringToMap.java#L53

We need to fix code or fix the method description and UDF wiki

Let me know what you think?

{code}
str_to_map("a=1,b=2")
vs
str_to_map("a:1,b:2")
{code}



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