This command provides the runtime information of an existing Relation in a Database'sschema. You can also use this command to inspect a specific relation type. See LIST RELATIONS for a list of available relations to describe.
You can use this command to inspect an existing relation. The output of this command also provides any errors that may have prevented the relation and its underlying entity to be created in the namespace.
Relations are visible only if the current role has USAGE privileges on the database and schema and SELECT or INSERT privilege on the relation.
This is the name of the relation to describe. If the name is case-sensitive, you must wrap it in double quotes; otherwise, the lowercase name is used.
The relation name optionally can be fully qualified in the format <database_name>.<schema_name>.<relation_name> or <schema_name>.<relation_name>. If the database name or schema name are not provided, then the system uses the current session's database/schema (see USE).
Examples
Describe a relation using a current database/schema
The following describes the pageviewsStream relation in the current demodb database and public schema:
Describe a relation using a fully qualified name
The following describes the pageviewsStream relation in the demodb database and public schema, using its fully-qualified relation name:
Describe a changelog
The following describes the users_logChangelog in the demodb database and public schema, using its fully-qualified relation name:
Describe a stream in a specific database/schema
The following describes the total_viewsStream in the demodb database and analytics schema, using its fully-qualified relation name:
Describe a Table in errored state
The following describes the dbx_pvTable in the current database and schema that failed:
Describe a relation with a case-sensitive name
The following describes the PageviewsStream relation in the current demodb database and public schema: