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

Adding partitions in bulk also fetches table for each partition

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Metastore
    • Labels:
      None
    • Environment:

      Description

      The ObjectStore.addPartitions() method does this:

      for (Partition part : parts) {
        if (!part.getTableName().equals(tblName) || !part.getDbName().equals(dbName)) {
          throw new MetaException("Partition does not belong to target table "
              + dbName + "." + tblName + ": " + part);
        }
        MPartition mpart = convertToMPart(part, true); // <-- Here
        toPersist.add(mpart);
        ...

        Attachments

        1. HIVE-19718.patch
          14 kB
          Peter Vary
        2. HIVE-19718.5.patch
          16 kB
          Peter Vary
        3. HIVE-19718.4.patch
          15 kB
          Peter Vary
        4. HIVE-19718.3.patch
          14 kB
          Peter Vary
        5. HIVE-19718.2.patch
          14 kB
          Peter Vary

          Issue Links

            Activity

              People

              • Assignee:
                pvary Peter Vary
                Reporter:
                akolb Alexander Kolbasov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: