sqlmesh 0.203.1.dev9__py3-none-any.whl → 0.204.1.dev2__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 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.203.1.dev9'
21
- __version_tuple__ = version_tuple = (0, 203, 1, 'dev9')
20
+ __version__ = version = '0.204.1.dev2'
21
+ __version_tuple__ = version_tuple = (0, 204, 1, 'dev2')
@@ -601,7 +601,7 @@ class PlanBuilder:
601
601
  # If the model kind changes mark as breaking
602
602
  if snapshot.is_model and snapshot.name in self._context_diff.modified_snapshots:
603
603
  _, old = self._context_diff.modified_snapshots[snapshot.name]
604
- if old.model.kind.name != snapshot.model.kind.name:
604
+ if _is_breaking_kind_change(old, snapshot):
605
605
  category = SnapshotChangeCategory.BREAKING
606
606
 
607
607
  snapshot.categorize_as(category)
@@ -765,8 +765,8 @@ class PlanBuilder:
765
765
  snapshot = self._context_diff.snapshots[s_id]
766
766
  if snapshot.name in self._context_diff.modified_snapshots:
767
767
  _, old = self._context_diff.modified_snapshots[snapshot.name]
768
- # If the model kind has changed, then we should not consider this to be a forward-only change.
769
- if snapshot.is_model and old.model.kind.name != snapshot.model.kind.name:
768
+ # If the model kind has changed in a breaking way, then we can't consider this to be a forward-only change.
769
+ if snapshot.is_model and _is_breaking_kind_change(old, snapshot):
770
770
  return False
771
771
  return (
772
772
  snapshot.is_model
@@ -882,3 +882,16 @@ class PlanBuilder:
882
882
  if snapshot.name in self._context_diff.modified_snapshots
883
883
  or snapshot.snapshot_id in self._context_diff.added
884
884
  ]
885
+
886
+
887
+ def _is_breaking_kind_change(old: Snapshot, new: Snapshot) -> bool:
888
+ if old.model.kind.name == new.model.kind.name:
889
+ # If the kind hasn't changed, then it's not a breaking change
890
+ return False
891
+ if not old.is_incremental or not new.is_incremental:
892
+ # If either is not incremental, then it's a breaking change
893
+ return True
894
+ if old.model.partitioned_by == new.model.partitioned_by:
895
+ # If the partitioning hasn't changed, then it's not a breaking change
896
+ return False
897
+ return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.203.1.dev9
3
+ Version: 0.204.1.dev2
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -234,7 +234,7 @@ Requires-Dist: python-dotenv
234
234
  Requires-Dist: requests
235
235
  Requires-Dist: rich[jupyter]
236
236
  Requires-Dist: ruamel.yaml
237
- Requires-Dist: sqlglot[rs]~=27.3.1
237
+ Requires-Dist: sqlglot[rs]~=27.4.0
238
238
  Requires-Dist: tenacity
239
239
  Requires-Dist: time-machine
240
240
  Requires-Dist: json-stream
@@ -1,5 +1,5 @@
1
1
  sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
2
- sqlmesh/_version.py,sha256=fDm1RyPDBWPKysCeu-4LaP4ok_uBCLO7UMqmLOtJypc,528
2
+ sqlmesh/_version.py,sha256=7XVP2ILfF9srhHN6wn36LLAWZAkOhZyMJneao4lQCuc,528
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
@@ -94,7 +94,7 @@ sqlmesh/core/model/meta.py,sha256=D9InI9M2-IXeb34vkXNQSLALL8xVXjZ_LXwI-Tqxm7I,21
94
94
  sqlmesh/core/model/schema.py,sha256=_HMYfzK9wWXh7_CQDIIGnuQUD4aiX3o5D2cRp2sERzc,3387
95
95
  sqlmesh/core/model/seed.py,sha256=a0M-1zY1gOkN5ph2GQyataEdBSCtq50YjeFk2LyvInI,5058
96
96
  sqlmesh/core/plan/__init__.py,sha256=NKSvM7ZBVjw9ho3J65M1wFvG3KURB8PJ0FHHLmtSF44,443
97
- sqlmesh/core/plan/builder.py,sha256=TQVSGiGbQi9tro0tBlcL2f5BEvyOYNiLuB3yz8PRUzA,41859
97
+ sqlmesh/core/plan/builder.py,sha256=aj-4jDXy7Uk2apMClBNiR_d317PVURhF3XTt5MN-KeA,42389
98
98
  sqlmesh/core/plan/definition.py,sha256=yrX_uZMXi29ltkuowWhNUOi1kd0Uq0TQoM574EI6JHo,14019
99
99
  sqlmesh/core/plan/evaluator.py,sha256=0oqepq0qZ_tPhAye6Q9gLenBD_8yE3E8AAwt553lz7U,22163
100
100
  sqlmesh/core/plan/explainer.py,sha256=aBkvtM9eog_2NIglazSDdG_i9TTCdFSVOkCw5N8O-1k,12028
@@ -285,7 +285,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
285
285
  sqlmesh/utils/rich.py,sha256=cwQ5nJ6sgz64xHtoh6_ec7ReV5YpsOGhMtUJnwoRfEI,3549
286
286
  sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
287
287
  sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
288
- sqlmesh-0.203.1.dev9.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
288
+ sqlmesh-0.204.1.dev2.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
289
289
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
290
290
  web/client/dist/index.html,sha256=SXykdSRNgrT1k6I2dPZPEfpxPjIsi8-yVFijt-naSA4,5472
291
291
  web/client/dist/assets/Audits-Jm353fhk.js,sha256=ry6b5IKT3hLAfD5C3T2BqxulfauEV0n0YZ2vsP4eQ_U,1041
@@ -403,8 +403,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
403
403
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
404
404
  web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
405
405
  web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
406
- sqlmesh-0.203.1.dev9.dist-info/METADATA,sha256=wzJsu_LtG_2Ry5ROrlkXedNmQhwi3ewBtDYGQ8KvSig,26678
407
- sqlmesh-0.203.1.dev9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
408
- sqlmesh-0.203.1.dev9.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
409
- sqlmesh-0.203.1.dev9.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
410
- sqlmesh-0.203.1.dev9.dist-info/RECORD,,
406
+ sqlmesh-0.204.1.dev2.dist-info/METADATA,sha256=FloboMIRoLU8VlOip65oGXq7AugeV7JNU0Cq43V-9ng,26678
407
+ sqlmesh-0.204.1.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
408
+ sqlmesh-0.204.1.dev2.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
409
+ sqlmesh-0.204.1.dev2.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
410
+ sqlmesh-0.204.1.dev2.dist-info/RECORD,,