Skip to content

Commit

Permalink
disable for generic catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Nov 6, 2024
1 parent a68d37c commit b2648cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.paimon.annotation.VisibleForTesting;
import org.apache.paimon.catalog.CatalogContext;
import org.apache.paimon.hive.HiveCatalogOptions;
import org.apache.paimon.options.CatalogOptions;
import org.apache.paimon.options.Options;

Expand Down Expand Up @@ -89,6 +90,7 @@ public static FlinkGenericCatalog createCatalog(
ClassLoader cl, Map<String, String> optionMap, String name, Catalog flinkCatalog) {
Options options = Options.fromMap(optionMap);
options.set(CatalogOptions.METASTORE, "hive");
options.set(HiveCatalogOptions.FORMAT_TABLE_ENABLED, false);
FlinkCatalog paimon =
new FlinkCatalog(
org.apache.paimon.catalog.CatalogFactory.createCatalog(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private void fillCommonConfigurations(Map<String, String> options, SQLConf sqlCo
options.put(METASTORE.key(), metastore);
}
}
options.put(HiveCatalogOptions.FORMAT_TABLE_ENABLED.key(), "false");
String sessionCatalogDefaultDatabase = SQLConfUtils.defaultDatabase(sqlConf);
if (options.containsKey(DEFAULT_DATABASE.key())) {
String userDefineDefaultDatabase = options.get(DEFAULT_DATABASE.key());
Expand Down

0 comments on commit b2648cc

Please sign in to comment.