Modèles Snowsight¶
Vue d’ensemble¶
Les Modèles Snowsight fournissent aux utilisateurs des démonstrations interactives pour explorer les fonctionnalités et les cas d’utilisation de Snowflake. Les modèles sont disponibles sous forme de feuilles de calcul exécutables, de notebooks ou d’applications Streamlit, et sont préconfigurés avec des données d’échantillon et les autorisations requises.
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 Surveillance de l’utilisation du crédit à l’aide de Budgets for details on monitoring and optimizing warehouse compute costs.
Note
SNOWFLAKE_LEARNING_WH is owned by the ACCOUNTADMIN role. Standard usage costs apply.
Les modèles offrent les avantages suivants :
Essayez de nouvelles fonctionnalités et de nouveaux cas d’utilisation en toute sécurité, sans impacter les données de production.
Des données d’échantillon sont incluses pour permettre une utilisation rapide.
Expériences concises et autonomes qui sont généralement réalisées en moins de cinq minutes.
Snowflake provisionne automatiquement l’environnement SNOWFLAKE_LEARNING pour les comptes nouveaux et existants dans le cadre du BCR-1992. Aucune action n’est requise pour l’activer.
Si votre organisation préfère ne pas inclure cet environnement, un ACCOUNTADMIN peut le désactiver en exécutant :
SELECT SYSTEM$DISABLE_SNOWFLAKE_LEARNING_ENVIRONMENT();
Si BCR-1992 n’est pas activé pour votre compte, vous pouvez provisionner l’environnement SNOWFLAKE_LEARNING manuellement en utilisant le SQL suivant :
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;
Commencez à utiliser des modèles à l’adresse http://app.snowflake.com/templates.