Upload Semantic View
When to Use
User wants to deploy a Snowflake native Semantic View YAML file to Snowflake.
Not for OSI models. If the user imported an OSI YAML via
import_osi, the model is already deployed to Snowflake byosi_write_model— no upload step is needed. Do not load this skill for OSI imports.
Workflow
Step 1: Gather Information
Collect:
- file_path: YAML file in workspace (e.g.,
cortex_project/my_view.sv.yaml) - Target
DATABASE.SCHEMA.VIEW_NAME(fqnon deploy)
Check conversation context if not provided.
Step 2: Deploy
cortex agent-studio sv-deploy --file-path {yaml_file_path} --fqn {DATABASE}.{SCHEMA}.{VIEW_NAME}
Creates view if new, updates if exists.
Step 3: Report Result
Semantic View: {DATABASE}.{SCHEMA}.{VIEW_NAME}
Status: Deployed successfully
If deployment fails, show the complete error message.
Stopping Points
- ✋ Before deploying (confirm file and target)
Success Criteria
- ✅ File path and
DATABASE.SCHEMA.VIEW_NAMEconfirmed - ✅ Deployment successful
- ✅ Result reported to user