Skip to content

Commit 522cf31

Browse files
committed
fix: add column types for non-SEED test models
1 parent 5af8ec2 commit 522cf31

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
@@ -4686,6 +4686,14 @@ def _create_grants_test_model(grants=None, kind="FULL", grants_target_layer=None
46864686
if grants_target_layer is not None:
46874687
kwargs["grants_target_layer"] = grants_target_layer
46884688

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

0 commit comments

Comments
 (0)