Skip to content

fix(snowflake): omit initialization warehouse from preview tables - #6046

Merged
mday-io merged 1 commit into
SQLMesh:mainfrom
mday-io:mday/managed-preview-properties
Nov 22, 2026
Merged

mday-io merged 1 commit into
SQLMesh:mainfrom
mday-io:mday/managed-preview-properties

Conversation

@mday-io

@mday-io mday-io commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Description

A Snowflake MANAGED model with initialization_warehouse passes that dynamic-table-only property into ordinary preview-table DDL. This happens during annotated preview creation, CTAS preview creation, and preview replacement.

Add INITIALIZATION_WAREHOUSE to Snowflake's existing non-dynamic-table property filter. Dynamic-table creation retains it; shared retention properties and the caller's property dictionary remain unchanged. No shared evaluator code, other adapters, or database lookups change.

Snowflake documents the property for CREATE DYNAMIC TABLE, not CREATE TABLE.

Test Plan

  • Three preview cases fail before the fix and pass after it, using the actual EngineManagedStrategy and a loaded managed model.
  • Exact-SQL assertions preserve production dynamic-table creation and shared retention properties; input properties remain unchanged in every case.
  • Snowflake adapter suite: 50 passed, one skipped.
  • make style passes.
  • make fast-test: 2,625 passed, four skipped; all 167 isolation tests pass.
  • CI green. No live Snowflake execution was performed locally.

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

@mday-io
mday-io marked this pull request as ready for review September 10, 2026 18:17
@mday-io
mday-io merged commit 27cb07b into SQLMesh:main Nov 22, 2026
34 checks passed
@mday-io mday-io added the Bug Something isn't working label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants