Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
-
Looking at convertToMPart:
private MPartition convertToMPart(Partition part, boolean useTableCD) throws InvalidObjectException, MetaException { MTable mt = getMTable(part.getCatName(), part.getDbName(), part.getTableName()); ...
So what we have as a result is that we fetch table for every partition where it should be done just once.
Looking at convertToMPart : private MPartition convertToMPart(Partition part, boolean useTableCD) throws InvalidObjectException, MetaException { MTable mt = getMTable(part.getCatName(), part.getDbName(), part.getTableName()); ... So what we have as a result is that we fetch table for every partition where it should be done just once.
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
Attachments
Issue Links
- is related to
-
HIVE-19715 Consolidated and flexible API for fetching partition metadata from HMS
- Open
- links to