sqlmesh 0.201.1.dev3__py3-none-any.whl → 0.201.1.dev5__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/cli/options.py +2 -0
- sqlmesh/core/dialect.py +15 -0
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.dist-info}/METADATA +1 -1
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.dist-info}/RECORD +9 -9
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.dist-info}/WHEEL +0 -0
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.201.1.dev3.dist-info → sqlmesh-0.201.1.dev5.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.201.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 201, 1, '
|
|
20
|
+
__version__ = version = '0.201.1.dev5'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 201, 1, 'dev5')
|
sqlmesh/cli/options.py
CHANGED
|
@@ -63,6 +63,7 @@ def format_options(func: t.Callable) -> t.Callable:
|
|
|
63
63
|
"--normalize",
|
|
64
64
|
is_flag=True,
|
|
65
65
|
help="Whether or not to normalize identifiers to lowercase.",
|
|
66
|
+
default=None,
|
|
66
67
|
)(func)
|
|
67
68
|
func = click.option(
|
|
68
69
|
"--pad",
|
|
@@ -82,6 +83,7 @@ def format_options(func: t.Callable) -> t.Callable:
|
|
|
82
83
|
func = click.option(
|
|
83
84
|
"--leading-comma",
|
|
84
85
|
is_flag=True,
|
|
86
|
+
default=None,
|
|
85
87
|
help="Determines whether or not the comma is leading or trailing in select expressions. Default is trailing.",
|
|
86
88
|
)(func)
|
|
87
89
|
func = click.option(
|
sqlmesh/core/dialect.py
CHANGED
|
@@ -419,6 +419,20 @@ def _parse_limit(
|
|
|
419
419
|
return macro
|
|
420
420
|
|
|
421
421
|
|
|
422
|
+
def _parse_value(self: Parser, values: bool = True) -> t.Optional[exp.Expression]:
|
|
423
|
+
wrapped = self._match(TokenType.L_PAREN, advance=False)
|
|
424
|
+
|
|
425
|
+
# The base _parse_value method always constructs a Tuple instance. This is problematic when
|
|
426
|
+
# generating values with a macro function, because it's impossible to tell whether the user's
|
|
427
|
+
# intention was to construct a row or a column with the VALUES expression. To avoid this, we
|
|
428
|
+
# amend the AST such that the Tuple is replaced by the macro function call itself.
|
|
429
|
+
expr = self.__parse_value() # type: ignore
|
|
430
|
+
if expr and not wrapped and isinstance(seq_get(expr.expressions, 0), MacroFunc):
|
|
431
|
+
return expr.expressions[0]
|
|
432
|
+
|
|
433
|
+
return expr
|
|
434
|
+
|
|
435
|
+
|
|
422
436
|
def _parse_macro_or_clause(self: Parser, parser: t.Callable) -> t.Optional[exp.Expression]:
|
|
423
437
|
return _parse_macro(self) if self._match(TokenType.PARAMETER) else parser()
|
|
424
438
|
|
|
@@ -1063,6 +1077,7 @@ def extend_sqlglot() -> None:
|
|
|
1063
1077
|
_override(Parser, _parse_with)
|
|
1064
1078
|
_override(Parser, _parse_having)
|
|
1065
1079
|
_override(Parser, _parse_limit)
|
|
1080
|
+
_override(Parser, _parse_value)
|
|
1066
1081
|
_override(Parser, _parse_lambda)
|
|
1067
1082
|
_override(Parser, _parse_types)
|
|
1068
1083
|
_override(Parser, _parse_if)
|
|
@@ -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=28DqjW1t1p7IGXMp9zpmmE8ktrT3byQbAE9YN7ZW4jo,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
|
|
@@ -7,7 +7,7 @@ sqlmesh/cicd/bot.py,sha256=2zlbn-DXkqQzr3lA0__IGU4XaIfXBXBKLWXNI2DRJX8,759
|
|
|
7
7
|
sqlmesh/cicd/config.py,sha256=mpgkisSBBovlNrNZir2unT8Wes6b38RW2UsU_o4e8vY,109
|
|
8
8
|
sqlmesh/cli/__init__.py,sha256=MAXAyO7isbyM-PaSdFjkJNcjn32WjOl0XzxT5gvp_vo,1690
|
|
9
9
|
sqlmesh/cli/main.py,sha256=rWwRZCJH-ogbT3X38inrYR4lQJUAOe2jHIUOsjpyCMA,36114
|
|
10
|
-
sqlmesh/cli/options.py,sha256
|
|
10
|
+
sqlmesh/cli/options.py,sha256=8qEGWivk4urGikpEmaU9T8WsyaZtjCpmW4Ed25iQ73I,2543
|
|
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
|
|
@@ -15,7 +15,7 @@ sqlmesh/core/console.py,sha256=lb6Zq6BhimfQkcSd19t35owSmaGCqw0WHMhGK-WZ-y4,16549
|
|
|
15
15
|
sqlmesh/core/constants.py,sha256=gUABXWYgH_XOSbaZAJsR5o1dmA61JDCvBDyxqqXX3LM,2630
|
|
16
16
|
sqlmesh/core/context.py,sha256=0EH5FEoPEoxgr3_yu2pasH_Itei7daInEL1uEJgpgwM,127360
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=_Ur55fGLJ58Icsp44I4pVhdi7_JHiHq45mWIco9oFzk,21792
|
|
18
|
-
sqlmesh/core/dialect.py,sha256=
|
|
18
|
+
sqlmesh/core/dialect.py,sha256=ELBtB8ft0OyalhgqQ1CUnn26xJxLDah2SP1v8kh_FB8,50903
|
|
19
19
|
sqlmesh/core/environment.py,sha256=odus40R-YzdQdS_IiUq_tFouUXIhnpwmNwo8dE8Aw1k,13041
|
|
20
20
|
sqlmesh/core/lineage.py,sha256=zjB0Zfamo2Fja2r5SSZPMbrEKTXr1WjozZPVqvxdybI,3143
|
|
21
21
|
sqlmesh/core/loader.py,sha256=0C6eQFIK4gClXdWu1NlozBJ6AkKrGOxujUf0TyXlo18,40923
|
|
@@ -284,7 +284,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
284
284
|
sqlmesh/utils/rich.py,sha256=cwQ5nJ6sgz64xHtoh6_ec7ReV5YpsOGhMtUJnwoRfEI,3549
|
|
285
285
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
286
286
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
287
|
-
sqlmesh-0.201.1.
|
|
287
|
+
sqlmesh-0.201.1.dev5.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.201.1.
|
|
406
|
-
sqlmesh-0.201.1.
|
|
407
|
-
sqlmesh-0.201.1.
|
|
408
|
-
sqlmesh-0.201.1.
|
|
409
|
-
sqlmesh-0.201.1.
|
|
405
|
+
sqlmesh-0.201.1.dev5.dist-info/METADATA,sha256=jCese1iK6a9C9Z-1ON9EH5EWfGLv4N4uwBSYvJtGPcI,26678
|
|
406
|
+
sqlmesh-0.201.1.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.201.1.dev5.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.201.1.dev5.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.201.1.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|