Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Jul 29, 2024
1 parent 43d5cac commit fb989b5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ public abstract class ActionBase implements Action {
protected StreamTableEnvironment batchTEnv;

public ActionBase(String warehouse, Map<String, String> catalogConfig) {
// disable cache to avoid concurrent modification exception
catalogConfig.putIfAbsent(CACHE_ENABLED.key(), "false");
catalogOptions = Options.fromMap(catalogConfig);
catalogOptions.set(CatalogOptions.WAREHOUSE, warehouse);

// disable cache to avoid concurrent modification exception
if (!catalogOptions.contains(CACHE_ENABLED)) {
catalogOptions.set(CACHE_ENABLED, false);
}

catalog = initPaimonCatalog();
flinkCatalog = initFlinkCatalog();

Expand Down

0 comments on commit fb989b5

Please sign in to comment.