Skip to content

Commit 618fec5

Browse files
committed
fix: add missing sort root dict
1 parent a274ac7 commit 618fec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ def create_python_model(
23612361

23622362
used_variables = {k: v for k, v in (variables or {}).items() if k in referenced_variables}
23632363
if used_variables:
2364-
python_env[c.SQLMESH_VARS] = Executable.value(used_variables)
2364+
python_env[c.SQLMESH_VARS] = Executable.value(used_variables, sort_root_dict=True)
23652365

23662366
return _create_model(
23672367
PythonModel,

0 commit comments

Comments
 (0)