fakesnow 0.9.26__py3-none-any.whl → 0.9.27__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.py +3 -2
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/METADATA +6 -6
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/RECORD +7 -7
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/WHEEL +1 -1
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/LICENSE +0 -0
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/entry_points.txt +0 -0
- {fakesnow-0.9.26.dist-info → fakesnow-0.9.27.dist-info}/top_level.txt +0 -0
fakesnow/transforms.py
CHANGED
@@ -28,6 +28,8 @@ def alias_in_join(expression: exp.Expression) -> exp.Expression:
|
|
28
28
|
and (col := on.this)
|
29
29
|
and (isinstance(col, exp.Column))
|
30
30
|
and (alias := aliases.get(col.this))
|
31
|
+
# don't rewrite col with table identifier
|
32
|
+
and not col.table
|
31
33
|
):
|
32
34
|
col.args["this"] = alias.this
|
33
35
|
|
@@ -658,8 +660,7 @@ def integer_precision(expression: exp.Expression) -> exp.Expression:
|
|
658
660
|
if (
|
659
661
|
isinstance(expression, exp.DataType)
|
660
662
|
and (expression.this == exp.DataType.Type.DECIMAL and not expression.expressions)
|
661
|
-
|
662
|
-
):
|
663
|
+
) or expression.this in (exp.DataType.Type.INT, exp.DataType.Type.SMALLINT, exp.DataType.Type.TINYINT):
|
663
664
|
return exp.DataType(
|
664
665
|
this=exp.DataType.Type.BIGINT,
|
665
666
|
nested=False,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fakesnow
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.27
|
4
4
|
Summary: Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally.
|
5
|
-
License:
|
5
|
+
License: Apache License
|
6
6
|
Version 2.0, January 2004
|
7
7
|
http://www.apache.org/licenses/
|
8
8
|
|
@@ -213,7 +213,7 @@ License-File: LICENSE
|
|
213
213
|
Requires-Dist: duckdb~=1.1.3
|
214
214
|
Requires-Dist: pyarrow
|
215
215
|
Requires-Dist: snowflake-connector-python
|
216
|
-
Requires-Dist: sqlglot~=25.
|
216
|
+
Requires-Dist: sqlglot~=25.34.0
|
217
217
|
Provides-Extra: dev
|
218
218
|
Requires-Dist: build~=1.0; extra == "dev"
|
219
219
|
Requires-Dist: dirty-equals; extra == "dev"
|
@@ -223,9 +223,9 @@ Requires-Dist: pre-commit~=4.0; extra == "dev"
|
|
223
223
|
Requires-Dist: pyarrow-stubs==10.0.1.9; extra == "dev"
|
224
224
|
Requires-Dist: pytest~=8.0; extra == "dev"
|
225
225
|
Requires-Dist: pytest-asyncio; extra == "dev"
|
226
|
-
Requires-Dist: ruff~=0.
|
227
|
-
Requires-Dist: twine~=
|
228
|
-
Requires-Dist: snowflake-sqlalchemy~=1.
|
226
|
+
Requires-Dist: ruff~=0.8.1; extra == "dev"
|
227
|
+
Requires-Dist: twine~=6.0; extra == "dev"
|
228
|
+
Requires-Dist: snowflake-sqlalchemy~=1.7.0; extra == "dev"
|
229
229
|
Provides-Extra: notebook
|
230
230
|
Requires-Dist: duckdb-engine; extra == "notebook"
|
231
231
|
Requires-Dist: ipykernel; extra == "notebook"
|
@@ -14,13 +14,13 @@ fakesnow/macros.py,sha256=pX1YJDnQOkFJSHYUjQ6ErEkYIKvFI6Ncz_au0vv1csA,265
|
|
14
14
|
fakesnow/pandas_tools.py,sha256=WjyjTV8QUCQQaCGboaEOvx2uo4BkknpWYjtLwkeCY6U,3468
|
15
15
|
fakesnow/py.typed,sha256=B-DLSjYBi7pkKjwxCSdpVj2J02wgfJr-E7B1wOUyxYU,80
|
16
16
|
fakesnow/server.py,sha256=SO5xKZ4rvySsuKDsoSPSCZcFuIX_K7d1XJYhRRJ-7Bk,4150
|
17
|
-
fakesnow/transforms.py,sha256=
|
17
|
+
fakesnow/transforms.py,sha256=h35WHWxhlXpfe03f3FCF64QVmiCLMdDZF7oZmaAOS60,55451
|
18
18
|
fakesnow/transforms_merge.py,sha256=7rq-UPjfFNRrFsqR8xx3otwP6-k4eslLVLhfuqSXq1A,8314
|
19
19
|
fakesnow/types.py,sha256=9Tt83Z7ctc9_v6SYyayXYz4MEI4RZo4zq_uqdj4g3Dk,2681
|
20
20
|
fakesnow/variables.py,sha256=WXyPnkeNwD08gy52yF66CVe2twiYC50tztNfgXV4q1k,3032
|
21
|
-
fakesnow-0.9.
|
22
|
-
fakesnow-0.9.
|
23
|
-
fakesnow-0.9.
|
24
|
-
fakesnow-0.9.
|
25
|
-
fakesnow-0.9.
|
26
|
-
fakesnow-0.9.
|
21
|
+
fakesnow-0.9.27.dist-info/LICENSE,sha256=kW-7NWIyaRMQiDpryfSmF2DObDZHGR1cJZ39s6B1Svg,11344
|
22
|
+
fakesnow-0.9.27.dist-info/METADATA,sha256=k7PwECuxM55u-Dx_WyieDaH1p2BrHlcmu9INMsxGtzQ,18108
|
23
|
+
fakesnow-0.9.27.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
24
|
+
fakesnow-0.9.27.dist-info/entry_points.txt,sha256=2riAUgu928ZIHawtO8EsfrMEJhi-EH-z_Vq7Q44xKPM,47
|
25
|
+
fakesnow-0.9.27.dist-info/top_level.txt,sha256=500evXI1IFX9so82cizGIEMHAb_dJNPaZvd2H9dcKTA,24
|
26
|
+
fakesnow-0.9.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|