Interface Dependency
- All Known Implementing Classes:
FunctionDependency,TableDependency
Represents a dependency of a SQL object such as a view or metric view.
A dependency is one of: TableDependency or FunctionDependency. The
sealed declaration enforces this structurally.
Note: today the only producer in Spark itself is metric-view dependency extraction, which
emits TableDependency only. FunctionDependency and the
function(String[]) factory are exposed as groundwork for future producers
(e.g. SQL UDF dependency tracking); consumers iterating a DependencyList received
from Spark today should expect to see only TableDependency instances.
- Since:
- 4.2.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic FunctionDependencyConstruct aFunctionDependencyfrom the structural multi-part name of the dependent function.static TableDependencyConstruct aTableDependencyfrom the structural multi-part name of the dependent table.
-
Method Details
-
table
Construct aTableDependencyfrom the structural multi-part name of the dependent table.namePartsshould contain at least one element; for catalog-managed tables the first element is typically the catalog name and subsequent elements are namespace components followed by the table name. -
function
Construct aFunctionDependencyfrom the structural multi-part name of the dependent function.namePartsshould contain at least one element; for catalog-managed functions the first element is typically the catalog name and subsequent elements are namespace components followed by the function name.
-