sqlmesh 0.225.1.dev5__py3-none-any.whl → 0.225.1.dev7__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/__init__.py +10 -2
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/METADATA +1 -1
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/RECORD +10 -10
- sqlmesh_dbt/cli.py +13 -1
- sqlmesh_dbt/operations.py +2 -1
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/WHEEL +0 -0
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.225.1.dev5.dist-info → sqlmesh-0.225.1.dev7.dist-info}/top_level.txt +0 -0
sqlmesh/__init__.py
CHANGED
|
@@ -188,6 +188,7 @@ def configure_logging(
|
|
|
188
188
|
write_to_file: bool = True,
|
|
189
189
|
log_file_dir: t.Optional[t.Union[str, Path]] = None,
|
|
190
190
|
ignore_warnings: bool = False,
|
|
191
|
+
log_level: t.Optional[t.Union[str, int]] = None,
|
|
191
192
|
) -> None:
|
|
192
193
|
# Remove noisy grpc logs that are not useful for users
|
|
193
194
|
os.environ["GRPC_VERBOSITY"] = os.environ.get("GRPC_VERBOSITY", "NONE")
|
|
@@ -195,8 +196,15 @@ def configure_logging(
|
|
|
195
196
|
logger = logging.getLogger()
|
|
196
197
|
debug = force_debug or debug_mode_enabled()
|
|
197
198
|
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
if log_level is not None:
|
|
200
|
+
if isinstance(log_level, str):
|
|
201
|
+
level = logging._nameToLevel.get(log_level.upper()) or logging.INFO
|
|
202
|
+
else:
|
|
203
|
+
level = log_level
|
|
204
|
+
else:
|
|
205
|
+
# base logger needs to be the lowest level that we plan to log
|
|
206
|
+
level = logging.DEBUG if debug else logging.INFO
|
|
207
|
+
|
|
200
208
|
logger.setLevel(level)
|
|
201
209
|
|
|
202
210
|
if debug:
|
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.dev7'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 225, 1, 'dev7')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
sqlmesh/__init__.py,sha256=
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
1
|
+
sqlmesh/__init__.py,sha256=v_spqQEhcnGaahp1yPvMqUIa6mhH3cs3Bc1CznxvCEA,7965
|
|
2
|
+
sqlmesh/_version.py,sha256=P8RwDzQuZc-DG-175QObyttNeICQmKzKpJ5t66c2Whk,721
|
|
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
|
|
@@ -238,12 +238,12 @@ 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=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
240
240
|
sqlmesh/utils/yaml.py,sha256=KFBd7hsKNRTtRudGR7d410qUYffQv0EWRcDM8hVNNZg,3025
|
|
241
|
-
sqlmesh-0.225.1.
|
|
241
|
+
sqlmesh-0.225.1.dev7.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
242
242
|
sqlmesh_dbt/__init__.py,sha256=awYS5y5mz-1NUmx6i5h5NSTJ7tidRl9NC0FAnFWSF6U,350
|
|
243
|
-
sqlmesh_dbt/cli.py,sha256=
|
|
243
|
+
sqlmesh_dbt/cli.py,sha256=eAeOZtHOikSDEZNI6hnZYJ-pja6ijFldRV4PeSzwYwU,5744
|
|
244
244
|
sqlmesh_dbt/console.py,sha256=RwWLYnEZHzn9Xp-e2gbZvkdKbWbBLN146geI84mJitg,1132
|
|
245
245
|
sqlmesh_dbt/error.py,sha256=1sPNU6Dik30DR9WTCvGp3ED-pzNmAA3LhP95BXb3ndI,1146
|
|
246
|
-
sqlmesh_dbt/operations.py,sha256=
|
|
246
|
+
sqlmesh_dbt/operations.py,sha256=QiCsz5NtD9XScc3t2ASjtnkyVg0tjiyWkIjp21d5MG4,14196
|
|
247
247
|
sqlmesh_dbt/options.py,sha256=noB_qK4uGGi7Erqk1XkkMaFz5aUc6lp44wwn1Nv_LI4,737
|
|
248
248
|
sqlmesh_dbt/selectors.py,sha256=nmVrFsC7CR2A24FdGTp5Wz7MuWreI-xLQTpOTy0H9K4,6543
|
|
249
249
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.dev7.dist-info/METADATA,sha256=gwAHhZWXqMS3xpSqUBL29wvuHE4CmomODt7q2xRYAKE,26685
|
|
367
|
+
sqlmesh-0.225.1.dev7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
368
|
+
sqlmesh-0.225.1.dev7.dist-info/entry_points.txt,sha256=sHAf6tQczIM8xZoduN4qaUjV7QEPVUUW_LCT8EDUMv4,155
|
|
369
|
+
sqlmesh-0.225.1.dev7.dist-info/top_level.txt,sha256=RQ-33FPe2IgL0rgossAfJkCRtqslz9b7wFARqiWLC5Q,24
|
|
370
|
+
sqlmesh-0.225.1.dev7.dist-info/RECORD,,
|
sqlmesh_dbt/cli.py
CHANGED
|
@@ -78,6 +78,12 @@ resource_type_option = click.option(
|
|
|
78
78
|
default=False,
|
|
79
79
|
help="Display debug logging during dbt execution. Useful for debugging and making bug reports events to help when debugging.",
|
|
80
80
|
)
|
|
81
|
+
@click.option(
|
|
82
|
+
"--log-level",
|
|
83
|
+
default="info",
|
|
84
|
+
type=click.Choice(["debug", "info", "warn", "error", "none"]),
|
|
85
|
+
help="Specify the minimum severity of events that are logged to the console and the log file.",
|
|
86
|
+
)
|
|
81
87
|
@click.pass_context
|
|
82
88
|
@cli_global_error_handler
|
|
83
89
|
def dbt(
|
|
@@ -85,6 +91,7 @@ def dbt(
|
|
|
85
91
|
profile: t.Optional[str] = None,
|
|
86
92
|
target: t.Optional[str] = None,
|
|
87
93
|
debug: bool = False,
|
|
94
|
+
log_level: t.Optional[str] = None,
|
|
88
95
|
) -> None:
|
|
89
96
|
"""
|
|
90
97
|
An ELT tool for managing your SQL transformations and data models, powered by the SQLMesh engine.
|
|
@@ -97,7 +104,12 @@ def dbt(
|
|
|
97
104
|
# we have a partially applied function here because subcommands might set extra options like --vars
|
|
98
105
|
# that need to be known before we attempt to load the project
|
|
99
106
|
ctx.obj = functools.partial(
|
|
100
|
-
create,
|
|
107
|
+
create,
|
|
108
|
+
project_dir=Path.cwd(),
|
|
109
|
+
profile=profile,
|
|
110
|
+
target=target,
|
|
111
|
+
debug=debug,
|
|
112
|
+
log_level=log_level,
|
|
101
113
|
)
|
|
102
114
|
|
|
103
115
|
if not ctx.invoked_subcommand:
|
sqlmesh_dbt/operations.py
CHANGED
|
@@ -237,6 +237,7 @@ def create(
|
|
|
237
237
|
vars: t.Optional[t.Dict[str, t.Any]] = None,
|
|
238
238
|
threads: t.Optional[int] = None,
|
|
239
239
|
debug: bool = False,
|
|
240
|
+
log_level: t.Optional[str] = None,
|
|
240
241
|
) -> DbtOperations:
|
|
241
242
|
with Progress(transient=True) as progress:
|
|
242
243
|
# Indeterminate progress bar before SQLMesh import to provide feedback to the user that something is indeed happening
|
|
@@ -256,7 +257,7 @@ def create(
|
|
|
256
257
|
while root_logger.hasHandlers():
|
|
257
258
|
root_logger.removeHandler(root_logger.handlers[0])
|
|
258
259
|
|
|
259
|
-
configure_logging(force_debug=debug)
|
|
260
|
+
configure_logging(force_debug=debug, log_level=log_level)
|
|
260
261
|
set_console(DbtCliConsole())
|
|
261
262
|
|
|
262
263
|
progress.update(load_task_id, description="Loading project", total=None)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|