Describes the properties of a dbt project object.
DESCRIBE can be abbreviated to DESC.
CREATE DBT PROJECT, ALTER DBT PROJECT, EXECUTE DBT PROJECT, DROP DBT PROJECT, SHOW DBT PROJECTS
{ DESC | DESCRIBE } DBT PROJECT <name>
Copy
Parameters¶name
Specifies the identifier for the dbt project object to describe.
If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
For more information, see Identifier requirements.
The output of the command includes the following columns, which describe the properties and metadata of the object:
Column
Description
name
The identifier (name) of the dbt project object.
owner
The role that was used to create the dbt project object.
comment
The comment associated with the dbt project object.
default_args
The default dbt command line arguments, if any, specified in the dbt project object definition.
Access control requirements¶A role used to execute this operation must have the following privileges at a minimum:
Privilege
Object
MONITOR
dbt project
The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema.
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Usage notes¶To post-process the output of this command, you can use the pipe operator (->>
) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.
The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is type
, then specify "type"
for the identifier.
The following example describes the dbt project object named my_dbt_project
:
DESCRIBE DBT PROJECT my_dbt_project;
Copy
+----------------+--------------+------------+--------------+ | name | owner | comment | default_args | +----------------+--------------+------------+--------------+ | my_dbt_project | ACCOUNTADMIN | My comment | | +----------------+--------------+------------+--------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4