File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
sql/catalyst/src/main/java/org/apache/spark/sql/catalog/v2 Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 2323 * <pre>
2424 * import NamespaceChange._
2525 * val catalog = Catalogs.load(name)
26- * catalog.namespaces. alterNamespace(ident,
26+ * catalog.alterNamespace(ident,
2727 * setProperty("prop", "value"),
2828 * removeProperty("other_prop")
2929 * )
Original file line number Diff line number Diff line change 3737 */
3838public interface SupportsNamespaces extends CatalogPlugin {
3939
40+ /**
41+ * Return a default namespace for the catalog.
42+ * <p>
43+ * When this catalog is set as the current catalog, the namespace returned by this method will be
44+ * set as the current namespace.
45+ * <p>
46+ * The namespace returned by this method is not required to exist.
47+ *
48+ * @return a multi-part namespace
49+ */
50+ default String [] defaultNamespace () {
51+ return new String [0 ];
52+ }
53+
4054 /**
4155 * List top-level namespaces from the catalog.
4256 * <p>
You can’t perform that action at this time.
0 commit comments