sqlframe 3.1.0__py3-none-any.whl → 3.2.0__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.
- sqlframe/_version.py +2 -2
- sqlframe/base/group.py +1 -1
- sqlframe/duckdb/readwriter.py +3 -1
- {sqlframe-3.1.0.dist-info → sqlframe-3.2.0.dist-info}/METADATA +4 -4
- {sqlframe-3.1.0.dist-info → sqlframe-3.2.0.dist-info}/RECORD +8 -8
- {sqlframe-3.1.0.dist-info → sqlframe-3.2.0.dist-info}/LICENSE +0 -0
- {sqlframe-3.1.0.dist-info → sqlframe-3.2.0.dist-info}/WHEEL +0 -0
- {sqlframe-3.1.0.dist-info → sqlframe-3.2.0.dist-info}/top_level.txt +0 -0
sqlframe/_version.py
CHANGED
sqlframe/base/group.py
CHANGED
|
@@ -68,7 +68,7 @@ class _BaseGroupedData(t.Generic[DF]):
|
|
|
68
68
|
)
|
|
69
69
|
group_by_cols.extend(grouping_set) # type: ignore
|
|
70
70
|
group_by_cols = list(dict.fromkeys(group_by_cols))
|
|
71
|
-
group_by = exp.Group(grouping_sets=all_grouping_sets)
|
|
71
|
+
group_by = exp.Group(grouping_sets=[exp.GroupingSets(expressions=all_grouping_sets)])
|
|
72
72
|
expression.set("group", group_by)
|
|
73
73
|
for col in cols:
|
|
74
74
|
# Spark supports having an empty grouping_id which means all of the columns but other dialects
|
sqlframe/duckdb/readwriter.py
CHANGED
|
@@ -85,7 +85,9 @@ class DuckDBDataFrameReader(_BaseDataFrameReader["DuckDBSession", "DuckDBDataFra
|
|
|
85
85
|
options["columns"] = "{" + duckdb_columns + "}"
|
|
86
86
|
else:
|
|
87
87
|
select_columns = [exp.Star()]
|
|
88
|
-
if format:
|
|
88
|
+
if format == "delta":
|
|
89
|
+
from_clause = f"delta_scan('{path}')"
|
|
90
|
+
elif format:
|
|
89
91
|
paths = ",".join([f"'{path}'" for path in ensure_list(path)])
|
|
90
92
|
from_clause = f"read_{format}([{paths}], {to_csv(options)})"
|
|
91
93
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sqlframe
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Turning PySpark Into a Universal DataFrame API
|
|
5
5
|
Home-page: https://github.com/eakmanrq/sqlframe
|
|
6
6
|
Author: Ryan Eakman
|
|
@@ -18,7 +18,7 @@ Requires-Python: >=3.8
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: prettytable (<3.11.1)
|
|
21
|
-
Requires-Dist: sqlglot (<25.
|
|
21
|
+
Requires-Dist: sqlglot (<25.19,>=24.0.0)
|
|
22
22
|
Requires-Dist: typing-extensions (<5,>=4.8)
|
|
23
23
|
Provides-Extra: bigquery
|
|
24
24
|
Requires-Dist: google-cloud-bigquery-storage (<3,>=2) ; extra == 'bigquery'
|
|
@@ -27,7 +27,7 @@ Provides-Extra: dev
|
|
|
27
27
|
Requires-Dist: duckdb (<1.1,>=0.9) ; extra == 'dev'
|
|
28
28
|
Requires-Dist: findspark (<3,>=2) ; extra == 'dev'
|
|
29
29
|
Requires-Dist: mypy (<1.12,>=1.10.0) ; extra == 'dev'
|
|
30
|
-
Requires-Dist: openai (<1.
|
|
30
|
+
Requires-Dist: openai (<1.44,>=1.30) ; extra == 'dev'
|
|
31
31
|
Requires-Dist: pandas-stubs (<3,>=2) ; extra == 'dev'
|
|
32
32
|
Requires-Dist: pandas (<3,>=2) ; extra == 'dev'
|
|
33
33
|
Requires-Dist: psycopg (<4,>=3.1) ; extra == 'dev'
|
|
@@ -50,7 +50,7 @@ Provides-Extra: duckdb
|
|
|
50
50
|
Requires-Dist: duckdb (<1.1,>=0.9) ; extra == 'duckdb'
|
|
51
51
|
Requires-Dist: pandas (<3,>=2) ; extra == 'duckdb'
|
|
52
52
|
Provides-Extra: openai
|
|
53
|
-
Requires-Dist: openai (<1.
|
|
53
|
+
Requires-Dist: openai (<1.44,>=1.30) ; extra == 'openai'
|
|
54
54
|
Provides-Extra: pandas
|
|
55
55
|
Requires-Dist: pandas (<3,>=2) ; extra == 'pandas'
|
|
56
56
|
Provides-Extra: postgres
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlframe/__init__.py,sha256=E3qCJ4PSEgKz6Hg3ves6LWt3JrQOV8c9HVLSIUOzKNc,3106
|
|
2
|
-
sqlframe/_version.py,sha256=
|
|
2
|
+
sqlframe/_version.py,sha256=h7Mhoil_jhKLMf7jtmaacYtrq1Z2IqB7uz4QBaHSlmw,411
|
|
3
3
|
sqlframe/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
sqlframe/base/_typing.py,sha256=b2clI5HI1zEZKB_3Msx3FeAJQyft44ubUifJwQRVXyQ,1298
|
|
5
5
|
sqlframe/base/catalog.py,sha256=SzFQalTWdhWzxUY-4ut1f9TfOECp_JmJEgNPfrRKCe0,38457
|
|
@@ -9,7 +9,7 @@ sqlframe/base/decorators.py,sha256=Jy4bf8MhZ-AJ6CWTj59bBJRqamtLbPC0USUMFrY6g0w,4
|
|
|
9
9
|
sqlframe/base/exceptions.py,sha256=9Uwvqn2eAkDpqm4BrRgbL61qM-GMCbJEMAW8otxO46s,370
|
|
10
10
|
sqlframe/base/function_alternatives.py,sha256=IxNBqplehkAEkpzA625Dif-9Xyi4Hrho81A9U262rV0,50714
|
|
11
11
|
sqlframe/base/functions.py,sha256=2dDfPepAuQvLcxwaZbj9qJeEeiqOaYJDI3vPoZXoM1Q,189959
|
|
12
|
-
sqlframe/base/group.py,sha256=
|
|
12
|
+
sqlframe/base/group.py,sha256=fsyG5990_Pd7gFPjTFrH9IEoAquL_wEkVpIlBAIkZJU,4091
|
|
13
13
|
sqlframe/base/normalize.py,sha256=nXAJ5CwxVf4DV0GsH-q1w0p8gmjSMlv96k_ez1eVul8,3880
|
|
14
14
|
sqlframe/base/operations.py,sha256=-AhNuEzcV7ZExoP1oY3blaKip-joQyJeQVvfBTs_2g4,3456
|
|
15
15
|
sqlframe/base/readerwriter.py,sha256=FkImnUR_qNASmXktk0JDsFeOzfh799hd09vI2uznNH8,25350
|
|
@@ -42,7 +42,7 @@ sqlframe/duckdb/dataframe.py,sha256=HZg_uMAz4RsubZJT4-MslUQS_0-InF0_P5Yq5HyJ3wE,
|
|
|
42
42
|
sqlframe/duckdb/functions.py,sha256=Ee8o6YFtRdEiq0jNLXxgu5lcbc7Tsg0-lK6oRyxdcjo,1920
|
|
43
43
|
sqlframe/duckdb/functions.pyi,sha256=Qn6j4zwwuBsh6q9341dR3Z5kpeRsgvM4u6Bb6FekKrI,5827
|
|
44
44
|
sqlframe/duckdb/group.py,sha256=IkhbW42Ng1U5YT3FkIdiB4zBqRkW4QyTb-1detY1e_4,383
|
|
45
|
-
sqlframe/duckdb/readwriter.py,sha256=
|
|
45
|
+
sqlframe/duckdb/readwriter.py,sha256=jcb3WJClTtdQEJPKmVfNZ2lOR1h_2jTB0OgdMFp4POw,4679
|
|
46
46
|
sqlframe/duckdb/session.py,sha256=Pho9H74_0xNQPP_oBdFa4aflBAsrxvpXPMQGSKyq1-4,2322
|
|
47
47
|
sqlframe/duckdb/types.py,sha256=KwNyuXIo-2xVVd4bZED3YrQOobKCtemlxGrJL7DrTC8,34
|
|
48
48
|
sqlframe/duckdb/udf.py,sha256=Du9LnOtT1lJvB90D4HSR2tB7MXy179jZngDR-EjVjQk,656
|
|
@@ -107,8 +107,8 @@ sqlframe/standalone/udf.py,sha256=azmgtUjHNIPs0WMVNId05SHwiYn41MKVBhKXsQJ5dmY,27
|
|
|
107
107
|
sqlframe/standalone/window.py,sha256=6GKPzuxeSapJakBaKBeT9VpED1ACdjggDv9JRILDyV0,35
|
|
108
108
|
sqlframe/testing/__init__.py,sha256=VVCosQhitU74A3NnE52O4mNtGZONapuEXcc20QmSlnQ,132
|
|
109
109
|
sqlframe/testing/utils.py,sha256=9DDYVuocO7tygee3RaajuJNZ24sJwf_LY556kKg7kTw,13011
|
|
110
|
-
sqlframe-3.
|
|
111
|
-
sqlframe-3.
|
|
112
|
-
sqlframe-3.
|
|
113
|
-
sqlframe-3.
|
|
114
|
-
sqlframe-3.
|
|
110
|
+
sqlframe-3.2.0.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
|
|
111
|
+
sqlframe-3.2.0.dist-info/METADATA,sha256=Vy6QKjJpatavSw884IL6gUeeT0ZZDmHyEPQvJEdACpM,8639
|
|
112
|
+
sqlframe-3.2.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
113
|
+
sqlframe-3.2.0.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
|
|
114
|
+
sqlframe-3.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|