Skip to content

Commit 675d316

Browse files
committed
fix: add column types for non-SEED test models
1 parent 9a900af commit 675d316

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/core/test_snapshot_evaluator.py

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

4685+
# Add column annotations for non-SEED models to ensure table creation
4686+
if kind != "SEED":
4687+
kwargs["columns"] = {
4688+
"id": "INT",
4689+
"ds": "DATE",
4690+
"updated_at": "TIMESTAMP",
4691+
}
4692+
46854693
# Add required fields for specific model kinds
46864694
if kind == "INCREMENTAL_BY_TIME_RANGE":
46874695
kwargs["kind"] = {"name": "INCREMENTAL_BY_TIME_RANGE", "time_column": "ds"}

0 commit comments

Comments
 (0)