hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15746) Fix default delimiter2 in str_to_map UDF or in method description
Date Fri, 03 Feb 2017 03:46:51 GMT

    [ https://issues.apache.org/jira/browse/HIVE-15746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851014#comment-15851014
] 

Alexander Pivovarov commented on HIVE-15746:
--------------------------------------------

str_to_map documentation was fixed as well (LanguageManual UDF wiki) https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-StringFunctions

> 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
>    Affects Versions: 2.1.1
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>            Priority: Trivial
>             Fix For: 2.2.0
>
>         Attachments: HIVE-15746.1.patch
>
>
> 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.15#6346)

Mime
View raw message