Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10152

ErrorMsg.formatToErrorMsgMap has bad regex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • Logging
    • None

    Description

              String pattern = errorMsg.mesg.replaceAll("\\{.*\\}", ".*");
      

      should be

      String pattern = errorMsg.mesg.replaceAll("\\{[0-9]+\\}", ".*");
      

      current regex can match the whole msg (with more than 1 param)

      Attachments

        1. HIVE-10152.patch
          4 kB
          Eugene Koifman

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: