sqlmesh 0.188.2.dev27__py3-none-any.whl → 0.188.2.dev29__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/context.py +6 -0
- sqlmesh/core/macros.py +20 -0
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.dist-info}/METADATA +1 -1
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.dist-info}/RECORD +9 -9
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.dist-info}/WHEEL +0 -0
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.188.2.dev27.dist-info → sqlmesh-0.188.2.dev29.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.188.2.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 188, 2, '
|
|
20
|
+
__version__ = version = '0.188.2.dev29'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 188, 2, 'dev29')
|
sqlmesh/core/context.py
CHANGED
|
@@ -1677,6 +1677,12 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
1677
1677
|
The list of TableDiff objects containing schema and summary differences.
|
|
1678
1678
|
"""
|
|
1679
1679
|
|
|
1680
|
+
if "|" in source or "|" in target:
|
|
1681
|
+
raise ConfigError(
|
|
1682
|
+
"Cross-database table diffing is available in Tobiko Cloud. Read more here: "
|
|
1683
|
+
"https://sqlmesh.readthedocs.io/en/stable/guides/tablediff/#diffing-tables-or-views-across-gateways"
|
|
1684
|
+
)
|
|
1685
|
+
|
|
1680
1686
|
table_diffs: t.List[TableDiff] = []
|
|
1681
1687
|
|
|
1682
1688
|
# Diffs multiple or a single model across two environments
|
sqlmesh/core/macros.py
CHANGED
|
@@ -1452,6 +1452,26 @@ def _coerce(
|
|
|
1452
1452
|
if base is SQL and isinstance(expr, exp.Expression):
|
|
1453
1453
|
return expr.sql(dialect)
|
|
1454
1454
|
|
|
1455
|
+
if base is t.Literal:
|
|
1456
|
+
if not isinstance(expr, (exp.Literal, exp.Boolean)):
|
|
1457
|
+
raise SQLMeshError(
|
|
1458
|
+
f"{base_err_msg} Coercion to {base} requires a literal expression."
|
|
1459
|
+
)
|
|
1460
|
+
literal_type_args = t.get_args(typ)
|
|
1461
|
+
try:
|
|
1462
|
+
for literal_type_arg in literal_type_args:
|
|
1463
|
+
expr_is_bool = isinstance(expr.this, bool)
|
|
1464
|
+
literal_is_bool = isinstance(literal_type_arg, bool)
|
|
1465
|
+
if (expr_is_bool and literal_is_bool and literal_type_arg == expr.this) or (
|
|
1466
|
+
not expr_is_bool
|
|
1467
|
+
and not literal_is_bool
|
|
1468
|
+
and str(literal_type_arg) == str(expr.this)
|
|
1469
|
+
):
|
|
1470
|
+
return type(literal_type_arg)(expr.this)
|
|
1471
|
+
except Exception:
|
|
1472
|
+
raise SQLMeshError(base_err_msg)
|
|
1473
|
+
raise SQLMeshError(base_err_msg)
|
|
1474
|
+
|
|
1455
1475
|
if isinstance(expr, base):
|
|
1456
1476
|
return expr
|
|
1457
1477
|
if issubclass(base, exp.Expression):
|
|
@@ -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=qhDGVmaL8sDeuD8jHdRX_faQAJ7pWj0rRkxQisMGqZ4,530
|
|
3
3
|
sqlmesh/magics.py,sha256=fu7-OeT_0_TAkWZOLoiioE3-3iFpvTRxFCbQUlRnfuw,39944
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,13 +13,13 @@ sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
14
|
sqlmesh/core/console.py,sha256=x7qWETjHgu8ZpMtfW8V3bGKByT4nZXDjgtO6xmvAb-I,151143
|
|
15
15
|
sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=ZZskVvTciGvJO6weRzGlrAyQsqRkSqsjCSY2rc_cFZ4,116729
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=I7luvY2za30E5ynVaFPaEQQEmNViJpWAmW48PGSyDCU,21135
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=93cXYVuNoZ9CvJNTVn2Yz7WDOdHINwVXflbn0eZ-p14,49764
|
|
19
19
|
sqlmesh/core/environment.py,sha256=Fsih6WZ7Tx4ec0XIlmIIspUWcmijPNW5uHPRQSWuhA8,12315
|
|
20
20
|
sqlmesh/core/lineage.py,sha256=zjB0Zfamo2Fja2r5SSZPMbrEKTXr1WjozZPVqvxdybI,3143
|
|
21
21
|
sqlmesh/core/loader.py,sha256=L2pxQZ2OuXnBHcruJW2fsclPIrFyb-TogoWHwm_qKC8,36417
|
|
22
|
-
sqlmesh/core/macros.py,sha256=
|
|
22
|
+
sqlmesh/core/macros.py,sha256=L_UlI4kysfDiYYpv78kODZw8kYbC9-FdBx7nHm1hBjs,60584
|
|
23
23
|
sqlmesh/core/node.py,sha256=r4_1MRTPcU0MAlwZ5KzrykLT58B7dkKvHzPCsJmEKD8,14497
|
|
24
24
|
sqlmesh/core/notification_target.py,sha256=PPGoDrgbRKxr27vJEu03XqNTQLYTw0ZF_b0yAapxGeI,16158
|
|
25
25
|
sqlmesh/core/reference.py,sha256=k7OSkLqTjPR8WJjNeFj0xAJ297nZUMgb_iTVwKRRKjc,4875
|
|
@@ -270,7 +270,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
270
270
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
271
271
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
272
272
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
273
|
-
sqlmesh-0.188.2.
|
|
273
|
+
sqlmesh-0.188.2.dev29.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
274
274
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
275
275
|
web/client/dist/index.html,sha256=LbR9XrOXE77otBPoDnaomssYz6h2TBwLANs6hUJ0p2M,5472
|
|
276
276
|
web/client/dist/assets/Audits-DB1HcP9M.js,sha256=eGI_Soj69Jntsixw1NqQpdwG94N5jipQZv7T1Y7WUSs,1041
|
|
@@ -388,8 +388,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
388
388
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
389
389
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
390
390
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
391
|
-
sqlmesh-0.188.2.
|
|
392
|
-
sqlmesh-0.188.2.
|
|
393
|
-
sqlmesh-0.188.2.
|
|
394
|
-
sqlmesh-0.188.2.
|
|
395
|
-
sqlmesh-0.188.2.
|
|
391
|
+
sqlmesh-0.188.2.dev29.dist-info/METADATA,sha256=mZuzTlI2As24u2KXdY35SuIJ54LuvULRCKIt8GIet4E,26532
|
|
392
|
+
sqlmesh-0.188.2.dev29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.188.2.dev29.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.188.2.dev29.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.188.2.dev29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|