sqlmesh 0.228.2.dev2__py3-none-any.whl → 0.228.2.dev4__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/engine_adapter/databricks.py +16 -16
- sqlmesh/integrations/github/cicd/command.py +11 -2
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.dist-info}/METADATA +1 -1
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.dist-info}/RECORD +9 -9
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.dist-info}/WHEEL +0 -0
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.228.2.dev2.dist-info → sqlmesh-0.228.2.dev4.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.228.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 228, 2, '
|
|
31
|
+
__version__ = version = '0.228.2.dev4'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 228, 2, 'dev4')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -78,21 +78,21 @@ class DatabricksEngineAdapter(SparkEngineAdapter, GrantsFromInfoSchemaMixin):
|
|
|
78
78
|
def _use_spark_session(self) -> bool:
|
|
79
79
|
if self.can_access_spark_session(bool(self._extra_config.get("disable_spark_session"))):
|
|
80
80
|
return True
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
|
|
82
|
+
if self.can_access_databricks_connect(
|
|
83
|
+
bool(self._extra_config.get("disable_databricks_connect"))
|
|
84
|
+
):
|
|
85
|
+
if self._extra_config.get("databricks_connect_use_serverless"):
|
|
86
|
+
return True
|
|
87
|
+
|
|
88
|
+
if {
|
|
89
|
+
"databricks_connect_cluster_id",
|
|
90
|
+
"databricks_connect_server_hostname",
|
|
91
|
+
"databricks_connect_access_token",
|
|
92
|
+
}.issubset(self._extra_config):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return False
|
|
96
96
|
|
|
97
97
|
@property
|
|
98
98
|
def is_spark_session_connection(self) -> bool:
|
|
@@ -108,7 +108,7 @@ class DatabricksEngineAdapter(SparkEngineAdapter, GrantsFromInfoSchemaMixin):
|
|
|
108
108
|
|
|
109
109
|
connect_kwargs = dict(
|
|
110
110
|
host=self._extra_config["databricks_connect_server_hostname"],
|
|
111
|
-
token=self._extra_config
|
|
111
|
+
token=self._extra_config.get("databricks_connect_access_token"),
|
|
112
112
|
)
|
|
113
113
|
if "databricks_connect_use_serverless" in self._extra_config:
|
|
114
114
|
connect_kwargs["serverless"] = True
|
|
@@ -25,12 +25,21 @@ logger = logging.getLogger(__name__)
|
|
|
25
25
|
envvar="GITHUB_TOKEN",
|
|
26
26
|
help="The Github Token to be used. Pass in `${{ secrets.GITHUB_TOKEN }}` if you want to use the one created by Github actions",
|
|
27
27
|
)
|
|
28
|
+
@click.option(
|
|
29
|
+
"--full-logs",
|
|
30
|
+
is_flag=True,
|
|
31
|
+
help="Whether to print all logs in the Github Actions output or only in their relevant GA check",
|
|
32
|
+
)
|
|
28
33
|
@click.pass_context
|
|
29
|
-
def github(ctx: click.Context, token: str) -> None:
|
|
34
|
+
def github(ctx: click.Context, token: str, full_logs: bool = False) -> None:
|
|
30
35
|
"""Github Action CI/CD Bot. See https://sqlmesh.readthedocs.io/en/stable/integrations/github/ for details"""
|
|
31
36
|
# set a larger width because if none is specified, it auto-detects 80 characters when running in GitHub Actions
|
|
32
37
|
# which can result in surprise newlines when outputting dates to backfill
|
|
33
|
-
set_console(
|
|
38
|
+
set_console(
|
|
39
|
+
MarkdownConsole(
|
|
40
|
+
width=1000, warning_capture_only=not full_logs, error_capture_only=not full_logs
|
|
41
|
+
)
|
|
42
|
+
)
|
|
34
43
|
ctx.obj["github"] = GithubController(
|
|
35
44
|
paths=ctx.obj["paths"],
|
|
36
45
|
token=token,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=v_spqQEhcnGaahp1yPvMqUIa6mhH3cs3Bc1CznxvCEA,7965
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=pwQUtYhTxvOyWqHj6Suw3tbg93WE0SSzZh478WG9z8A,721
|
|
3
3
|
sqlmesh/magics.py,sha256=7Q1_lXSD_PgYH40Hsx6-OkfSQC3UJZgF043RVFRnw1s,42082
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -64,7 +64,7 @@ sqlmesh/core/engine_adapter/base.py,sha256=GN05HN4E_Yrw38ps7gwKnes-bput3uIAbTFXp
|
|
|
64
64
|
sqlmesh/core/engine_adapter/base_postgres.py,sha256=WTU0QingaTNM7n-mTVxS-sg4f6jFZGOSryK5IYacveY,7734
|
|
65
65
|
sqlmesh/core/engine_adapter/bigquery.py,sha256=edBWbAbeXA4bOtVG-YNTQbt9qqwL9QFffZti8Ozv-Cw,60923
|
|
66
66
|
sqlmesh/core/engine_adapter/clickhouse.py,sha256=GWGpwdxZd4RqLSAMlOHjtO8nPpSIo3zFeRWnj9eSOrM,36072
|
|
67
|
-
sqlmesh/core/engine_adapter/databricks.py,sha256=
|
|
67
|
+
sqlmesh/core/engine_adapter/databricks.py,sha256=VrZMgrL7PQiipaI_inIMcLudLqg2nX5JLdALjB8DamY,16525
|
|
68
68
|
sqlmesh/core/engine_adapter/duckdb.py,sha256=9AXeRhaYXBcYSmIavyFY9LUzfgh94qkTO98v0-suQ8I,7993
|
|
69
69
|
sqlmesh/core/engine_adapter/fabric.py,sha256=jY1bejscEcL5r-WdGjsSGr-dWDa1awavCikrAyhDFpk,19299
|
|
70
70
|
sqlmesh/core/engine_adapter/mixins.py,sha256=3rB7B2PZSB920BODO7k_kKqu6z0N-zj1etiRCYzpUcQ,27096
|
|
@@ -156,7 +156,7 @@ sqlmesh/integrations/dlt.py,sha256=mA9ym16gAN2O8RYOzSPeTX5xsXPuXVRPdiX7dkGGZlo,7
|
|
|
156
156
|
sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q,6801
|
|
157
157
|
sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
158
158
|
sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
159
|
-
sqlmesh/integrations/github/cicd/command.py,sha256=
|
|
159
|
+
sqlmesh/integrations/github/cicd/command.py,sha256=CyYpoFjZHkOpE2CFEWAMxOQhNrhbds8643PHaNmBLxo,12481
|
|
160
160
|
sqlmesh/integrations/github/cicd/config.py,sha256=n4KyNv65y1gpys82iLAQZUb6g2pnzywyV_7cOrQXsnI,3669
|
|
161
161
|
sqlmesh/integrations/github/cicd/controller.py,sha256=pWRiUgBm878zO6h6RB4_nnu6L6r8szDp5h_g4Xp4SjQ,55044
|
|
162
162
|
sqlmesh/lsp/api.py,sha256=Z_8Op6CWqdbmEeidCQgMcVmRooQujqaynn-0EOw4478,2505
|
|
@@ -238,7 +238,7 @@ sqlmesh/utils/pydantic.py,sha256=-yppkVlw6iSBaSiKjbe7OChxL-u3urOS4-KCjJEgsRU,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.228.2.
|
|
241
|
+
sqlmesh-0.228.2.dev4.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.228.2.
|
|
367
|
-
sqlmesh-0.228.2.
|
|
368
|
-
sqlmesh-0.228.2.
|
|
369
|
-
sqlmesh-0.228.2.
|
|
370
|
-
sqlmesh-0.228.2.
|
|
366
|
+
sqlmesh-0.228.2.dev4.dist-info/METADATA,sha256=y0Eng4wBQeTwKQD0m5qTupNvIFR2-yI-zShG1h5xdGo,26685
|
|
367
|
+
sqlmesh-0.228.2.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
368
|
+
sqlmesh-0.228.2.dev4.dist-info/entry_points.txt,sha256=sHAf6tQczIM8xZoduN4qaUjV7QEPVUUW_LCT8EDUMv4,155
|
|
369
|
+
sqlmesh-0.228.2.dev4.dist-info/top_level.txt,sha256=RQ-33FPe2IgL0rgossAfJkCRtqslz9b7wFARqiWLC5Q,24
|
|
370
|
+
sqlmesh-0.228.2.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|