Skip to main content

dbt Information Schema tables

For an overview of the dbt Information Schema, how to generate it, and how to query it, refer to dbt Information Schema.

Tables

The dbt Information Schema v1 generates tables across these namespaces:

  • dbt: Contains metadata about your project's structure, resources, and configuration. Answers the question: What is your project?
  • dbt_rt: Contains runtime execution data. Answers the question: What happened when you ran your project?

dbt namespace

The dbt namespace tables contain metadata about your project's structure, resources, and configuration.

TableDescription
dbt.dag_nodesAll DAG participants with unique_id and resource_type
dbt.projectProject-level metadata
dbt.packagesInstalled packages, one row per package
dbt.project_varsProject variables, one row per (project scope, variable name)
dbt.project_env_varsEnvironment variables used in the project
dbt.modelsAll models
dbt.seedsAll seeds
dbt.sourcesAll sources
dbt.snapshotsAll snapshots
dbt.functionsAll user-defined functions
dbt.analysesAll analyses
dbt.hooksAll on-run-start and on-run-end hook operations
dbt.checksAll checks
dbt.data_testsAll data tests (generic and singular)
dbt.unit_testsAll unit tests
dbt.macrosAll macros
dbt.groupsAll groups
dbt.exposuresAll exposures
dbt.metricsAll metrics
dbt.docs_blocksAll docs blocks
dbt.saved_queriesAll saved queries
dbt.semantic_modelsAll semantic models
dbt.semantic_entitiesSemantic model entities
dbt.semantic_measuresSemantic model measures
dbt.semantic_dimensionsSemantic model dimensions
dbt.semantic_relationshipsRelationships between semantic models
dbt.time_spinesTime spine definitions
dbt.classifiersResource classifiers
dbt.edgesDAG edges (parent → child)
dbt.node_columnsColumn names, types, and descriptions for all nodes
dbt.column_lineageColumn-level lineage (populated with --static-analysis strict)

dbt_rt namespace

The dbt_rt namespace tables contain runtime execution data.

TableDescription
dbt_rt.invocationsOne row per dbt invocation
dbt_rt.run_resultsResults for each node in each invocation
dbt_rt.run_results_latestView of the most recent run result per node
dbt_rt.relationsWarehouse catalog data for each materialized relation (populated with --write-catalog)
dbt_rt.freshnessFreshness check results for sources and models; resource_type indicates whether a row is a source or model
dbt_rt.diagnosticsDiagnostic data from invocations
dbt_rt.adapter_queriesAdapter queries issued during invocations

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0
Loading