CatalogPlugin¶
CatalogPlugin
is an abstraction of catalogs (of assets like functions, tables and views).
CatalogHelper
CatalogHelper is a Scala implicit class of CatalogPlugin
with extensions methods.
Demo
Learn more in Demo: Developing CatalogPlugin.
Contract¶
Default Namespace¶
String[] defaultNamespace()
Default namespace
Default: (empty)
Used when:
CatalogManager
is requested for the current namespace
Initialize CatalogPlugin¶
void initialize(
String name,
CaseInsensitiveStringMap options)
Initializes this CatalogPlugin
with the following:
- Name that was used in
spark.sql.catalog.[name]
configuration property spark.sql.catalog.[name].
-prefixed case-insensitive options
Used when:
Catalogs
utility is used to load a catalog by name
Name¶
String name()
SHOW CURRENT NAMESPACE
Use SHOW CURRENT NAMESPACE
command to display the name.