Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/docs/spark-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Both catalogs are configured using properties nested under the catalog name. Com
| spark.sql.catalog._catalog-name_.catalog-impl | | The custom Iceberg catalog implementation. If `type` is null, `catalog-impl` must not be null. |
| spark.sql.catalog._catalog-name_.io-impl | | The custom FileIO implementation. |
| spark.sql.catalog._catalog-name_.metrics-reporter-impl | | The custom MetricsReporter implementation. |
| spark.sql.catalog._catalog-name_.default-namespace | default | The default current namespace for the catalog |
| spark.sql.catalog._catalog-name_.default-namespace | default | The default current namespace for the `SparkCatalog`. |
| spark.sql.catalog._catalog-name_.defaultDatabase | default | The default current namespace for the `SparkSessionCatalog`. |
| spark.sql.catalog._catalog-name_.uri | thrift://host:port | Hive metastore URL for hive typed catalog, REST URL for REST typed catalog |
| spark.sql.catalog._catalog-name_.warehouse | hdfs://nn:8020/warehouse/path | Base path for the warehouse directory |
| spark.sql.catalog._catalog-name_.cache-enabled | `true` or `false` | Whether to enable catalog cache, default value is `true` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
public class SparkSessionCatalog<
T extends TableCatalog & FunctionCatalog & SupportsNamespaces & ViewCatalog>
extends BaseCatalog implements CatalogExtension {
private static final String[] DEFAULT_NAMESPACE = new String[] {"default"};

private String catalogName = null;
private TableCatalog icebergCatalog = null;
Expand Down Expand Up @@ -92,7 +91,7 @@ protected TableCatalog buildSparkCatalog(String name, CaseInsensitiveStringMap o

@Override
public String[] defaultNamespace() {
return DEFAULT_NAMESPACE;
return getSessionCatalog().defaultNamespace();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
public class SparkSessionCatalog<
T extends TableCatalog & FunctionCatalog & SupportsNamespaces & ViewCatalog>
extends BaseCatalog implements CatalogExtension {
private static final String[] DEFAULT_NAMESPACE = new String[] {"default"};

private String catalogName = null;
private TableCatalog icebergCatalog = null;
Expand Down Expand Up @@ -93,7 +92,7 @@ protected TableCatalog buildSparkCatalog(String name, CaseInsensitiveStringMap o

@Override
public String[] defaultNamespace() {
return DEFAULT_NAMESPACE;
return getSessionCatalog().defaultNamespace();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
public class SparkSessionCatalog<
T extends TableCatalog & FunctionCatalog & SupportsNamespaces & ViewCatalog>
extends BaseCatalog implements CatalogExtension {
private static final String[] DEFAULT_NAMESPACE = new String[] {"default"};

private String catalogName = null;
private TableCatalog icebergCatalog = null;
Expand Down Expand Up @@ -94,7 +93,7 @@ protected TableCatalog buildSparkCatalog(String name, CaseInsensitiveStringMap o

@Override
public String[] defaultNamespace() {
return DEFAULT_NAMESPACE;
return getSessionCatalog().defaultNamespace();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
public class SparkSessionCatalog<
T extends TableCatalog & FunctionCatalog & SupportsNamespaces & ViewCatalog>
extends BaseCatalog implements CatalogExtension {
private static final String[] DEFAULT_NAMESPACE = new String[] {"default"};

private String catalogName = null;
private TableCatalog icebergCatalog = null;
Expand Down Expand Up @@ -98,7 +97,7 @@ protected TableCatalog buildSparkCatalog(String name, CaseInsensitiveStringMap o

@Override
public String[] defaultNamespace() {
return DEFAULT_NAMESPACE;
return getSessionCatalog().defaultNamespace();
}

@Override
Expand Down
Loading