sqlmesh 0.195.1.dev6__py3-none-any.whl → 0.195.1.dev8__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/model/common.py +10 -2
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.dist-info}/METADATA +1 -1
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.dist-info}/RECORD +8 -8
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.dist-info}/WHEEL +0 -0
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.195.1.dev6.dist-info → sqlmesh-0.195.1.dev8.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.195.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 195, 1, '
|
|
20
|
+
__version__ = version = '0.195.1.dev8'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 195, 1, 'dev8')
|
sqlmesh/core/model/common.py
CHANGED
|
@@ -336,10 +336,18 @@ def parse_expression(
|
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
def parse_bool(v: t.Any) -> bool:
|
|
339
|
-
if isinstance(v, exp.Boolean):
|
|
340
|
-
return v.this
|
|
341
339
|
if isinstance(v, exp.Expression):
|
|
340
|
+
if not isinstance(v, exp.Boolean):
|
|
341
|
+
from sqlglot.optimizer.simplify import simplify
|
|
342
|
+
|
|
343
|
+
# Try to reduce expressions like (1 = 1) (see: T-SQL boolean generation)
|
|
344
|
+
v = simplify(v)
|
|
345
|
+
|
|
346
|
+
if isinstance(v, exp.Boolean):
|
|
347
|
+
return v.this
|
|
348
|
+
|
|
342
349
|
return str_to_bool(v.name)
|
|
350
|
+
|
|
343
351
|
return str_to_bool(str(v or ""))
|
|
344
352
|
|
|
345
353
|
|
|
@@ -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=cm3aLVkw9dmw9amDupB-P2VIRML2GoIBc5YraSEN_nk,528
|
|
3
3
|
sqlmesh/magics.py,sha256=nMfwSW5rIkdnyO9MXYm9u24hNl6dqgAWybC-MnRcNnE,41451
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -86,7 +86,7 @@ sqlmesh/core/metric/definition.py,sha256=Yd5aVgsZCDPJ43aGP7WqtzZOuuSUtB8uJGVA6Jw
|
|
|
86
86
|
sqlmesh/core/metric/rewriter.py,sha256=GiSTHfn2kinqCfNPYgZPRk93JFLzVaaejHtHDQ0yXZI,7326
|
|
87
87
|
sqlmesh/core/model/__init__.py,sha256=C8GRZ53xuXEA9hQv3BQS9pNNyd9rZ06R_B96UYGhDu4,1644
|
|
88
88
|
sqlmesh/core/model/cache.py,sha256=csun0RJguHzKX6-qITcOs4fVP4f8_Ts8qiUVV4sHY6Q,7869
|
|
89
|
-
sqlmesh/core/model/common.py,sha256
|
|
89
|
+
sqlmesh/core/model/common.py,sha256=PcQS3rHFNIXV_Z1dGwLQ7gLPbYVlrbWGGKAyc58-9Xk,17379
|
|
90
90
|
sqlmesh/core/model/decorator.py,sha256=v_sVudNROGrtj5cZ3vgcOFnwPdzwoUGY6REAkQpIMQc,8927
|
|
91
91
|
sqlmesh/core/model/definition.py,sha256=7s7Ordk4SItrZQJne59u9PgJ3c_vqI7u_VrTWhFjiSw,111120
|
|
92
92
|
sqlmesh/core/model/kind.py,sha256=iTfkZIeZ5GfJvW8MpjSOAIXJo-RtS-6JhGmgGSt_Q8s,36143
|
|
@@ -283,7 +283,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
283
283
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
284
284
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
285
285
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
286
|
-
sqlmesh-0.195.1.
|
|
286
|
+
sqlmesh-0.195.1.dev8.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
287
287
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
288
288
|
web/client/dist/index.html,sha256=drXwzSCEVDTMfaIwzJYjnT8Xk4c-Y4wNJz-CflUa_vY,5472
|
|
289
289
|
web/client/dist/assets/Audits-DrNQaTQA.js,sha256=E8JF632bsRUm6LGtgXlyHrJOYQe5VW2CgRZPaZNKvgg,1041
|
|
@@ -401,8 +401,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
401
401
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
402
402
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
403
403
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
404
|
-
sqlmesh-0.195.1.
|
|
405
|
-
sqlmesh-0.195.1.
|
|
406
|
-
sqlmesh-0.195.1.
|
|
407
|
-
sqlmesh-0.195.1.
|
|
408
|
-
sqlmesh-0.195.1.
|
|
404
|
+
sqlmesh-0.195.1.dev8.dist-info/METADATA,sha256=od9O_yMqm3GbrVgbvga7yDVu9FApyqg9_MNwaj2Gi_0,26690
|
|
405
|
+
sqlmesh-0.195.1.dev8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
406
|
+
sqlmesh-0.195.1.dev8.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
407
|
+
sqlmesh-0.195.1.dev8.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
408
|
+
sqlmesh-0.195.1.dev8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|