sqlmesh 0.200.1.dev17__py3-none-any.whl → 0.200.1.dev19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- sqlmesh/core/console.py +9 -1
- sqlmesh/core/context.py +9 -0
- sqlmesh/core/context_diff.py +3 -1
- sqlmesh/core/environment.py +1 -0
- sqlmesh/core/loader.py +5 -1
- sqlmesh/dbt/loader.py +1 -0
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/METADATA +1 -1
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/RECORD +13 -13
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/WHEEL +0 -0
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.200.1.dev17.dist-info → sqlmesh-0.200.1.dev19.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.200.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 200, 1, '
|
|
20
|
+
__version__ = version = '0.200.1.dev19'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 200, 1, 'dev19')
|
sqlmesh/core/console.py
CHANGED
|
@@ -2711,8 +2711,16 @@ def _cells_match(x: t.Any, y: t.Any) -> bool:
|
|
|
2711
2711
|
def _normalize(val: t.Any) -> t.Any:
|
|
2712
2712
|
# Convert Pandas null to Python null for the purposes of comparison to prevent errors like the following on boolean fields:
|
|
2713
2713
|
# - TypeError: boolean value of NA is ambiguous
|
|
2714
|
-
|
|
2714
|
+
# note pd.isnull() returns either a bool or a ndarray[bool] depending on if the input
|
|
2715
|
+
# is scalar or an array
|
|
2716
|
+
isnull = pd.isnull(val)
|
|
2717
|
+
|
|
2718
|
+
if isinstance(isnull, bool): # scalar
|
|
2719
|
+
if isnull:
|
|
2720
|
+
val = None
|
|
2721
|
+
elif all(isnull): # array
|
|
2715
2722
|
val = None
|
|
2723
|
+
|
|
2716
2724
|
return list(val) if isinstance(val, (pd.Series, np.ndarray)) else val
|
|
2717
2725
|
|
|
2718
2726
|
return _normalize(x) == _normalize(y)
|
sqlmesh/core/context.py
CHANGED
|
@@ -622,6 +622,15 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
622
622
|
BUILTIN_RULES.union(project.user_rules), config.linter
|
|
623
623
|
)
|
|
624
624
|
|
|
625
|
+
# Load environment statements from state for projects not in current load
|
|
626
|
+
if any(self._projects):
|
|
627
|
+
prod = self.state_reader.get_environment(c.PROD)
|
|
628
|
+
if prod:
|
|
629
|
+
existing_statements = self.state_reader.get_environment_statements(c.PROD)
|
|
630
|
+
for stmt in existing_statements:
|
|
631
|
+
if stmt.project and stmt.project not in self._projects:
|
|
632
|
+
self._environment_statements.append(stmt)
|
|
633
|
+
|
|
625
634
|
uncached = set()
|
|
626
635
|
|
|
627
636
|
if any(self._projects):
|
sqlmesh/core/context_diff.py
CHANGED
|
@@ -311,7 +311,9 @@ class ContextDiff(PydanticModel):
|
|
|
311
311
|
|
|
312
312
|
@property
|
|
313
313
|
def has_environment_statements_changes(self) -> bool:
|
|
314
|
-
return self.environment_statements !=
|
|
314
|
+
return sorted(self.environment_statements, key=lambda s: s.project or "") != sorted(
|
|
315
|
+
self.previous_environment_statements, key=lambda s: s.project or ""
|
|
316
|
+
)
|
|
315
317
|
|
|
316
318
|
@property
|
|
317
319
|
def has_snapshot_changes(self) -> bool:
|
sqlmesh/core/environment.py
CHANGED
sqlmesh/core/loader.py
CHANGED
|
@@ -815,7 +815,11 @@ class SqlMeshLoader(Loader):
|
|
|
815
815
|
path=self.config_path,
|
|
816
816
|
)
|
|
817
817
|
|
|
818
|
-
return [
|
|
818
|
+
return [
|
|
819
|
+
EnvironmentStatements(
|
|
820
|
+
**statements, python_env=python_env, project=self.config.project or None
|
|
821
|
+
)
|
|
822
|
+
]
|
|
819
823
|
return []
|
|
820
824
|
|
|
821
825
|
def _load_linting_rules(self) -> RuleSet:
|
sqlmesh/dbt/loader.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=SOHAISeyY3qtH30N4aOOPbIi9trE7w0omXMhZqFV9dc,530
|
|
3
3
|
sqlmesh/magics.py,sha256=bEzYqXHcM0P3CjyUZ1O9arlmXAdLAhoglKbQ29fD9AE,41842
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,14 +11,14 @@ sqlmesh/cli/options.py,sha256=-4ZclMIeIg8tghLowtmQNmpEFlm0QtOVEh40NqRdFHA,2499
|
|
|
11
11
|
sqlmesh/cli/project_init.py,sha256=5JmDmUK0WJs39hM-p76uzHYdo1Hnx6fKuJg_pR3Hn5A,16419
|
|
12
12
|
sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
|
-
sqlmesh/core/console.py,sha256=
|
|
14
|
+
sqlmesh/core/console.py,sha256=g-xHXFAXhqrkqr_uADOgBtxSw2-96f5fo4YxF7irKq4,162837
|
|
15
15
|
sqlmesh/core/constants.py,sha256=gUABXWYgH_XOSbaZAJsR5o1dmA61JDCvBDyxqqXX3LM,2630
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
17
|
-
sqlmesh/core/context_diff.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=GhR82ApxzgdDP9QN95vdKsOV7rAu8e9SVXvxw1dZExY,124800
|
|
17
|
+
sqlmesh/core/context_diff.py,sha256=_Ur55fGLJ58Icsp44I4pVhdi7_JHiHq45mWIco9oFzk,21792
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=1ykYwb9WZn_nCaX08PcQ0BJh2Pihv9SPvoMNjpMeCfs,50158
|
|
19
|
-
sqlmesh/core/environment.py,sha256=
|
|
19
|
+
sqlmesh/core/environment.py,sha256=odus40R-YzdQdS_IiUq_tFouUXIhnpwmNwo8dE8Aw1k,13041
|
|
20
20
|
sqlmesh/core/lineage.py,sha256=zjB0Zfamo2Fja2r5SSZPMbrEKTXr1WjozZPVqvxdybI,3143
|
|
21
|
-
sqlmesh/core/loader.py,sha256=
|
|
21
|
+
sqlmesh/core/loader.py,sha256=0C6eQFIK4gClXdWu1NlozBJ6AkKrGOxujUf0TyXlo18,40923
|
|
22
22
|
sqlmesh/core/macros.py,sha256=3M3lChT2X5APuHyEprEbFfCXL31ab_2k3KkgPLKx6xE,60652
|
|
23
23
|
sqlmesh/core/node.py,sha256=3ChBz1PIMJhp-jzed_GLBrtmEF2v_BVDEM5WNe0ssPk,14658
|
|
24
24
|
sqlmesh/core/notification_target.py,sha256=PPGoDrgbRKxr27vJEu03XqNTQLYTw0ZF_b0yAapxGeI,16158
|
|
@@ -130,7 +130,7 @@ sqlmesh/dbt/builtin.py,sha256=p4E1rmSLM0B5PHcFWA9J7FwScR90pIPqiMN8G4M3sBM,15173
|
|
|
130
130
|
sqlmesh/dbt/column.py,sha256=Kvj_N3D_QegcoNQG7VqRiqy-FRfupud-6ilhlykBOgE,1873
|
|
131
131
|
sqlmesh/dbt/common.py,sha256=g4PAL-sEdlnfb_zT-WW3xh-oamyCUoK8dUiDEMVwDWI,7804
|
|
132
132
|
sqlmesh/dbt/context.py,sha256=dxClM-G1IeMbP0v5yxC_va8QNU-uKghW2dBlSZHJOk0,10331
|
|
133
|
-
sqlmesh/dbt/loader.py,sha256=
|
|
133
|
+
sqlmesh/dbt/loader.py,sha256=EqPcPT-RgLo52iMiDc9eUb8tWrsvdR8RoRJG06FStBw,15576
|
|
134
134
|
sqlmesh/dbt/manifest.py,sha256=jlafUYdoG7gS2pzvJrt9JfC2afbAMORhBbBUaLl-ZTM,24894
|
|
135
135
|
sqlmesh/dbt/model.py,sha256=FgQpl8pUNOnihGUo5PYdqOqqOX3XtfDHX3xEJc-CVC4,25782
|
|
136
136
|
sqlmesh/dbt/package.py,sha256=IBBQueVB4_4C9tIk0-GUL-O2uibNxXu6W2a4AeHHcOU,4322
|
|
@@ -284,7 +284,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
284
284
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
285
285
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
286
286
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
287
|
-
sqlmesh-0.200.1.
|
|
287
|
+
sqlmesh-0.200.1.dev19.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
288
288
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
289
289
|
web/client/dist/index.html,sha256=DAv6ABGogw4xRLb0T_92WP_S7XWyqVhwBgGKWtuQwU4,5472
|
|
290
290
|
web/client/dist/assets/Audits-BuHAmFO8.js,sha256=zbYUF6WdUGMbnMm01GMNPb7xAJwj-o5wMdL56vPo2qE,1041
|
|
@@ -402,8 +402,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
402
402
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
403
403
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
404
404
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
405
|
-
sqlmesh-0.200.1.
|
|
406
|
-
sqlmesh-0.200.1.
|
|
407
|
-
sqlmesh-0.200.1.
|
|
408
|
-
sqlmesh-0.200.1.
|
|
409
|
-
sqlmesh-0.200.1.
|
|
405
|
+
sqlmesh-0.200.1.dev19.dist-info/METADATA,sha256=Ny0Zc2-k411vatccGqa-JIHmP1miLT84VvGm7zcDk5w,26679
|
|
406
|
+
sqlmesh-0.200.1.dev19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.200.1.dev19.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.200.1.dev19.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.200.1.dev19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|