Snowflake · Schema

the semantic model object

Represents a semantic model object

Data LakesData SharingData WarehousingDatabaseSQL

Properties

Name Type Description
semantic_model_file string The path to a file stored in a Snowflake Stage holding the semantic model yaml. Must be a fully qualified stage url
semantic_view string The name of the Snowflake native semantic model object
inline_semantic_model string A string containing the entire semantic model yaml
View JSON Schema on GitHub

JSON Schema

snowflake-semanticmodelobject-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SemanticModelObject",
  "title": "the semantic model object",
  "type": "object",
  "description": "Represents a semantic model object",
  "properties": {
    "semantic_model_file": {
      "description": "The path to a file stored in a Snowflake Stage holding the semantic model yaml. Must be a fully qualified stage url",
      "type": "string",
      "example": "@db.schema.stage/path/to/file.yaml"
    },
    "semantic_view": {
      "description": "The name of the Snowflake native semantic model object",
      "type": "string",
      "example": "db.schema.semantic_view"
    },
    "inline_semantic_model": {
      "description": "A string containing the entire semantic model yaml",
      "type": "string",
      "example": "name: my_semantic_model\\ntables:\\n  - name: orders\\n..."
    }
  }
}