SHOW VERSIONS IN DBT PROJECT

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Displays the live version of a dbt project object. Note An object that hasn’t been migrated to the mutable live version still lists numbered versions. For details about the live-version model and how to migrate an existing object, see dbt Projects on Snowflake: dbt project objects migrate to a single mutable live version (Generally enabled) and SYSTEM$MIGRATE_DBT_PROJECT.

Syntax

supportedpartialnot supportednot scored

SHOW VERSIONS IN DBT PROJECT <name>
  [ LIMIT <number> ]

Parameters

NameRequiredDescription
nameString that specifies the identifier (that is, the name) for the dbt project object within Snowflake; must be unique for the schema in which the dbt project is created. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example, "My object"). Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.
LIMIT rowsOptionally limits the maximum number of rows returned. The actual number of rows returned might be less than the specified limit. For example, the number of existing objects is less than the specified limit. Default: No value (no limit is applied to the output).

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object USAGE | The dbt project object MONITOR | The dbt project object OWNERSHIP | The dbt project object

Output

The command output provides table properties and metadata about a dbt project object in the following columns: Column | Description created_on | Date and time when the dbt project object was created. name | Deprecated column. Returns NULL because the live version doesn’t have a numbered version name. alias | Deprecated column. Returns NULL because the live version doesn’t have a version alias. location_uri | Full URL of the dbt project version. is_default | Deprecated column. Returns FALSE for the live version. is_live | Returns TRUE, indicating that this row represents the live version. is_first | Deprecated column. Returns FALSE because dbt project objects don’t have ordered numbered versions. is_last | Deprecated column. Returns FALSE because dbt project objects don’t have ordered numbered versions. comment | Comment set on the dbt Project. source_location_uri | The source location URI where this dbt project version is created from. git_commit_hash | The Git commit hash, if the dbt project version was created from a Git source.

See also