fakesnow 0.9.40__py3-none-any.whl → 0.9.41__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.
- fakesnow/transforms/merge.py +3 -1
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/METADATA +1 -1
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/RECORD +7 -7
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/WHEEL +0 -0
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/entry_points.txt +0 -0
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/licenses/LICENSE +0 -0
- {fakesnow-0.9.40.dist-info → fakesnow-0.9.41.dist-info}/top_level.txt +0 -0
fakesnow/transforms/merge.py
CHANGED
@@ -78,7 +78,9 @@ def _create_merge_candidates(merge_expr: exp.Merge) -> exp.Expression:
|
|
78
78
|
insert_values = then.expression.expressions
|
79
79
|
values.update([str(c) for c in insert_values if isinstance(c, exp.Column)])
|
80
80
|
predicate = f"AND {condition}" if condition else ""
|
81
|
-
case_when_clauses.append(
|
81
|
+
case_when_clauses.append(
|
82
|
+
f"WHEN {target_tbl.alias or target_tbl.name}.rowid is NULL {predicate} THEN {w_idx}"
|
83
|
+
)
|
82
84
|
|
83
85
|
sql = f"""
|
84
86
|
CREATE OR REPLACE TEMPORARY TABLE merge_candidates AS
|
@@ -20,14 +20,14 @@ fakesnow/rowtype.py,sha256=QUp8EaXD5LT0Xv8BXk5ze4WseEn52xoJ6R05pJjs5mM,2729
|
|
20
20
|
fakesnow/server.py,sha256=PGNuYEpmI0L0ZrwBCP1pDTc_lnFrtfSnlZ6zyVuCTqk,7173
|
21
21
|
fakesnow/variables.py,sha256=BGnD4LAdVByfJ2GXL6qpGBaTF8ZJRjt3pdJsd9sIAcw,3134
|
22
22
|
fakesnow/transforms/__init__.py,sha256=OE-dunCuum8lv832s2cjEzThgBnpKELo5aaTXD_bMNg,2807
|
23
|
-
fakesnow/transforms/merge.py,sha256=
|
23
|
+
fakesnow/transforms/merge.py,sha256=H2yYyzGsxjpggS6PY91rAUtYCFuOkBm8uGi0EO0r6T0,8375
|
24
24
|
fakesnow/transforms/show.py,sha256=ejvs9S2l2Wcal4fhnNSVs3JkZwKsFxMEU35ufUV3-kg,20421
|
25
25
|
fakesnow/transforms/stage.py,sha256=FSIyI5kpthD_pdbVfzYCrby5HaikMZUpdRr6oBSrgk4,6176
|
26
26
|
fakesnow/transforms/transforms.py,sha256=t99pHmNm8aG89o738zVSXCG6a0dOXpnY1OqAz28EQHc,48072
|
27
|
-
fakesnow-0.9.
|
27
|
+
fakesnow-0.9.41.dist-info/licenses/LICENSE,sha256=kW-7NWIyaRMQiDpryfSmF2DObDZHGR1cJZ39s6B1Svg,11344
|
28
28
|
tools/decode.py,sha256=kC5kUvLQxdCkMRsnH6BqCajlKxKeN77w6rwCKsY6gqU,1781
|
29
|
-
fakesnow-0.9.
|
30
|
-
fakesnow-0.9.
|
31
|
-
fakesnow-0.9.
|
32
|
-
fakesnow-0.9.
|
33
|
-
fakesnow-0.9.
|
29
|
+
fakesnow-0.9.41.dist-info/METADATA,sha256=cOvEP3Mo_H0yn37XeRPozuvwY6OS7tqDnleGP8Vgplg,20680
|
30
|
+
fakesnow-0.9.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
31
|
+
fakesnow-0.9.41.dist-info/entry_points.txt,sha256=2riAUgu928ZIHawtO8EsfrMEJhi-EH-z_Vq7Q44xKPM,47
|
32
|
+
fakesnow-0.9.41.dist-info/top_level.txt,sha256=Yos7YveA3f03xVYuURqnBsfMV2DePXfu_yGcsj3pPzI,30
|
33
|
+
fakesnow-0.9.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|