Skip to main content
Export an existing the database logical view by name:
The root view’s definition is always expanded. Default BRIEF includes the root, its direct sources and its definition Job. VERBOSE additionally expands each direct View/MV/SV source once. FULL follows all expandable declarations to physical tables, retaining intermediate datasets and computation Jobs. Physical OLAP and external tables are leaves.
BRIEF stops at sales_v1. FULL adds orders and the sales_v1 computation. In this two-view example VERBOSE and FULL have the same graph. For a deeper chain, VERBOSE stops after expanding only one layer of the root’s sources. Each result row is a standard JSON DatasetEvent or JobEvent, without a private wrapper. The root Dataset has type VIEW. schema exposes order_id and total; lineage.fields maps them to sales_v1.id and sales_v1.amount. The indirect FILTER dependency on sales_v1.id is retained in lineage.inputs, separate from value mappings. Definition Jobs carry SQL and input/output datasets. No Run is emitted: declaring or inspecting a logical view is not an execution or materialization. The command requires SELECT on the root and each exposed source. It resolves the definition in its owning catalog/database, uses the stored schema/output aliases and creation SQL mode, restores the session catalog/database on success or failure, and never changes catalog metadata. This entry supports the database logical views created with CREATE VIEW, including ones over external tables. Connector-native Hive/Iceberg/Paimon view definitions are not expanded by this exporter; encountering an unavailable definition during expansion fails explicitly.
See Semantic View OpenLineage for facts, dimensions and metrics.