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

String is compared using equal in HiveMetaStore#HMSHandler#init()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      Around line 423:

            if (partitionValidationRegex != null && partitionValidationRegex != "") {
              partitionValidationPattern = Pattern.compile(partitionValidationRegex);
      

      partitionValidationRegex.isEmpty() can be used instead.

        Attachments

        1. HIVE-7229.patch
          0.7 kB
          KangHS
        2. HIVE-7229.1.patch
          0.7 kB
          KangHS
        3. HIVE-7229.patch
          0.8 kB
          KangHS

          Activity

            People

            • Assignee:
              HS KangHS
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: