Catalog
The catalog interface for inspecting and managing databases, tables, functions, and the query cache.
Methods that return rows (listDatabases, listTables, ...) return a DataFrame; predicate methods return a Boolean; command-like methods return Unit. Mirrors PySpark's Catalog.
spark.catalog.listTables().show()
spark.catalog.tableExists("my_table") // => true
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Caches the given table in memory.
Caches the given table in memory.
Attributes
Clears all cached tables.
Clears all cached tables.
Attributes
Returns the current default catalog.
Returns the current default catalog.
Attributes
Returns the current default database.
Returns the current default database.
Attributes
Returns whether a database with the given name exists.
Returns whether a database with the given name exists.
Attributes
Drops a global temporary view. Returns whether the view was dropped.
Drops a global temporary view. Returns whether the view was dropped.
Attributes
Drops a session-local temporary view. Returns whether the view was dropped.
Drops a session-local temporary view. Returns whether the view was dropped.
Attributes
Returns whether a function with the given name exists.
Returns whether a function with the given name exists.
Attributes
Gets the function with the given name as a Function.
Gets the function with the given name as a Function.
Attributes
Gets the function of the given name in the given database as a Function.
Gets the function of the given name in the given database as a Function.
Attributes
Returns whether the given table is cached.
Returns whether the given table is cached.
Attributes
Recovers all partitions of the given table.
Recovers all partitions of the given table.
Attributes
Invalidates and refreshes cached data (and metadata) at the given path.
Invalidates and refreshes cached data (and metadata) at the given path.
Attributes
Invalidates and refreshes cached metadata for the given table.
Invalidates and refreshes cached metadata for the given table.
Attributes
Sets the current default catalog.
Sets the current default catalog.
Attributes
Sets the current default database.
Sets the current default database.
Attributes
Returns whether a table or view with the given name exists.
Returns whether a table or view with the given name exists.
Attributes
Returns whether a table or view with the given name in the given database exists.
Returns whether a table or view with the given name in the given database exists.
Attributes
Removes the given table from the cache.
Removes the given table from the cache.