Skip to content

Commit aa4d87f

Browse files
committed
[Refactor](Multi Catalog) Unify external meta cache framework (apache#60937)
Part of apache#60686 This PR continues the external metadata cache refactor by introducing a unified engine-scoped cache framework and aligning multiple external catalog implementations on top of it. The goal is not to finish every historical cache migration in one shot. The goal is to make the framework shape explicit and consistent enough that later migrations can continue on top of one model instead of adding more engine-specific cache flows. At a high level, this PR does three things: - introduces a common framework for external metadata cache lifecycle, routing, invalidation, and stats - moves more engine-specific cache behavior behind engine adapters instead of scattered table- and util-level entry points - improves cross-engine consistency and test coverage while keeping legacy compatibility migration incremental The current framework can be viewed as three layers: 1. manager layer: owns engine cache lifecycle and routes cache operations 2. engine layer: each engine implements its own cache adapter on the shared framework 3. catalog/entry layer: each engine keeps per-catalog cache groups and typed cache entries ```mermaid flowchart TD A["ExternalMetaCacheMgr"] --> B["ExternalMetaCacheRegistry"] A --> C["ExternalMetaCacheRouteResolver"] A --> D["ExternalMetaCache(engine facade)"] D --> E["AbstractExternalMetaCache"] E --> F["CatalogEntryGroup(catalog scoped)"] F --> G["MetaCacheEntry(table/schema/partition/...)"] H["IcebergExternalMetaCache"] --> E I["PaimonExternalMetaCache"] --> E J["HudiExternalMetaCache"] --> E K["MaxComputeExternalMetaCache"] --> E L["DorisExternalMetaCache"] --> E M["HiveExternalMetaCache"] --> E ``` This structure makes a few framework boundaries explicit: - manager-level logic is responsible for engine registration, route resolution, and scoped invalidation dispatch - engine adapters own engine-specific metadata loading and cache composition - shared framework code owns per-catalog entry containers, generic entry access, and common lifecycle behavior - add a shared external meta cache framework under `datasource.metacache` - refactor `ExternalMetaCacheMgr` so registration and routing are more explicit instead of staying mixed in one manager path - make cache initialization and invalidation flow clearer at the framework level - align multiple engines with the framework model, including Iceberg, Paimon, Hudi, MaxCompute, Doris, and Hive - keep legacy compatibility migration incremental instead of forcing a one-PR full replacement of every historical cache path - add or extend framework-level and engine-level tests around routing, invalidation, and cache behavior This PR is mainly about pulling different engines closer to one framework shape. - Iceberg and Paimon are aligned with the framework while keeping latest snapshot metadata modeled as table-owned runtime projection - Hudi moves further away from ad hoc cache state and closer to framework-owned entry behavior - MaxCompute and Doris move more cache ownership into engine adapters - Hive keeps its existing complexity where necessary, but more of that logic now sits behind the framework-oriented cache layer The important point is not that every engine is identical now. The important point is that they are being moved toward one consistent framework model. - this is primarily a framework refactor and behavior-alignment change - migration is still incremental, so some legacy compatibility paths are intentionally retained - the purpose of this PR is to reduce structural divergence across engines without requiring a full one-shot migration (cherry picked from commit 010f470)
1 parent fa40c15 commit aa4d87f

113 files changed

Lines changed: 6973 additions & 3620 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎be/src/information_schema/schema_catalog_meta_cache_stats_scanner.cpp‎

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,29 @@ namespace doris {
3030
#include "common/compile_check_begin.h"
3131

3232
std::vector<SchemaScanner::ColumnDesc> SchemaCatalogMetaCacheStatsScanner::_s_tbls_columns = {
33+
{"FE_HOST", TYPE_STRING, sizeof(StringRef), true},
3334
{"CATALOG_NAME", TYPE_STRING, sizeof(StringRef), true},
34-
{"CACHE_NAME", TYPE_STRING, sizeof(StringRef), true},
35-
{"METRIC_NAME", TYPE_STRING, sizeof(StringRef), true},
36-
{"METRIC_VALUE", TYPE_STRING, sizeof(StringRef), true},
35+
{"ENGINE_NAME", TYPE_STRING, sizeof(StringRef), true},
36+
{"ENTRY_NAME", TYPE_STRING, sizeof(StringRef), true},
37+
{"EFFECTIVE_ENABLED", TYPE_BOOLEAN, sizeof(bool), true},
38+
{"CONFIG_ENABLED", TYPE_BOOLEAN, sizeof(bool), true},
39+
{"AUTO_REFRESH", TYPE_BOOLEAN, sizeof(bool), true},
40+
{"TTL_SECOND", TYPE_BIGINT, sizeof(int64_t), true},
41+
{"CAPACITY", TYPE_BIGINT, sizeof(int64_t), true},
42+
{"ESTIMATED_SIZE", TYPE_BIGINT, sizeof(int64_t), true},
43+
{"REQUEST_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
44+
{"HIT_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
45+
{"MISS_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
46+
{"HIT_RATE", TYPE_DOUBLE, sizeof(double), true},
47+
{"LOAD_SUCCESS_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
48+
{"LOAD_FAILURE_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
49+
{"TOTAL_LOAD_TIME_MS", TYPE_BIGINT, sizeof(int64_t), true},
50+
{"AVG_LOAD_PENALTY_MS", TYPE_DOUBLE, sizeof(double), true},
51+
{"EVICTION_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
52+
{"INVALIDATE_COUNT", TYPE_BIGINT, sizeof(int64_t), true},
53+
{"LAST_LOAD_SUCCESS_TIME", TYPE_STRING, sizeof(StringRef), true},
54+
{"LAST_LOAD_FAILURE_TIME", TYPE_STRING, sizeof(StringRef), true},
55+
{"LAST_ERROR", TYPE_STRING, sizeof(StringRef), true},
3756
};
3857

3958
SchemaCatalogMetaCacheStatsScanner::SchemaCatalogMetaCacheStatsScanner()

‎be/src/information_schema/schema_scanner.cpp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,16 @@ Status SchemaScanner::insert_block_column(TCell cell, int col_index, Block* bloc
456456
break;
457457
}
458458

459+
case TYPE_FLOAT: {
460+
assert_cast<ColumnFloat32*>(col_ptr)->insert_value(cell.doubleVal);
461+
break;
462+
}
463+
464+
case TYPE_DOUBLE: {
465+
assert_cast<ColumnFloat64*>(col_ptr)->insert_value(cell.doubleVal);
466+
break;
467+
}
468+
459469
case TYPE_BOOLEAN: {
460470
reinterpret_cast<ColumnUInt8*>(col_ptr)->insert_value(cell.boolVal);
461471
break;

‎fe/fe-core/src/main/java/org/apache/doris/catalog/RefreshManager.java‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.doris.datasource.ExternalTable;
2929
import org.apache.doris.datasource.hive.HMSExternalCatalog;
3030
import org.apache.doris.datasource.hive.HMSExternalTable;
31-
import org.apache.doris.datasource.hive.HiveMetaStoreCache;
31+
import org.apache.doris.datasource.hive.HiveExternalMetaCache;
3232
import org.apache.doris.datasource.iceberg.IcebergExternalTable;
3333
import org.apache.doris.persist.OperationType;
3434

@@ -192,8 +192,8 @@ public void replayRefreshTable(ExternalObjectLog log) {
192192
&& ((modifiedPartNames != null && !modifiedPartNames.isEmpty())
193193
|| (newPartNames != null && !newPartNames.isEmpty()))) {
194194
// Partition-level cache invalidation, only for hive catalog
195-
HiveMetaStoreCache cache = Env.getCurrentEnv().getExtMetaCacheMgr()
196-
.getMetaStoreCache((HMSExternalCatalog) catalog);
195+
HiveExternalMetaCache cache = Env.getCurrentEnv().getExtMetaCacheMgr()
196+
.hive(catalog.getId());
197197
cache.refreshAffectedPartitionsCache((HMSExternalTable) table.get(), modifiedPartNames, newPartNames);
198198
if (table.get() instanceof HMSExternalTable && log.getLastUpdateTime() > 0) {
199199
((HMSExternalTable) table.get()).setUpdateTime(log.getLastUpdateTime());
@@ -276,7 +276,11 @@ public void refreshPartitions(String catalogName, String dbName, String tableNam
276276
return;
277277
}
278278

279-
Env.getCurrentEnv().getExtMetaCacheMgr().invalidatePartitionsCache((ExternalTable) table, partitionNames);
279+
ExternalTable externalTable = (ExternalTable) table;
280+
HiveExternalMetaCache cache = Env.getCurrentEnv().getExtMetaCacheMgr().hive(externalTable.getCatalog().getId());
281+
for (String partitionName : partitionNames) {
282+
cache.invalidatePartitionCache(externalTable, partitionName);
283+
}
280284
((HMSExternalTable) table).setUpdateTime(updateTime);
281285
}
282286

‎fe/fe-core/src/main/java/org/apache/doris/catalog/SchemaTable.java‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,29 @@ public class SchemaTable extends Table {
612612
)
613613
.put("catalog_meta_cache_statistics",
614614
new SchemaTable(SystemIdGenerator.getNextId(), "catalog_meta_cache_statistics", TableType.SCHEMA,
615-
builder().column("CATALOG_NAME", ScalarType.createStringType())
616-
.column("CACHE_NAME", ScalarType.createStringType())
617-
.column("METRIC_NAME", ScalarType.createStringType())
618-
.column("METRIC_VALUE", ScalarType.createStringType())
615+
builder().column("FE_HOST", ScalarType.createStringType())
616+
.column("CATALOG_NAME", ScalarType.createStringType())
617+
.column("ENGINE_NAME", ScalarType.createStringType())
618+
.column("ENTRY_NAME", ScalarType.createStringType())
619+
.column("EFFECTIVE_ENABLED", ScalarType.createType(PrimitiveType.BOOLEAN))
620+
.column("CONFIG_ENABLED", ScalarType.createType(PrimitiveType.BOOLEAN))
621+
.column("AUTO_REFRESH", ScalarType.createType(PrimitiveType.BOOLEAN))
622+
.column("TTL_SECOND", ScalarType.createType(PrimitiveType.BIGINT))
623+
.column("CAPACITY", ScalarType.createType(PrimitiveType.BIGINT))
624+
.column("ESTIMATED_SIZE", ScalarType.createType(PrimitiveType.BIGINT))
625+
.column("REQUEST_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
626+
.column("HIT_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
627+
.column("MISS_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
628+
.column("HIT_RATE", ScalarType.createType(PrimitiveType.DOUBLE))
629+
.column("LOAD_SUCCESS_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
630+
.column("LOAD_FAILURE_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
631+
.column("TOTAL_LOAD_TIME_MS", ScalarType.createType(PrimitiveType.BIGINT))
632+
.column("AVG_LOAD_PENALTY_MS", ScalarType.createType(PrimitiveType.DOUBLE))
633+
.column("EVICTION_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
634+
.column("INVALIDATE_COUNT", ScalarType.createType(PrimitiveType.BIGINT))
635+
.column("LAST_LOAD_SUCCESS_TIME", ScalarType.createStringType())
636+
.column("LAST_LOAD_FAILURE_TIME", ScalarType.createStringType())
637+
.column("LAST_ERROR", ScalarType.createStringType())
619638
.build())
620639
)
621640
.put("backend_kerberos_ticket_cache",

‎fe/fe-core/src/main/java/org/apache/doris/common/util/BrokerUtil.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.apache.doris.common.FeConstants;
2828
import org.apache.doris.common.Pair;
2929
import org.apache.doris.common.UserException;
30-
import org.apache.doris.datasource.hive.HiveMetaStoreCache;
30+
import org.apache.doris.datasource.hive.HiveExternalMetaCache;
3131
import org.apache.doris.fs.FileSystemFactory;
3232
import org.apache.doris.fs.remote.RemoteFile;
3333
import org.apache.doris.fs.remote.RemoteFileSystem;
@@ -177,7 +177,7 @@ public static List<String> parseColumnsFromPath(
177177
if (index == -1) {
178178
continue;
179179
}
180-
columns[index] = HiveMetaStoreCache.HIVE_DEFAULT_PARTITION.equals(pair[1])
180+
columns[index] = HiveExternalMetaCache.HIVE_DEFAULT_PARTITION.equals(pair[1])
181181
? FeConstants.null_string : pair[1];
182182
size++;
183183
if (size >= columnsFromPath.size()) {

‎fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogMgr.java‎

Lines changed: 117 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.doris.catalog.EnvFactory;
2424
import org.apache.doris.catalog.TableIf;
2525
import org.apache.doris.cluster.ClusterNamespace;
26+
import org.apache.doris.catalog.Type;
2627
import org.apache.doris.common.AnalysisException;
2728
import org.apache.doris.common.CaseSensibility;
2829
import org.apache.doris.common.DdlException;
@@ -41,7 +42,10 @@
4142
import org.apache.doris.datasource.hive.HMSExternalCatalog;
4243
import org.apache.doris.datasource.hive.HMSExternalDatabase;
4344
import org.apache.doris.datasource.hive.HMSExternalTable;
45+
import org.apache.doris.datasource.hive.HiveExternalMetaCache;
46+
import org.apache.doris.datasource.mvcc.MvccUtil;
4447
import org.apache.doris.mysql.privilege.PrivPredicate;
48+
import org.apache.doris.nereids.exceptions.NotSupportedException;
4549
import org.apache.doris.nereids.trees.plans.commands.CreateCatalogCommand;
4650
import org.apache.doris.persist.OperationType;
4751
import org.apache.doris.persist.gson.GsonPostProcessable;
@@ -121,20 +125,44 @@ private void addCatalog(CatalogIf catalog) {
121125
}
122126
}
123127

124-
private CatalogIf removeCatalog(long catalogId) {
125-
CatalogIf catalog = idToCatalog.remove(catalogId);
126-
LOG.info("Removed catalog with id {}, name {}", catalogId, catalog == null ? "N/A" : catalog.getName());
127-
if (catalog != null) {
128-
Env.getCurrentEnv().getRefreshManager().removeFromRefreshMap(catalogId);
129-
catalog.onClose();
130-
nameToCatalog.remove(catalog.getName());
131-
if (ConnectContext.get() != null) {
132-
ConnectContext.get().removeLastDBOfCatalog(catalog.getName());
133-
}
134-
Env.getCurrentEnv().getExtMetaCacheMgr().removeCache(catalog.getId());
135-
Env.getCurrentEnv().getQueryStats().clear(catalog.getId());
128+
private RemovedCatalog removeCatalog(long catalogId) {
129+
CatalogIf catalog = idToCatalog.get(catalogId);
130+
if (catalog == null) {
131+
return null;
132+
}
133+
String catalogName = catalog.getName();
134+
Env.getCurrentEnv().getRefreshManager().removeFromRefreshMap(catalogId);
135+
idToCatalog.remove(catalogId);
136+
nameToCatalog.remove(catalogName);
137+
return new RemovedCatalog(catalog, catalogName);
138+
}
139+
140+
private void cleanupRemovedCatalog(RemovedCatalog removedCatalog) {
141+
if (removedCatalog == null) {
142+
return;
143+
}
144+
CatalogIf catalog = removedCatalog.catalog;
145+
catalog.onClose();
146+
Env.getCurrentEnv().getConstraintManager().dropCatalogConstraints(removedCatalog.catalogName);
147+
ConnectContext ctx = ConnectContext.get();
148+
if (ctx != null) {
149+
ctx.removeLastDBOfCatalog(removedCatalog.catalogName);
150+
}
151+
Env.getCurrentEnv().getExtMetaCacheMgr().removeCatalog(removedCatalog.catalogId);
152+
Env.getCurrentEnv().getQueryStats().clear(removedCatalog.catalogId);
153+
LOG.info("Removed catalog with id {}, name {}", removedCatalog.catalogId, removedCatalog.catalogName);
154+
}
155+
156+
private static final class RemovedCatalog {
157+
private final CatalogIf catalog;
158+
private final String catalogName;
159+
private final long catalogId;
160+
161+
private RemovedCatalog(CatalogIf catalog, String catalogName) {
162+
this.catalog = catalog;
163+
this.catalogName = catalogName;
164+
this.catalogId = catalog.getId();
136165
}
137-
return catalog;
138166
}
139167

140168
public InternalCatalog getInternalCatalog() {
@@ -255,6 +283,7 @@ public void createCatalog(CreateCatalogCommand cmd) throws UserException {
255283
* Remove the catalog instance by name and write the meta log.
256284
*/
257285
public void dropCatalog(String catalogName, boolean ifExists) throws UserException {
286+
RemovedCatalog removedCatalog = null;
258287
writeLock();
259288
try {
260289
if (ifExists && !nameToCatalog.containsKey(catalogName)) {
@@ -267,23 +296,24 @@ public void dropCatalog(String catalogName, boolean ifExists) throws UserExcepti
267296
}
268297
CatalogLog log = new CatalogLog();
269298
log.setCatalogId(catalog.getId());
270-
replayDropCatalog(log);
299+
removedCatalog = removeCatalog(log.getCatalogId());
271300
Env.getCurrentEnv().getEditLog().logCatalogLog(OperationType.OP_DROP_CATALOG, log);
272-
273-
if (ConnectContext.get() != null) {
274-
ConnectContext.get().removeLastDBOfCatalog(catalogName);
275-
}
276-
Env.getCurrentEnv().getQueryStats().clear(catalog.getId());
277-
LOG.info("finished to drop catalog {}:{}", catalog.getName(), catalog.getId());
278301
} finally {
279302
writeUnlock();
303+
cleanupRemovedCatalog(removedCatalog);
280304
}
305+
if (removedCatalog == null) {
306+
return;
307+
}
308+
LOG.info("finished to drop catalog {}:{}", removedCatalog.catalogName, removedCatalog.catalogId);
281309
}
282310

283311
/**
284312
* Modify the catalog name into a new one and write the meta log.
285313
*/
286314
public void alterCatalogName(String catalogName, String newCatalogName) throws UserException {
315+
RemovedCatalog removedCatalog = null;
316+
String lastDb = null;
287317
writeLock();
288318
try {
289319
CatalogIf catalog = nameToCatalog.get(catalogName);
@@ -296,17 +326,49 @@ public void alterCatalogName(String catalogName, String newCatalogName) throws U
296326
CatalogLog log = new CatalogLog();
297327
log.setCatalogId(catalog.getId());
298328
log.setNewCatalogName(newCatalogName);
299-
replayAlterCatalogName(log);
300-
Env.getCurrentEnv().getEditLog().logCatalogLog(OperationType.OP_ALTER_CATALOG_NAME, log);
329+
ConnectContext ctx = ConnectContext.get();
330+
if (ctx != null) {
331+
lastDb = ctx.getLastDBOfCatalog(catalogName);
332+
}
333+
removedCatalog = removeCatalog(log.getCatalogId());
334+
} finally {
335+
writeUnlock();
336+
}
337+
cleanupRemovedCatalog(removedCatalog);
338+
if (removedCatalog == null) {
339+
throw new IllegalStateException("No catalog found with name: " + catalogName);
340+
}
341+
342+
writeLock();
343+
try {
344+
DdlException ddlException = null;
345+
CatalogIf catalog = removedCatalog.catalog;
346+
if (nameToCatalog.get(newCatalogName) != null) {
347+
addCatalog(catalog);
348+
ddlException = new DdlException("Catalog with name " + newCatalogName + " already exist");
349+
} else {
350+
catalog.modifyCatalogName(newCatalogName);
351+
addCatalog(catalog);
352+
353+
CatalogLog log = new CatalogLog();
354+
log.setCatalogId(catalog.getId());
355+
log.setNewCatalogName(newCatalogName);
356+
Env.getCurrentEnv().getEditLog().logCatalogLog(OperationType.OP_ALTER_CATALOG_NAME, log);
357+
}
301358

302359
ConnectContext ctx = ConnectContext.get();
303360
if (ctx != null) {
304-
String db = ctx.getLastDBOfCatalog(catalogName);
305-
if (db != null) {
306-
ctx.removeLastDBOfCatalog(catalogName);
307-
ctx.addLastDBOfCatalog(log.getNewCatalogName(), db);
361+
if (lastDb != null) {
362+
if (ddlException == null) {
363+
ctx.addLastDBOfCatalog(newCatalogName, lastDb);
364+
} else {
365+
ctx.addLastDBOfCatalog(catalogName, lastDb);
366+
}
308367
}
309368
}
369+
if (ddlException != null) {
370+
throw ddlException;
371+
}
310372
} finally {
311373
writeUnlock();
312374
}
@@ -498,22 +560,37 @@ private void createCatalogInternal(CatalogIf catalog, boolean isReplay) throws D
498560
* Reply for drop catalog event.
499561
*/
500562
public void replayDropCatalog(CatalogLog log) {
563+
RemovedCatalog removedCatalog;
501564
writeLock();
502565
try {
503-
removeCatalog(log.getCatalogId());
566+
removedCatalog = removeCatalog(log.getCatalogId());
504567
} finally {
505568
writeUnlock();
506569
}
570+
cleanupRemovedCatalog(removedCatalog);
507571
}
508572

509573
/**
510574
* Reply for alter catalog name event.
511575
*/
512576
public void replayAlterCatalogName(CatalogLog log) {
577+
RemovedCatalog removedCatalog;
578+
writeLock();
579+
try {
580+
removedCatalog = removeCatalog(log.getCatalogId());
581+
} finally {
582+
writeUnlock();
583+
}
584+
cleanupRemovedCatalog(removedCatalog);
585+
586+
if (removedCatalog == null) {
587+
throw new IllegalStateException("No catalog found with id: " + log.getCatalogId());
588+
}
589+
CatalogIf catalog = removedCatalog.catalog;
590+
catalog.modifyCatalogName(log.getNewCatalogName());
591+
513592
writeLock();
514593
try {
515-
CatalogIf catalog = removeCatalog(log.getCatalogId());
516-
catalog.modifyCatalogName(log.getNewCatalogName());
517594
addCatalog(catalog);
518595
} finally {
519596
writeUnlock();
@@ -725,7 +802,15 @@ public void addExternalPartitions(String catalogName, String dbName, String tabl
725802
}
726803

727804
HMSExternalTable hmsTable = (HMSExternalTable) table;
728-
Env.getCurrentEnv().getExtMetaCacheMgr().addPartitionsCache(catalog.getId(), hmsTable, partitionNames);
805+
List<Type> partitionColumnTypes;
806+
try {
807+
partitionColumnTypes = hmsTable.getPartitionColumnTypes(MvccUtil.getSnapshotFromContext(hmsTable));
808+
} catch (NotSupportedException e) {
809+
LOG.warn("Ignore not supported hms table, message: {} ", e.getMessage());
810+
return;
811+
}
812+
HiveExternalMetaCache cache = Env.getCurrentEnv().getExtMetaCacheMgr().hive(catalog.getId());
813+
cache.addPartitionsCache(hmsTable.getOrBuildNameMapping(), partitionNames, partitionColumnTypes);
729814
hmsTable.setUpdateTime(updateTime);
730815
}
731816

@@ -756,7 +841,8 @@ public void dropExternalPartitions(String catalogName, String dbName, String tab
756841
}
757842

758843
HMSExternalTable hmsTable = (HMSExternalTable) table;
759-
Env.getCurrentEnv().getExtMetaCacheMgr().dropPartitionsCache(catalog.getId(), hmsTable, partitionNames);
844+
Env.getCurrentEnv().getExtMetaCacheMgr().hive(catalog.getId())
845+
.dropPartitionsCache(hmsTable, partitionNames, true);
760846
hmsTable.setUpdateTime(updateTime);
761847
}
762848

0 commit comments

Comments
 (0)