Skip to content

Commit 9cd34df

Browse files
committed
fix: add column types for non-SEED test models
1 parent 46be991 commit 9cd34df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/core/test_snapshot_evaluator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4688,6 +4688,14 @@ def _create_grants_test_model(grants=None, kind="FULL", grants_target_layer=None
46884688
if grants_target_layer is not None:
46894689
kwargs["grants_target_layer"] = grants_target_layer
46904690

4691+
# Add column annotations for non-SEED models to ensure table creation
4692+
if kind != "SEED":
4693+
kwargs["columns"] = {
4694+
"id": "INT",
4695+
"ds": "DATE",
4696+
"updated_at": "TIMESTAMP",
4697+
}
4698+
46914699
# Add required fields for specific model kinds
46924700
if kind == "INCREMENTAL_BY_TIME_RANGE":
46934701
kwargs["kind"] = {"name": "INCREMENTAL_BY_TIME_RANGE", "time_column": "ds"}

0 commit comments

Comments
 (0)