sqlframe 3.43.3__py3-none-any.whl → 3.43.5__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 +3 -3
- sqlframe/base/functions.py +8 -8
- sqlframe/duckdb/session.py +6 -5
- {sqlframe-3.43.3.dist-info → sqlframe-3.43.5.dist-info}/METADATA +6 -6
- {sqlframe-3.43.3.dist-info → sqlframe-3.43.5.dist-info}/RECORD +8 -8
- {sqlframe-3.43.3.dist-info → sqlframe-3.43.5.dist-info}/LICENSE +0 -0
- {sqlframe-3.43.3.dist-info → sqlframe-3.43.5.dist-info}/WHEEL +0 -0
- {sqlframe-3.43.3.dist-info → sqlframe-3.43.5.dist-info}/top_level.txt +0 -0
sqlframe/_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 = '3.43.
|
32
|
-
__version_tuple__ = version_tuple = (3, 43,
|
31
|
+
__version__ = version = '3.43.5'
|
32
|
+
__version_tuple__ = version_tuple = (3, 43, 5)
|
33
33
|
|
34
|
-
__commit_id__ = commit_id = '
|
34
|
+
__commit_id__ = commit_id = 'ge9449259f'
|
sqlframe/base/functions.py
CHANGED
@@ -241,12 +241,12 @@ ceiling = ceil
|
|
241
241
|
|
242
242
|
@meta()
|
243
243
|
def cos(col: ColumnOrName) -> Column:
|
244
|
-
return Column.
|
244
|
+
return Column.invoke_expression_over_column(col, expression.Cos)
|
245
245
|
|
246
246
|
|
247
|
-
@meta(
|
247
|
+
@meta()
|
248
248
|
def cosh(col: ColumnOrName) -> Column:
|
249
|
-
return Column.
|
249
|
+
return Column.invoke_expression_over_column(col, expression.Cosh)
|
250
250
|
|
251
251
|
|
252
252
|
@meta()
|
@@ -309,7 +309,7 @@ def factorial(col: ColumnOrName) -> Column:
|
|
309
309
|
if session._is_bigquery:
|
310
310
|
return factorial_from_case_statement(col)
|
311
311
|
|
312
|
-
return Column.
|
312
|
+
return Column.invoke_expression_over_column(col, expression.Factorial)
|
313
313
|
|
314
314
|
|
315
315
|
@meta()
|
@@ -382,7 +382,7 @@ def sinh(col: ColumnOrName) -> Column:
|
|
382
382
|
|
383
383
|
@meta()
|
384
384
|
def tan(col: ColumnOrName) -> Column:
|
385
|
-
return Column.
|
385
|
+
return Column.invoke_expression_over_column(col, expression.Tan)
|
386
386
|
|
387
387
|
|
388
388
|
@meta(unsupported_engines="duckdb")
|
@@ -399,7 +399,7 @@ def degrees(col: ColumnOrName) -> Column:
|
|
399
399
|
if session._is_bigquery:
|
400
400
|
return degrees_bgutil(col)
|
401
401
|
|
402
|
-
return Column.
|
402
|
+
return Column.invoke_expression_over_column(col, expression.Degrees)
|
403
403
|
|
404
404
|
|
405
405
|
toDegrees = degrees
|
@@ -5209,7 +5209,7 @@ def regexp(str: ColumnOrName, regexp: ColumnOrName) -> Column:
|
|
5209
5209
|
return Column.invoke_anonymous_function(str, "regexp", regexp)
|
5210
5210
|
|
5211
5211
|
|
5212
|
-
@meta(unsupported_engines="
|
5212
|
+
@meta(unsupported_engines=["bigquery", "duckdb"])
|
5213
5213
|
def regexp_count(str: ColumnOrName, regexp: ColumnOrName) -> Column:
|
5214
5214
|
r"""Returns a count of the number of times that the Java regex pattern `regexp` is matched
|
5215
5215
|
in the string `str`.
|
@@ -5238,7 +5238,7 @@ def regexp_count(str: ColumnOrName, regexp: ColumnOrName) -> Column:
|
|
5238
5238
|
>>> df.select(regexp_count("str", col("regexp")).alias('d')).collect()
|
5239
5239
|
[Row(d=3)]
|
5240
5240
|
"""
|
5241
|
-
return Column.
|
5241
|
+
return Column.invoke_expression_over_column(str, expression.RegexpCount, expression=regexp)
|
5242
5242
|
|
5243
5243
|
|
5244
5244
|
@meta(unsupported_engines=["bigquery", "postgres"])
|
sqlframe/duckdb/session.py
CHANGED
@@ -7,10 +7,7 @@ from sqlframe.base.session import _BaseSession
|
|
7
7
|
from sqlframe.base.util import soundex
|
8
8
|
from sqlframe.duckdb.catalog import DuckDBCatalog
|
9
9
|
from sqlframe.duckdb.dataframe import DuckDBDataFrame
|
10
|
-
from sqlframe.duckdb.readwriter import
|
11
|
-
DuckDBDataFrameReader,
|
12
|
-
DuckDBDataFrameWriter,
|
13
|
-
)
|
10
|
+
from sqlframe.duckdb.readwriter import DuckDBDataFrameReader, DuckDBDataFrameWriter
|
14
11
|
from sqlframe.duckdb.table import DuckDBTable
|
15
12
|
from sqlframe.duckdb.udf import DuckDBUDFRegistration
|
16
13
|
|
@@ -42,7 +39,11 @@ class DuckDBSession(
|
|
42
39
|
def __init__(self, conn: t.Optional[DuckDBPyConnection] = None, *args, **kwargs):
|
43
40
|
import duckdb
|
44
41
|
from duckdb import InvalidInputException
|
45
|
-
|
42
|
+
|
43
|
+
try: # Available from duckdb 1.4.1
|
44
|
+
from duckdb.sqltypes import VARCHAR
|
45
|
+
except ImportError:
|
46
|
+
from duckdb.typing import VARCHAR
|
46
47
|
|
47
48
|
if not hasattr(self, "_conn"):
|
48
49
|
conn = conn or duckdb.connect()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sqlframe
|
3
|
-
Version: 3.43.
|
3
|
+
Version: 3.43.5
|
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 @@ Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
19
19
|
Requires-Dist: more-itertools
|
20
20
|
Requires-Dist: prettytable <4
|
21
|
-
Requires-Dist: sqlglot <27.
|
21
|
+
Requires-Dist: sqlglot <27.26,>=24.0.0
|
22
22
|
Requires-Dist: typing-extensions
|
23
23
|
Provides-Extra: bigquery
|
24
24
|
Requires-Dist: google-cloud-bigquery-storage <3,>=2 ; extra == 'bigquery'
|
@@ -29,7 +29,7 @@ Provides-Extra: dev
|
|
29
29
|
Requires-Dist: duckdb <1.5,>=1.2 ; extra == 'dev'
|
30
30
|
Requires-Dist: findspark <3,>=2 ; extra == 'dev'
|
31
31
|
Requires-Dist: mypy <1.19,>=1.10.0 ; extra == 'dev'
|
32
|
-
Requires-Dist: openai <
|
32
|
+
Requires-Dist: openai <3,>=1.30 ; extra == 'dev'
|
33
33
|
Requires-Dist: pandas-stubs <3,>=2 ; extra == 'dev'
|
34
34
|
Requires-Dist: pandas <3,>=2 ; extra == 'dev'
|
35
35
|
Requires-Dist: pre-commit <5,>=3.7 ; extra == 'dev'
|
@@ -41,7 +41,7 @@ Requires-Dist: pytest-postgresql <8,>=6 ; extra == 'dev'
|
|
41
41
|
Requires-Dist: pytest-rerunfailures ; extra == 'dev'
|
42
42
|
Requires-Dist: pytest-xdist <3.9,>=3.6 ; extra == 'dev'
|
43
43
|
Requires-Dist: pytest <8.5,>=8.2.0 ; extra == 'dev'
|
44
|
-
Requires-Dist: ruff <0.
|
44
|
+
Requires-Dist: ruff <0.15,>=0.4.4 ; extra == 'dev'
|
45
45
|
Requires-Dist: types-psycopg2 <3,>=2.9 ; extra == 'dev'
|
46
46
|
Provides-Extra: docs
|
47
47
|
Requires-Dist: mkdocs-include-markdown-plugin ==6.0.6 ; extra == 'docs'
|
@@ -53,7 +53,7 @@ Provides-Extra: duckdb
|
|
53
53
|
Requires-Dist: duckdb <1.5,>=1.2 ; extra == 'duckdb'
|
54
54
|
Requires-Dist: pandas <3,>=2 ; extra == 'duckdb'
|
55
55
|
Provides-Extra: openai
|
56
|
-
Requires-Dist: openai <
|
56
|
+
Requires-Dist: openai <3,>=1.30 ; extra == 'openai'
|
57
57
|
Provides-Extra: pandas
|
58
58
|
Requires-Dist: pandas <3,>=2 ; extra == 'pandas'
|
59
59
|
Provides-Extra: postgres
|
@@ -61,7 +61,7 @@ Requires-Dist: psycopg2 <3,>=2.8 ; extra == 'postgres'
|
|
61
61
|
Provides-Extra: redshift
|
62
62
|
Requires-Dist: redshift-connector <2.2.0,>=2.1.1 ; extra == 'redshift'
|
63
63
|
Provides-Extra: snowflake
|
64
|
-
Requires-Dist: snowflake-connector-python[secure-local-storage] <3.
|
64
|
+
Requires-Dist: snowflake-connector-python[secure-local-storage] <3.19,>=3.10.0 ; extra == 'snowflake'
|
65
65
|
Provides-Extra: spark
|
66
66
|
Requires-Dist: pyspark <3.6,>=2 ; extra == 'spark'
|
67
67
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
sqlframe/__init__.py,sha256=SB80yLTITBXHI2GCDS6n6bN5ObHqgPjfpRPAUwxaots,3403
|
2
|
-
sqlframe/_version.py,sha256=
|
2
|
+
sqlframe/_version.py,sha256=IvY9cEQS0mR8Z_blqYVt_qrlrvrqKlUu84D9RGXXjQI,714
|
3
3
|
sqlframe/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
4
4
|
sqlframe/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
sqlframe/base/_typing.py,sha256=b2clI5HI1zEZKB_3Msx3FeAJQyft44ubUifJwQRVXyQ,1298
|
@@ -9,7 +9,7 @@ sqlframe/base/dataframe.py,sha256=3vlZij84GUKpS23DZSrTRm0mi5SRFjZv_BSn4rAJ0IE,89
|
|
9
9
|
sqlframe/base/decorators.py,sha256=IhE5xNQDkwJHacCvulq5WpUKyKmXm7dL2A3o5WuKGP4,2131
|
10
10
|
sqlframe/base/exceptions.py,sha256=9Uwvqn2eAkDpqm4BrRgbL61qM-GMCbJEMAW8otxO46s,370
|
11
11
|
sqlframe/base/function_alternatives.py,sha256=aTu3nQhIAkZoxrI1IpjpaHEAMxBNms0AnhS0EMR-TwY,51727
|
12
|
-
sqlframe/base/functions.py,sha256=
|
12
|
+
sqlframe/base/functions.py,sha256=6w-uUadya_Tih20uNW21M-UMQ2iM7VPgvZwIT-yn6Zg,229620
|
13
13
|
sqlframe/base/group.py,sha256=fBm8EUve7W7xz11nybTXr09ih-yZxL_vvEiZVE1eb_0,12025
|
14
14
|
sqlframe/base/normalize.py,sha256=YPeopWr8ZRjevArYfrM-DZBkQp4t4UfAEwynoj4VvcU,11773
|
15
15
|
sqlframe/base/operations.py,sha256=g-YNcbvNKTOBbYm23GKfB3fmydlR7ZZDAuZUtXIHtzw,4438
|
@@ -60,7 +60,7 @@ sqlframe/duckdb/functions.py,sha256=ix2efGGD4HLaY1rtCtEd3IrsicGEVGiBAeKOo5OD8rA,
|
|
60
60
|
sqlframe/duckdb/functions.pyi,sha256=hDjpT-tGDO8LyElcno5YYRUnJg1dXXbGcRjJ69Zqk_U,12542
|
61
61
|
sqlframe/duckdb/group.py,sha256=IkhbW42Ng1U5YT3FkIdiB4zBqRkW4QyTb-1detY1e_4,383
|
62
62
|
sqlframe/duckdb/readwriter.py,sha256=IA2nLGBfUVAUrSO3DyYL3LWQz-5pfbjQ1fROnnfw_r4,5022
|
63
|
-
sqlframe/duckdb/session.py,sha256=
|
63
|
+
sqlframe/duckdb/session.py,sha256=fcv3Sg-eeyqYygmI9FxSQ6pUc7vCUKOLEImgi_mBKI0,2905
|
64
64
|
sqlframe/duckdb/table.py,sha256=AmEKoH2TZo98loS5NbNaTuqv0eg76SY_OckVBMmQ6Co,410
|
65
65
|
sqlframe/duckdb/types.py,sha256=KwNyuXIo-2xVVd4bZED3YrQOobKCtemlxGrJL7DrTC8,34
|
66
66
|
sqlframe/duckdb/udf.py,sha256=Du9LnOtT1lJvB90D4HSR2tB7MXy179jZngDR-EjVjQk,656
|
@@ -130,8 +130,8 @@ sqlframe/standalone/udf.py,sha256=azmgtUjHNIPs0WMVNId05SHwiYn41MKVBhKXsQJ5dmY,27
|
|
130
130
|
sqlframe/standalone/window.py,sha256=6GKPzuxeSapJakBaKBeT9VpED1ACdjggDv9JRILDyV0,35
|
131
131
|
sqlframe/testing/__init__.py,sha256=VVCosQhitU74A3NnE52O4mNtGZONapuEXcc20QmSlnQ,132
|
132
132
|
sqlframe/testing/utils.py,sha256=PFsGZpwNUE_4-g_f43_vstTqsK0AQ2lBneb5Eb6NkFo,13008
|
133
|
-
sqlframe-3.43.
|
134
|
-
sqlframe-3.43.
|
135
|
-
sqlframe-3.43.
|
136
|
-
sqlframe-3.43.
|
137
|
-
sqlframe-3.43.
|
133
|
+
sqlframe-3.43.5.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
|
134
|
+
sqlframe-3.43.5.dist-info/METADATA,sha256=30lHlixHE3YTNzzWqPsYLh00DzthRRTU3KbM96TE8Cc,9070
|
135
|
+
sqlframe-3.43.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
136
|
+
sqlframe-3.43.5.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
|
137
|
+
sqlframe-3.43.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|