Snowsight-Vorlagen

Übersicht

Snowsight-Vorlagen bieten Benutzern interaktive Anleitungen für die Erkundung von Snowflake-Features und -Anwendungsfällen. Vorlagen sind als ausführbare Arbeitsblätter, Notebooks oder Streamlit-App verfügbar und sind mit Beispieldaten und den erforderlichen Berechtigungen vorkonfiguriert.

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 Credit-Nutzung mit Budgets überwachen for details on monitoring and optimizing warehouse compute costs.

Bemerkung

SNOWFLAKE_LEARNING_WH is owned by the ACCOUNTADMIN role. Standard usage costs apply.

Vorlagen bieten die folgenden Vorteile:

  • Neue Features und Anwendungsfälle können auf sichere Weise getestet werden, ohne die Produktionsdaten zu beeinträchtigen.

  • Es sind Beispieldaten enthalten, die Ihnen dabei helfen, schnell loszulegen.

  • Sie erhalten kurze, in sich geschlossene Erlebnisse, die normalerweise in weniger als fünf Minuten abgeschlossen werden können.

Snowflake stellt die automatisch bereit die SNOWFLAKE_LEARNING-Umgebung für neue und bestehende Konten als Teil von BCR-1992 bereit. Zum Aktivieren ist keine Aktion erforderlich.

Wenn Ihre Organisation es vorzieht, diese Umgebung nicht einzubeziehen, kann ein Benutzender mit der Rolle ACCOUNTADMIN sie deaktivieren, indem die Person Folgendes ausführt:

SELECT SYSTEM$DISABLE_SNOWFLAKE_LEARNING_ENVIRONMENT();
Copy

Wenn BCR-1992 für Ihr Konto nicht aktiviert ist, können Sie die SNOWFLAKE_LEARNING-Umgebung manuell mit folgendem SQL-Code bereitstellen:

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;
Copy

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;
Copy

Eine Einstiegshilfe für Vorlagen finden Sie unter http://app.snowflake.com/templates.