Skip to content

Commit fbe0543

Browse files
committed
Minor fixes
1 parent 99e921a commit fbe0543

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-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
@@ -1521,7 +1521,6 @@ def plan_builder(
15211521

15221522
return self.PLAN_BUILDER_TYPE(
15231523
context_diff=context_diff,
1524-
environment=environment or c.PROD,
15251524
start=start,
15261525
end=end,
15271526
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from collections import defaultdict
77
from functools import cached_property
88

9-
from sqlmesh.core import constants as c
9+
1010
from sqlmesh.core.console import PlanBuilderConsole, get_console
1111
from sqlmesh.core.config import (
1212
AutoCategorizationMode,
@@ -117,7 +117,6 @@ def __init__(
117117
interval_end_per_model: t.Optional[t.Dict[str, int]] = None,
118118
console: t.Optional[PlanBuilderConsole] = None,
119119
user_provided_flags: t.Optional[t.Dict[str, UserProvidedFlags]] = None,
120-
environment: str = c.PROD,
121120
):
122121
self._context_diff = context_diff
123122
self._no_gaps = no_gaps

0 commit comments

Comments
 (0)