[Enhancement] Remove iceberg redundant code (#63860)
Signed-off-by: Smith Cruise <chendingchao1@126.com>
This commit is contained in:
parent
7ed48a790a
commit
bf38c24adf
|
|
@ -133,10 +133,6 @@ public class IcebergCatalogProperties {
|
|||
return catalogType;
|
||||
}
|
||||
|
||||
public boolean enableIcebergMetadataCache() {
|
||||
return enableIcebergMetadataCache;
|
||||
}
|
||||
|
||||
public long getIcebergMetaCacheTtlSec() {
|
||||
return icebergMetaCacheTtlSec;
|
||||
}
|
||||
|
|
@ -145,7 +141,6 @@ public class IcebergCatalogProperties {
|
|||
return icebergTableCacheRefreshIntervalSec;
|
||||
}
|
||||
|
||||
|
||||
public int getIcebergJobPlanningThreadNum() {
|
||||
return icebergJobPlanningThreadNum;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public class IcebergConnector implements Connector {
|
|||
if (icebergNativeCatalog == null) {
|
||||
IcebergCatalog nativeCatalog = buildIcebergNativeCatalog();
|
||||
|
||||
if (icebergCatalogProperties.enableIcebergMetadataCache() && !isResourceMappingCatalog(catalogName)) {
|
||||
if (icebergCatalogProperties.isEnableIcebergMetadataCache() && !isResourceMappingCatalog(catalogName)) {
|
||||
nativeCatalog = new CachingIcebergCatalog(catalogName, nativeCatalog,
|
||||
icebergCatalogProperties, buildBackgroundJobPlanningExecutor());
|
||||
GlobalStateMgr.getCurrentState().getConnectorTableMetadataProcessor()
|
||||
|
|
@ -161,7 +161,7 @@ public class IcebergConnector implements Connector {
|
|||
|
||||
@Override
|
||||
public boolean supportMemoryTrack() {
|
||||
return icebergCatalogProperties.enableIcebergMetadataCache() && icebergNativeCatalog != null;
|
||||
return icebergCatalogProperties.isEnableIcebergMetadataCache() && icebergNativeCatalog != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue