Hive
  1. Hive
  2. HIVE-7229

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            KangHS
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development