
This one walks you through building Snowflake semantic views with proper validation against your actual Snowflake instance. It handles the CLI setup, drafts CREATE SEMANTIC VIEW DDL following the star schema pattern, and crucially validates everything by executing it through the Snowflake CLI before giving you the final code. The workflow is thorough: it pulls existing table comments for synonyms, runs discovery queries to map relationships between facts and dimensions, creates temporary views for testing, then cleans up afterward. It's solid for anyone building Snowflake's semantic layer who wants to avoid the usual trial-and-error cycle of writing DDL that breaks in production.
$ npx -y skills add github/awesome-copilot --skill snowflake-semanticview --agent claude-codeInstalls into .claude/skills of the current project.
snow --help.snow connection add per https://docs.snowflake.com/en/developer-guide/snowflake-cli/connecting/configure-connections#add-a-connection.__tmp_validate) while keeping the same database and schema.snow sql to execute the statement with the configured connection.snow sql --help and use the connection option shown there.SELECT * FROM SEMANTIC_VIEW(
my_semview_name
DIMENSIONS customer.customer_market_segment
METRICS orders.order_average_value
)
ORDER BY customer_market_segment;
WITH SYNONYMS [ = ] ( 'synonym' [ , ... ] )
COMMENT = 'comment_about_dim_fact_or_metric'
# Replace placeholders with real values.
snow sql -q "<CREATE OR ALTER SEMANTIC VIEW ...>" --connection <connection_name>
If the CLI uses a different connection flag in your version, run:
snow sql --help
Sponsors