Skip to main content
Deepline stores semantic-layer documents per org. Connector update tools accept yaml or its content alias and optional dryRun. Read tools return configuration state, content hash, update time, table names, and optional YAML. See Define warehouse metrics for the procedure.

Snowflake YAML

Snowflake updates check that the YAML is an object with a tables array, named tables and physical references. Queries compile the stored model using a stricter schema. Model-level name and description, table descriptions, and dimension, time-dimension and fact data types receive defaults when omitted. Define exactly one dimension with main_id: true across the model. A successful update does not establish that the model will compile, warehouse objects exist, or declared identities and relationships match the data.

Snowflake query behavior

snowflake_run_semantic_query reads the stored org model. It does not accept an unsaved YAML override. Supply query selections inside params, or use the retained top-level fields. When params is present, it owns those selections; do not split them between the two forms. Metrics queries select one logical table_name and named metrics, dimensions, facts and filters. The renderer groups aggregates by selected dimensions or facts, combines selected filters with AND, and plans joins for referenced logical tables. custom_dimensions and custom_filter_expressions are also rendered. Inspect the returned sql alongside rows and metadata. A type: "funnel" query selects event steps from YAML definitions or supplies inline params.steps. It uses event identity and timestamps, returns distinct-user conversions per step, and supports cohort_by, enforce_order and time_window_days. Ordering uses increasing per-user step timestamps; the time window is measured from the first step. Check rendered SQL against known event sequences before interpreting conversion rates. See the generated Snowflake query contract for accepted input fields. Schema acceptance alone does not establish warehouse access or business correctness.

Validation boundaries

Snowflake update validation checks YAML parsing, the tables array, table names, and physical references. Its dryRun does not compile every expression or query the warehouse. Query compilation can reject unsupported fields or invalid model identities that the update check accepted. Redshift updates require nonempty tables and base_table.table, then preflight a query through the semantic compiler. Redshift queries use the shared renderer with the Redshift dialect. This preflight still does not prove warehouse object existence or metric correctness. Compare the Snowflake query and Redshift query contracts before transferring a model.