You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Janick Bernet (JIRA)" <ji...@apache.org> on 2016/04/11 23:00:27 UTC
[jira] [Created] (HIVE-13482) str_to_map function delimiters are
regex
Janick Bernet created HIVE-13482:
------------------------------------
Summary: str_to_map function delimiters are regex
Key: HIVE-13482
URL: https://issues.apache.org/jira/browse/HIVE-13482
Project: Hive
Issue Type: Improvement
Components: UDF
Affects Versions: 1.0.0
Reporter: Janick Bernet
Assignee: Jason Dere
Priority: Minor
The two delimiters passed to the 'str_to_map' function are both interpreted as regular expressions, which means that using the pipe ('|') as a delimiter will lead to very unexpected results.
This behaviour is the same for the closely related 'split' function, however that is clearly documented in the function description (as per https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF).
Either the documentation for 'str_to_map' should be updated to reflect that the delimiters are both regular expressions, too, or the implementation should be changed to not interpret them as regexes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)