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

Adding partitions in bulk also fetches table for each partition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • Metastore
    • None

    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.2.patch
          14 kB
          Peter Vary
        2. HIVE-19718.3.patch
          14 kB
          Peter Vary
        3. HIVE-19718.4.patch
          15 kB
          Peter Vary
        4. HIVE-19718.5.patch
          16 kB
          Peter Vary
        5. HIVE-19718.patch
          14 kB
          Peter Vary

        Issue Links

          Activity

            People

              pvary Peter Vary
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: