sqlframe 3.39.1__py3-none-any.whl → 3.39.2__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 -4
- {sqlframe-3.39.1.dist-info → sqlframe-3.39.2.dist-info}/METADATA +2 -2
- {sqlframe-3.39.1.dist-info → sqlframe-3.39.2.dist-info}/RECORD +7 -7
- {sqlframe-3.39.1.dist-info → sqlframe-3.39.2.dist-info}/LICENSE +0 -0
- {sqlframe-3.39.1.dist-info → sqlframe-3.39.2.dist-info}/WHEEL +0 -0
- {sqlframe-3.39.1.dist-info → sqlframe-3.39.2.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.39.
|
32
|
-
__version_tuple__ = version_tuple = (3, 39,
|
31
|
+
__version__ = version = '3.39.2'
|
32
|
+
__version_tuple__ = version_tuple = (3, 39, 2)
|
33
33
|
|
34
|
-
__commit_id__ = commit_id = '
|
34
|
+
__commit_id__ = commit_id = 'g772b3a6bf'
|
sqlframe/base/functions.py
CHANGED
@@ -1984,7 +1984,7 @@ def initcap(col: ColumnOrName) -> Column:
|
|
1984
1984
|
|
1985
1985
|
@meta()
|
1986
1986
|
def soundex(col: ColumnOrName) -> Column:
|
1987
|
-
return Column.
|
1987
|
+
return Column.invoke_expression_over_column(col, expression.Soundex)
|
1988
1988
|
|
1989
1989
|
|
1990
1990
|
@meta(unsupported_engines=["postgres", "snowflake"])
|
@@ -2053,7 +2053,11 @@ def bit_length(col: ColumnOrName) -> Column:
|
|
2053
2053
|
|
2054
2054
|
@meta()
|
2055
2055
|
def translate(srcCol: ColumnOrName, matching: str, replace: str) -> Column:
|
2056
|
-
return Column.
|
2056
|
+
return Column.invoke_expression_over_column(
|
2057
|
+
srcCol,
|
2058
|
+
expression.Translate,
|
2059
|
+
**{"from": lit(matching).column_expression, "to": lit(replace).column_expression},
|
2060
|
+
)
|
2057
2061
|
|
2058
2062
|
|
2059
2063
|
@meta()
|
@@ -3380,7 +3384,7 @@ def get_active_spark_context() -> SparkContext:
|
|
3380
3384
|
return session.spark_session.sparkContext
|
3381
3385
|
|
3382
3386
|
|
3383
|
-
@meta(
|
3387
|
+
@meta()
|
3384
3388
|
def grouping(col: ColumnOrName) -> Column:
|
3385
3389
|
"""
|
3386
3390
|
Aggregate function: indicates whether a specified column in a GROUP BY list is aggregated
|
@@ -3413,7 +3417,7 @@ def grouping(col: ColumnOrName) -> Column:
|
|
3413
3417
|
| Bob| 0| 5|
|
3414
3418
|
+-----+--------------+--------+
|
3415
3419
|
"""
|
3416
|
-
return Column.
|
3420
|
+
return Column(expression.Grouping(expressions=[Column.ensure_col(col).column_expression]))
|
3417
3421
|
|
3418
3422
|
|
3419
3423
|
@meta(unsupported_engines="*")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sqlframe
|
3
|
-
Version: 3.39.
|
3
|
+
Version: 3.39.2
|
4
4
|
Summary: Turning PySpark Into a Universal DataFrame API
|
5
5
|
Home-page: https://github.com/eakmanrq/sqlframe
|
6
6
|
Author: Ryan Eakman
|
@@ -17,7 +17,7 @@ Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
License-File: LICENSE
|
19
19
|
Requires-Dist: prettytable <4
|
20
|
-
Requires-Dist: sqlglot <27.
|
20
|
+
Requires-Dist: sqlglot <27.9,>=24.0.0
|
21
21
|
Requires-Dist: typing-extensions
|
22
22
|
Provides-Extra: bigquery
|
23
23
|
Requires-Dist: google-cloud-bigquery-storage <3,>=2 ; extra == 'bigquery'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
sqlframe/__init__.py,sha256=SB80yLTITBXHI2GCDS6n6bN5ObHqgPjfpRPAUwxaots,3403
|
2
|
-
sqlframe/_version.py,sha256=
|
2
|
+
sqlframe/_version.py,sha256=2ZMyDPGKBrqT_KjBcZ7ni5_lsj0fVr5EDt184buBf6w,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=0diYONDlet8iZt49LC3vcmfXHAAZ2MovPL2pTXYHj2U,85
|
|
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=9hW5aYke5EFU4C7Epx-TlyG2ZxjYnFGskv4LwHiQ2dw,227752
|
13
13
|
sqlframe/base/group.py,sha256=fBm8EUve7W7xz11nybTXr09ih-yZxL_vvEiZVE1eb_0,12025
|
14
14
|
sqlframe/base/normalize.py,sha256=nXAJ5CwxVf4DV0GsH-q1w0p8gmjSMlv96k_ez1eVul8,3880
|
15
15
|
sqlframe/base/operations.py,sha256=g-YNcbvNKTOBbYm23GKfB3fmydlR7ZZDAuZUtXIHtzw,4438
|
@@ -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.39.
|
134
|
-
sqlframe-3.39.
|
135
|
-
sqlframe-3.39.
|
136
|
-
sqlframe-3.39.
|
137
|
-
sqlframe-3.39.
|
133
|
+
sqlframe-3.39.2.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
|
134
|
+
sqlframe-3.39.2.dist-info/METADATA,sha256=M0k0V_XPUzeL9-tCwZWKMMv9DVhVstFonKVOWRc7wRk,9039
|
135
|
+
sqlframe-3.39.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
136
|
+
sqlframe-3.39.2.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
|
137
|
+
sqlframe-3.39.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|