sqlmesh 0.225.1.dev23__py3-none-any.whl → 0.225.1.dev25__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/snapshot/evaluator.py +7 -1
- sqlmesh/dbt/builtin.py +8 -10
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.dist-info}/METADATA +1 -1
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.dist-info}/RECORD +9 -9
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.dist-info}/WHEEL +0 -0
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.225.1.dev23.dist-info → sqlmesh-0.225.1.dev25.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.dev25'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 225, 1, 'dev25')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -2185,7 +2185,13 @@ class MaterializableStrategy(PromotableStrategy, abc.ABC):
|
|
|
2185
2185
|
if model.on_destructive_change.is_ignore or model.on_additive_change.is_ignore:
|
|
2186
2186
|
# We need to identify the columns that are only in the source so we create an empty table with
|
|
2187
2187
|
# the user query to determine that
|
|
2188
|
-
|
|
2188
|
+
temp_table_name = exp.table_(
|
|
2189
|
+
"diff",
|
|
2190
|
+
db=model.physical_schema,
|
|
2191
|
+
)
|
|
2192
|
+
with self.adapter.temp_table(
|
|
2193
|
+
model.ctas_query(**render_kwargs), name=temp_table_name
|
|
2194
|
+
) as temp_table:
|
|
2189
2195
|
source_columns = list(self.adapter.columns(temp_table))
|
|
2190
2196
|
else:
|
|
2191
2197
|
source_columns = None
|
sqlmesh/dbt/builtin.py
CHANGED
|
@@ -25,7 +25,7 @@ from sqlmesh.dbt.target import TARGET_TYPE_TO_CONFIG_CLASS
|
|
|
25
25
|
from sqlmesh.dbt.util import DBT_VERSION
|
|
26
26
|
from sqlmesh.utils import AttributeDict, debug_mode_enabled, yaml
|
|
27
27
|
from sqlmesh.utils.date import now
|
|
28
|
-
from sqlmesh.utils.errors import ConfigError
|
|
28
|
+
from sqlmesh.utils.errors import ConfigError
|
|
29
29
|
from sqlmesh.utils.jinja import JinjaMacroRegistry, MacroReference, MacroReturnVal
|
|
30
30
|
|
|
31
31
|
logger = logging.getLogger(__name__)
|
|
@@ -381,18 +381,16 @@ def do_zip(*args: t.Any, default: t.Optional[t.Any] = None) -> t.Optional[t.Any]
|
|
|
381
381
|
return default
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
def as_bool(value:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
raise MacroEvalError(f"Failed to convert '{value}' into boolean.")
|
|
384
|
+
def as_bool(value: t.Any) -> t.Any:
|
|
385
|
+
# dbt's jinja TEXT_FILTERS just return the input value as is
|
|
386
|
+
# https://github.com/dbt-labs/dbt-common/blob/main/dbt_common/clients/jinja.py#L559
|
|
387
|
+
return value
|
|
389
388
|
|
|
390
389
|
|
|
391
390
|
def as_number(value: str) -> t.Any:
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
raise MacroEvalError(f"Failed to convert '{value}' into number.")
|
|
391
|
+
# dbt's jinja TEXT_FILTERS just return the input value as is
|
|
392
|
+
# https://github.com/dbt-labs/dbt-common/blob/main/dbt_common/clients/jinja.py#L559
|
|
393
|
+
return value
|
|
396
394
|
|
|
397
395
|
|
|
398
396
|
def _try_literal_eval(value: str) -> t.Any:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=v_spqQEhcnGaahp1yPvMqUIa6mhH3cs3Bc1CznxvCEA,7965
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=M5iyIFfAVCQDlmjaTURXeS2SF5CyUI7HBWfUTauEwA4,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
|
|
@@ -106,7 +106,7 @@ sqlmesh/core/snapshot/__init__.py,sha256=NUhvP-glftOWwxONK79Bud93yNQJv8ApBUjkV35
|
|
|
106
106
|
sqlmesh/core/snapshot/cache.py,sha256=bgqCR2hyf6r2A_8QP1EnXFK25gDX37-Zg0YeMuETWxg,3934
|
|
107
107
|
sqlmesh/core/snapshot/categorizer.py,sha256=iNBEqK2KIyTAYURlB9KLfyKCpXN7vjxSqA7QjFa7e5c,2418
|
|
108
108
|
sqlmesh/core/snapshot/definition.py,sha256=EHVRyXD58OxB-0fcx_ff9d-TVkdvoXD7NheewbpRQto,96542
|
|
109
|
-
sqlmesh/core/snapshot/evaluator.py,sha256=
|
|
109
|
+
sqlmesh/core/snapshot/evaluator.py,sha256=IOqnV-0etMaIhYaQ0qZvYORyVr9mHdpAKDx8ru8HJhc,132807
|
|
110
110
|
sqlmesh/core/snapshot/execution_tracker.py,sha256=Ss1oYgH28Fy1mQ4HriX-luE9MG0eLdecrE1SssUveQI,3651
|
|
111
111
|
sqlmesh/core/state_sync/__init__.py,sha256=vcm3p_e0scP_ZxOs3XPKPG3uPsaxrK_4pnNj0QueDwQ,779
|
|
112
112
|
sqlmesh/core/state_sync/base.py,sha256=nK5tq5cIT5x5NrTaTurCRX18bSHnhSjEWG20tVqlkZc,19340
|
|
@@ -130,7 +130,7 @@ sqlmesh/core/test/runner.py,sha256=8I-cL7Q9CggLvET_GPkrXB2YjlyCIHrvbFbbRDnSHRE,6
|
|
|
130
130
|
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
|
-
sqlmesh/dbt/builtin.py,sha256=
|
|
133
|
+
sqlmesh/dbt/builtin.py,sha256=hJwLdVs3Qe_AFUIa0ZMnktblpdkGGaq20nFUJEf3B_I,19752
|
|
134
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
|
|
@@ -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.225.1.
|
|
241
|
+
sqlmesh-0.225.1.dev25.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.dev25.dist-info/METADATA,sha256=sn-14l8juyXRKJHsnGsdF6jaT2jfmSXZvHuVDHzQa8Q,26686
|
|
367
|
+
sqlmesh-0.225.1.dev25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
368
|
+
sqlmesh-0.225.1.dev25.dist-info/entry_points.txt,sha256=sHAf6tQczIM8xZoduN4qaUjV7QEPVUUW_LCT8EDUMv4,155
|
|
369
|
+
sqlmesh-0.225.1.dev25.dist-info/top_level.txt,sha256=RQ-33FPe2IgL0rgossAfJkCRtqslz9b7wFARqiWLC5Q,24
|
|
370
|
+
sqlmesh-0.225.1.dev25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|