DESCRIBE STREAMLIT

Describes the columns in a Streamlit object.

DESCRIBE can be abbreviated to DESC.

See also:

CREATE STREAMLIT, SHOW STREAMLITS, ALTER STREAMLIT, DROP STREAMLIT

Syntax

DESC[RIBE] STREAMLIT <name>

Required parameters

name

Specifies the identifier for the Streamlit 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.

Access control requirements

If your role does not own the objects in the following table, then your role must have the listed privileges on those objects:

PrivilegeObject
USAGEStreamlit object that you describe

Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent 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.

    For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.

    When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column type, specify SELECT "type".

    You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.

Output

The command output provides information about a Streamlit object in the following columns:

ColumnDescription
titleTitle of the Streamlit object that displays in Snowsight.
main_fileName of the Streamlit app’s entrypoint file.
query_warehouseWarehouse where queries issued by the Streamlit app are run.
runtime_nameRuntime environment for the Streamlit app, like SYSTEM$WAREHOUSE_RUNTIME or SYSTEM$ST_CONTAINER_RUNTIME_PY3_11.
compute_poolCompute pool where the Streamlit app runs. This is only used for container runtimes and ignored for warehouse runtimes.
url_idUnique ID associated with the Streamlit object.
default_packagesDefault Python packages for the Streamlit application.
user_packagesPython packages that the user specified in the environment.yml file. This is empty if there is no environment.yml file and doesn’t apply to container runtimes.
import_urlsList of URLs that the Streamlit app imports. This doesn’t apply to container runtimes.
external_access_integrationsList of external access integrations associated with the Streamlit object.
external_access_secretsList of external access secrets associated with the Streamlit object.
nameUnique name of the Streamlit object within its schema.
commentComment associated with the Streamlit object.
default_versionDefault version of the Streamlit object to use when there is no live version. If your app doesn’t already have a live version and the owner opens the app on Snowsight, this is the version that is copied to the live version.
default_version_nameName of the default version directory within the Streamlit object’s file system.
default_version_aliasUnsupported and always null.
default_version_location_uriLocation URI of the default version’s app files. This is read only.
default_version_source_location_uriLocation URI of the default version’s source files in its Git object. If the Streamlit object is not connected to a Git object, this is null.
default_version_git_commit_hashGit commit hash of the default version of the Streamlit object. If the Streamlit object is not connected to a Git object, this is null.
last_version_nameName of the last version directory within the Streamlit object’s file system.
last_version_aliasUnsupported and always null.
last_version_location_uriLocation URI of the last version’s app files. This is read only.
last_version_source_location_uriLocation URI of the last version’s source files in its Git object. If the Streamlit object is not connected to a Git object, this is null.
last_version_git_commit_hashGit commit hash of the last version of the Streamlit object. If the Streamlit object is not connected to a Git object, this is null.
live_version_location_uriLocation URI of the live version of the Streamlit object. This location is readable and writable. Edits in Snowsight are saved in this location. You can remotely update a live app by copying files to this location.

For Streamlit objects created using the ROOT_LOCATION parameter, the command output provides information in the following columns:

ColumnDescription
nameUnique name of the Streamlit object within its schema.
titleTitle of the Streamlit object that displays in Snowsight.
root_locationLocation of the Streamlit object’s files.
main_filePath to the Streamlit app’s entrypoint file, relative to the root location.
query_warehouseWarehouse where queries issued by the Streamlit app are run.
url_idUnique ID associated with the Streamlit object.
default_packagesDefault Python packages for the Streamlit app.
user_packagesPython packages that the user specified in the environment.yml file. This is empty if there is no environment.yml file.
import_urlsList of URLs that the Streamlit app imports.
external_access_integrationsList of external access integrations associated with the Streamlit object.
external_access_secretsList of external access secrets associated with the Streamlit object.