Skip to content

Commit 9e0bfa9

Browse files
committed
Minor fixes
1 parent 6faf43f commit 9e0bfa9

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

sqlmesh/core/config/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PlanConfig(BaseConfig):
2020
auto_apply: Whether to automatically apply the new plan after creation.
2121
use_finalized_state: Whether to compare against the latest finalized environment state, or to use
2222
whatever state the target environment is currently in.
23-
always_recreate_environment: Whether to always recreate the target environment from the prod environment.
23+
always_recreate_environment: Whether to always recreate the target environment from the `create_from` environment.
2424
"""
2525

2626
forward_only: bool = False

sqlmesh/core/context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,6 @@ def plan_builder(
15181518

15191519
return self.PLAN_BUILDER_TYPE(
15201520
context_diff=context_diff,
1521-
environment=environment or c.PROD,
15221521
start=start,
15231522
end=end,
15241523
execution_time=execution_time,

sqlmesh/core/context_diff.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import sys
1616
import typing as t
17-
1817
from difflib import ndiff, unified_diff
1918
from functools import cached_property
2019
from sqlmesh.core import constants as c

sqlmesh/core/plan/builder.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from collections import defaultdict
77
from functools import cached_property
88

9-
from sqlmesh.core import constants as c
109
from sqlmesh.core.console import PlanBuilderConsole, get_console
1110
from sqlmesh.core.config import (
1211
AutoCategorizationMode,
@@ -115,7 +114,6 @@ def __init__(
115114
interval_end_per_model: t.Optional[t.Dict[str, int]] = None,
116115
console: t.Optional[PlanBuilderConsole] = None,
117116
user_provided_flags: t.Optional[t.Dict[str, UserProvidedFlags]] = None,
118-
environment: str = c.PROD,
119117
):
120118
self._context_diff = context_diff
121119
self._no_gaps = no_gaps

0 commit comments

Comments
 (0)