sqlframe 3.7.0__py3-none-any.whl → 3.8.1__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/function_alternatives.py +1 -1
- sqlframe/base/functions.py +11 -11
- {sqlframe-3.7.0.dist-info → sqlframe-3.8.1.dist-info}/METADATA +4 -4
- {sqlframe-3.7.0.dist-info → sqlframe-3.8.1.dist-info}/RECORD +8 -8
- {sqlframe-3.7.0.dist-info → sqlframe-3.8.1.dist-info}/LICENSE +0 -0
- {sqlframe-3.7.0.dist-info → sqlframe-3.8.1.dist-info}/WHEEL +0 -0
- {sqlframe-3.7.0.dist-info → sqlframe-3.8.1.dist-info}/top_level.txt +0 -0
sqlframe/_version.py
CHANGED
|
@@ -1593,7 +1593,7 @@ def try_to_timestamp_pgtemp(col: ColumnOrName, format: t.Optional[ColumnOrName]
|
|
|
1593
1593
|
def typeof_pg_typeof(col: ColumnOrName) -> Column:
|
|
1594
1594
|
return (
|
|
1595
1595
|
Column.invoke_anonymous_function(col, "pg_typeof")
|
|
1596
|
-
.cast(expression.DataType.
|
|
1596
|
+
.cast(expression.DataType(this=expression.DataType.Type.USERDEFINED, kind="regtype"))
|
|
1597
1597
|
.cast("text")
|
|
1598
1598
|
)
|
|
1599
1599
|
|
sqlframe/base/functions.py
CHANGED
|
@@ -2069,9 +2069,11 @@ def character_length(str: ColumnOrName) -> Column:
|
|
|
2069
2069
|
return Column.invoke_anonymous_function(str, "character_length")
|
|
2070
2070
|
|
|
2071
2071
|
|
|
2072
|
-
@meta()
|
|
2072
|
+
@meta(unsupported_engines=["bigquery", "postgres"])
|
|
2073
2073
|
def contains(left: ColumnOrName, right: ColumnOrName) -> Column:
|
|
2074
|
-
return Column.
|
|
2074
|
+
return Column.invoke_expression_over_column(
|
|
2075
|
+
left, expression.Contains, expression=Column.ensure_col(right).expression
|
|
2076
|
+
)
|
|
2075
2077
|
|
|
2076
2078
|
|
|
2077
2079
|
@meta(unsupported_engines=["bigquery", "postgres"])
|
|
@@ -3484,7 +3486,7 @@ def mask(
|
|
|
3484
3486
|
)
|
|
3485
3487
|
|
|
3486
3488
|
|
|
3487
|
-
@meta(unsupported_engines="
|
|
3489
|
+
@meta(unsupported_engines=["bigquery"])
|
|
3488
3490
|
def median(col: ColumnOrName) -> Column:
|
|
3489
3491
|
"""
|
|
3490
3492
|
Returns the median of the values in a group.
|
|
@@ -3520,7 +3522,7 @@ def median(col: ColumnOrName) -> Column:
|
|
|
3520
3522
|
|dotNET| 10000.0|
|
|
3521
3523
|
+------+----------------+
|
|
3522
3524
|
"""
|
|
3523
|
-
return Column.
|
|
3525
|
+
return Column.invoke_expression_over_column(col, expression.Median)
|
|
3524
3526
|
|
|
3525
3527
|
|
|
3526
3528
|
@meta(unsupported_engines="*")
|
|
@@ -4106,11 +4108,9 @@ def regexp_extract_all(
|
|
|
4106
4108
|
>>> df.select(regexp_extract_all('str', col("regexp")).alias('d')).collect()
|
|
4107
4109
|
[Row(d=['100', '300'])]
|
|
4108
4110
|
"""
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
idx = lit(idx) if isinstance(idx, int) else idx
|
|
4113
|
-
return Column.invoke_anonymous_function(str, "regexp_extract_all", regexp, idx)
|
|
4111
|
+
return Column.invoke_expression_over_column(
|
|
4112
|
+
str, expression.RegexpExtractAll, expression=regexp, group=idx
|
|
4113
|
+
)
|
|
4114
4114
|
|
|
4115
4115
|
|
|
4116
4116
|
@meta(unsupported_engines="*")
|
|
@@ -5426,7 +5426,7 @@ def unix_millis(col: ColumnOrName) -> Column:
|
|
|
5426
5426
|
return Column.invoke_anonymous_function(col, "unix_millis")
|
|
5427
5427
|
|
|
5428
5428
|
|
|
5429
|
-
@meta(unsupported_engines="
|
|
5429
|
+
@meta(unsupported_engines=["bigquery", "duckdb", "postgres"])
|
|
5430
5430
|
def unix_seconds(col: ColumnOrName) -> Column:
|
|
5431
5431
|
"""Returns the number of seconds since 1970-01-01 00:00:00 UTC.
|
|
5432
5432
|
Truncates higher levels of precision.
|
|
@@ -5441,7 +5441,7 @@ def unix_seconds(col: ColumnOrName) -> Column:
|
|
|
5441
5441
|
[Row(n=1437584400)]
|
|
5442
5442
|
>>> spark.conf.unset("spark.sql.session.timeZone")
|
|
5443
5443
|
"""
|
|
5444
|
-
return Column.
|
|
5444
|
+
return Column.invoke_expression_over_column(col, expression.UnixSeconds)
|
|
5445
5445
|
|
|
5446
5446
|
|
|
5447
5447
|
@meta(unsupported_engines="*")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sqlframe
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.8.1
|
|
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.12.1)
|
|
21
|
-
Requires-Dist: sqlglot (<25.
|
|
21
|
+
Requires-Dist: sqlglot (<25.32,>=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.2,>=0.9) ; extra == 'dev'
|
|
28
28
|
Requires-Dist: findspark (<3,>=2) ; extra == 'dev'
|
|
29
29
|
Requires-Dist: mypy (<1.14,>=1.10.0) ; extra == 'dev'
|
|
30
|
-
Requires-Dist: openai (<1.
|
|
30
|
+
Requires-Dist: openai (<1.55,>=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.2,>=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.55,>=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=ce1jAZfLwlPsibRyZCkLjWo4Lx-qlUwQSxw7odcP8O0,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
|
|
@@ -7,8 +7,8 @@ sqlframe/base/column.py,sha256=06fhVZ2nCn2QLxnfjdK-oYKeTFJC_smgSxu7u2UYlVg,17878
|
|
|
7
7
|
sqlframe/base/dataframe.py,sha256=coeUwntwYbT1g6YKVwk3ZfWMfJqAzd1ECYabBSsNsV0,72892
|
|
8
8
|
sqlframe/base/decorators.py,sha256=Jy4bf8MhZ-AJ6CWTj59bBJRqamtLbPC0USUMFrY6g0w,449
|
|
9
9
|
sqlframe/base/exceptions.py,sha256=9Uwvqn2eAkDpqm4BrRgbL61qM-GMCbJEMAW8otxO46s,370
|
|
10
|
-
sqlframe/base/function_alternatives.py,sha256=
|
|
11
|
-
sqlframe/base/functions.py,sha256=
|
|
10
|
+
sqlframe/base/function_alternatives.py,sha256=jofb2-nweefqcjUsd4xVqfRmJSZ-T_0Iq5roW2pL0OA,50768
|
|
11
|
+
sqlframe/base/functions.py,sha256=0pfNPCgFs7qKopkM9Q-E_BxCGJHUqlk3YqIzKg4jdQ4,190024
|
|
12
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
|
|
@@ -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.8.1.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
|
|
111
|
+
sqlframe-3.8.1.dist-info/METADATA,sha256=1c9kLNa0vtdvTPvJ5p1RJa7r8SLitulY9YhUBpddfiI,8639
|
|
112
|
+
sqlframe-3.8.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
113
|
+
sqlframe-3.8.1.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
|
|
114
|
+
sqlframe-3.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|