Snowsight templates¶
Visão geral¶
Os modelos do Snowsight fornecem aos usuários guias interativos para explorar os recursos e casos de uso do Snowflake. Os modelos estão disponíveis como planilhas executáveis, notebooks ou apps Streamlit e vêm pré-configurados com dados de amostra e as permissões necessárias.
Templates run in a dedicated SNOWFLAKE_LEARNING environment, which includes a pre-provisioned role (SNOWFLAKE_LEARNING_ROLE), an X-Small
compute warehouse (SNOWFLAKE_LEARNING_WH), and a database (SNOWFLAKE_LEARNING_DB). Costs associated with
the SNOWFLAKE_LEARNING_WH and SNOWFLAKE_LEARNING_DB are managed in the same way as any other object owned
by ACCOUNTADMIN. See Monitorar o uso de crédito com orçamentos for details on monitoring and optimizing warehouse compute costs.
Nota
SNOWFLAKE_LEARNING_WH is owned by the ACCOUNTADMIN role. Standard usage costs apply.
Os modelos oferecem as seguintes vantagens:
Fazer uma avaliação segura dos novos recursos e casos de uso sem afetar os dados de produção.
Os dados de amostra são incluídos para colocar tudo em funcionamento rapidamente.
Experiências concisas e independentes que normalmente são concluídas em menos de cinco minutos.
Snowflake automatically provisions the SNOWFLAKE_LEARNING environment for both new and existing accounts as part of
BCR-1992. No action is required to enable it.
If your organization prefers not to include this environment, an ACCOUNTADMIN can opt out by running:
SELECT SYSTEM$DISABLE_SNOWFLAKE_LEARNING_ENVIRONMENT();
If BCR-1992 is not enabled for your account, you can provision the
SNOWFLAKE_LEARNING environment manually using the following SQL:
CREATE DATABASE SNOWFLAKE_LEARNING_DB;
CREATE ROLE SNOWFLAKE_LEARNING_ROLE;
GRANT ROLE SNOWFLAKE_LEARNING_ROLE TO ROLE PUBLIC;
CREATE WAREHOUSE SNOWFLAKE_LEARNING_WH
COMMENT = 'Warehouse used for executing template and demo content'
WAREHOUSE_SIZE = 'X-Small'
AUTO_RESUME = true
AUTO_SUSPEND = 300;
GRANT USAGE, MONITOR, OPERATE ON WAREHOUSE SNOWFLAKE_LEARNING_WH TO ROLE SNOWFLAKE_LEARNING_ROLE;
GRANT USAGE ON DATABASE SNOWFLAKE_LEARNING_DB TO ROLE SNOWFLAKE_LEARNING_ROLE;
GRANT CREATE SCHEMA ON DATABASE SNOWFLAKE_LEARNING_DB TO ROLE SNOWFLAKE_LEARNING_ROLE;
If the SNOWFLAKE_LEARNING environment has already been provisioned in your account, but you want to disable it and drop the objects,
a user with the ACCOUNTADMIN role can run the following script to disable and drop the learning environment:
USE ROLE ACCOUNTADMIN;
SELECT SYSTEM$DISABLE_SNOWFLAKE_LEARNING_ENVIRONMENT();
-- DATABASE
SHOW DATABASES LIKE 'SNOWFLAKE_LEARNING_DB';
DROP DATABASE SNOWFLAKE_LEARNING_DB;
-- WAREHOUSE
SHOW WAREHOUSES LIKE 'SNOWFLAKE_LEARNING_WH';
DROP WAREHOUSE SNOWFLAKE_LEARNING_WH;
-- ROLE
SHOW ROLES LIKE 'SNOWFLAKE_LEARNING_ROLE';
DROP ROLE SNOWFLAKE_LEARNING_ROLE;
Comece a usar os modelos em http://app.snowflake.com/templates.