Skip to content

Commit ff7ef77

Browse files
committed
fix: add column types for non-SEED test models
1 parent b8dfb0b commit ff7ef77

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
@@ -4868,6 +4868,14 @@ def _create_grants_test_model(grants=None, kind="FULL", grants_target_layer=None
48684868
if grants_target_layer is not None:
48694869
kwargs["grants_target_layer"] = grants_target_layer
48704870

4871+
# Add column annotations for non-SEED models to ensure table creation
4872+
if kind != "SEED":
4873+
kwargs["columns"] = {
4874+
"id": "INT",
4875+
"ds": "DATE",
4876+
"updated_at": "TIMESTAMP",
4877+
}
4878+
48714879
# Add required fields for specific model kinds
48724880
if kind == "INCREMENTAL_BY_TIME_RANGE":
48734881
kwargs["kind"] = {"name": "INCREMENTAL_BY_TIME_RANGE", "time_column": "ds"}

0 commit comments

Comments
 (0)