Skip to content

Commit 469db04

Browse files
committed
fix: add column types for non-SEED test models
1 parent ab83863 commit 469db04

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
@@ -4905,6 +4905,14 @@ def _create_grants_test_model(grants=None, kind="FULL", grants_target_layer=None
49054905
if grants_target_layer is not None:
49064906
kwargs["grants_target_layer"] = grants_target_layer
49074907

4908+
# Add column annotations for non-SEED models to ensure table creation
4909+
if kind != "SEED":
4910+
kwargs["columns"] = {
4911+
"id": "INT",
4912+
"ds": "DATE",
4913+
"updated_at": "TIMESTAMP",
4914+
}
4915+
49084916
# Add required fields for specific model kinds
49094917
if kind == "INCREMENTAL_BY_TIME_RANGE":
49104918
kwargs["kind"] = {"name": "INCREMENTAL_BY_TIME_RANGE", "time_column": "ds"}

0 commit comments

Comments
 (0)