[ 
https://issues.apache.org/jira/browse/HIVE-10152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eugene Koifman updated HIVE-10152:
----------------------------------
    Attachment: HIVE-10152.patch

> ErrorMsg.formatToErrorMsgMap has bad regex
> ------------------------------------------
>
>                 Key: HIVE-10152
>                 URL: https://issues.apache.org/jira/browse/HIVE-10152
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 1.1.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>         Attachments: HIVE-10152.patch
>
>
> {noformat}
>         String pattern = errorMsg.mesg.replaceAll("\\{.*\\}", ".*");
> {noformat}
> should be
> {noformat}
> String pattern = errorMsg.mesg.replaceAll("\\{[0-9]+\\}", ".*");
> {noformat}
> current regex can match the whole msg (with more than 1 param)



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

Reply via email to