sqlmesh 0.225.1.dev16__py3-none-any.whl → 0.225.1.dev17__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/dbt/column.py +17 -5
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/METADATA +2 -2
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/RECORD +8 -8
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/WHEEL +0 -0
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.225.1.dev16.dist-info → sqlmesh-0.225.1.dev17.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.225.1.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 225, 1, '
|
|
31
|
+
__version__ = version = '0.225.1.dev17'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 225, 1, 'dev17')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
sqlmesh/dbt/column.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import typing as t
|
|
4
|
+
import logging
|
|
4
5
|
|
|
5
6
|
from sqlglot import exp, parse_one
|
|
6
7
|
from sqlglot.helper import ensure_list
|
|
@@ -9,6 +10,8 @@ from sqlmesh.dbt.common import GeneralConfig
|
|
|
9
10
|
from sqlmesh.utils.conversions import ensure_bool
|
|
10
11
|
from sqlmesh.utils.pydantic import field_validator
|
|
11
12
|
|
|
13
|
+
logger = logging.getLogger(__name__)
|
|
14
|
+
|
|
12
15
|
|
|
13
16
|
def yaml_to_columns(
|
|
14
17
|
yaml: t.Dict[str, ColumnConfig] | t.List[t.Dict[str, ColumnConfig]],
|
|
@@ -31,11 +34,20 @@ def column_types_to_sqlmesh(
|
|
|
31
34
|
Returns:
|
|
32
35
|
A dict of column name to exp.DataType
|
|
33
36
|
"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
col_types_to_sqlmesh: t.Dict[str, exp.DataType] = {}
|
|
38
|
+
for name, column in columns.items():
|
|
39
|
+
if column.enabled and column.data_type:
|
|
40
|
+
column_def = parse_one(
|
|
41
|
+
f"{name} {column.data_type}", into=exp.ColumnDef, dialect=dialect or ""
|
|
42
|
+
)
|
|
43
|
+
if column_def.args.get("constraints"):
|
|
44
|
+
logger.warning(
|
|
45
|
+
f"Ignoring unsupported constraints for column '{name}' with definition '{column.data_type}'. Please refer to github.com/TobikoData/sqlmesh/issues/4717 for more information."
|
|
46
|
+
)
|
|
47
|
+
kind = column_def.kind
|
|
48
|
+
if kind:
|
|
49
|
+
col_types_to_sqlmesh[name] = kind
|
|
50
|
+
return col_types_to_sqlmesh
|
|
39
51
|
|
|
40
52
|
|
|
41
53
|
def column_descriptions_to_sqlmesh(columns: t.Dict[str, ColumnConfig]) -> t.Dict[str, str]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlmesh
|
|
3
|
-
Version: 0.225.1.
|
|
3
|
+
Version: 0.225.1.dev17
|
|
4
4
|
Summary: Next-generation data transformation framework
|
|
5
5
|
Author-email: "TobikoData Inc." <engineering@tobikodata.com>
|
|
6
6
|
License: Apache License
|
|
@@ -235,7 +235,7 @@ Requires-Dist: python-dotenv
|
|
|
235
235
|
Requires-Dist: requests
|
|
236
236
|
Requires-Dist: rich[jupyter]
|
|
237
237
|
Requires-Dist: ruamel.yaml
|
|
238
|
-
Requires-Dist: sqlglot[rs]~=27.
|
|
238
|
+
Requires-Dist: sqlglot[rs]~=27.27.0
|
|
239
239
|
Requires-Dist: tenacity
|
|
240
240
|
Requires-Dist: time-machine
|
|
241
241
|
Requires-Dist: json-stream
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=v_spqQEhcnGaahp1yPvMqUIa6mhH3cs3Bc1CznxvCEA,7965
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=0vDUvywH_ZkmJlZuCZc7Q299r7zD869DTT8Mio64uNY,723
|
|
3
3
|
sqlmesh/magics.py,sha256=xLh3u4eqpVrKRVN5KF3X84RPRqjygAB9AJP1TXwH8hg,42086
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -131,7 +131,7 @@ sqlmesh/dbt/__init__.py,sha256=KUv-lW5sG9D2ceXAIzA4MLcjyhzq3E-7qJP4P_PH2EU,144
|
|
|
131
131
|
sqlmesh/dbt/adapter.py,sha256=z-tFIj3rpVvdBr3y8l40FU531-TQ5H2ctLmjwzMBxwk,21321
|
|
132
132
|
sqlmesh/dbt/basemodel.py,sha256=oUr_Em-TjQbpYZS5gtvMA65JRTdnZM46NO9MWvLBLzQ,14860
|
|
133
133
|
sqlmesh/dbt/builtin.py,sha256=c7spvtMFMR6hfLkuZj9uqBQ093R_hYRv9b4jd9k26QI,19792
|
|
134
|
-
sqlmesh/dbt/column.py,sha256=
|
|
134
|
+
sqlmesh/dbt/column.py,sha256=T5xEWNf0n1sZ3REWnc5D9RsXt5VrrZ1YlMWZUUuAUxo,2449
|
|
135
135
|
sqlmesh/dbt/common.py,sha256=AezWUEoGDISQj9eOo1Z5kLsXz3oRFb0LikTMEaAX3J8,8593
|
|
136
136
|
sqlmesh/dbt/context.py,sha256=JDfSkVBBV2Xi4nDOwWipVHJRll3ioEmvh7gBglPVvqM,11074
|
|
137
137
|
sqlmesh/dbt/loader.py,sha256=ZTpPFnXuf4hQ8Z7Z6oMzxqN2wMMxsQqhm2x-8a5R1AA,19269
|
|
@@ -238,7 +238,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
238
238
|
sqlmesh/utils/rich.py,sha256=cwQ5nJ6sgz64xHtoh6_ec7ReV5YpsOGhMtUJnwoRfEI,3549
|
|
239
239
|
sqlmesh/utils/windows.py,sha256=0F9RdpuuCoG5NiEDXvWlAGCiJ-59OjSAmgFF5wW05aY,1133
|
|
240
240
|
sqlmesh/utils/yaml.py,sha256=KFBd7hsKNRTtRudGR7d410qUYffQv0EWRcDM8hVNNZg,3025
|
|
241
|
-
sqlmesh-0.225.1.
|
|
241
|
+
sqlmesh-0.225.1.dev17.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
242
242
|
sqlmesh_dbt/__init__.py,sha256=awYS5y5mz-1NUmx6i5h5NSTJ7tidRl9NC0FAnFWSF6U,350
|
|
243
243
|
sqlmesh_dbt/cli.py,sha256=p9foHjAW9ni7BTOJ2loynk47M0Sf43QIJZRggOzF5tc,6351
|
|
244
244
|
sqlmesh_dbt/console.py,sha256=RwWLYnEZHzn9Xp-e2gbZvkdKbWbBLN146geI84mJitg,1132
|
|
@@ -363,8 +363,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
363
363
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
364
364
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
365
365
|
web/server/api/endpoints/table_diff.py,sha256=8XTwgOh6QBbNy_hTM1JuHgRjbnie-pGPrphiW-FNLjQ,6058
|
|
366
|
-
sqlmesh-0.225.1.
|
|
367
|
-
sqlmesh-0.225.1.
|
|
368
|
-
sqlmesh-0.225.1.
|
|
369
|
-
sqlmesh-0.225.1.
|
|
370
|
-
sqlmesh-0.225.1.
|
|
366
|
+
sqlmesh-0.225.1.dev17.dist-info/METADATA,sha256=3Z-gHxpytLz_svwdo2EkWmyBvt1IhiXS6GYcVleOS74,26686
|
|
367
|
+
sqlmesh-0.225.1.dev17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
368
|
+
sqlmesh-0.225.1.dev17.dist-info/entry_points.txt,sha256=sHAf6tQczIM8xZoduN4qaUjV7QEPVUUW_LCT8EDUMv4,155
|
|
369
|
+
sqlmesh-0.225.1.dev17.dist-info/top_level.txt,sha256=RQ-33FPe2IgL0rgossAfJkCRtqslz9b7wFARqiWLC5Q,24
|
|
370
|
+
sqlmesh-0.225.1.dev17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|