Skip to content

Commit f7e3b55

Browse files
committed
fix: add column types for non-SEED test models
1 parent 12fd5b0 commit f7e3b55

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
@@ -4913,6 +4913,14 @@ def _create_grants_test_model(grants=None, kind="FULL", grants_target_layer=None
49134913
if grants_target_layer is not None:
49144914
kwargs["grants_target_layer"] = grants_target_layer
49154915

4916+
# Add column annotations for non-SEED models to ensure table creation
4917+
if kind != "SEED":
4918+
kwargs["columns"] = {
4919+
"id": "INT",
4920+
"ds": "DATE",
4921+
"updated_at": "TIMESTAMP",
4922+
}
4923+
49164924
# Add required fields for specific model kinds
49174925
if kind == "INCREMENTAL_BY_TIME_RANGE":
49184926
kwargs["kind"] = {"name": "INCREMENTAL_BY_TIME_RANGE", "time_column": "ds"}

0 commit comments

Comments
 (0)