sqlframe 3.43.2__py3-none-any.whl → 3.43.4__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 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.2'
32
- __version_tuple__ = version_tuple = (3, 43, 2)
31
+ __version__ = version = '3.43.4'
32
+ __version_tuple__ = version_tuple = (3, 43, 4)
33
33
 
34
- __commit_id__ = commit_id = 'gf6f09ead9'
34
+ __commit_id__ = commit_id = 'g4171ad4a5'
@@ -241,12 +241,12 @@ ceiling = ceil
241
241
 
242
242
  @meta()
243
243
  def cos(col: ColumnOrName) -> Column:
244
- return Column.invoke_anonymous_function(col, "COS")
244
+ return Column.invoke_expression_over_column(col, expression.Cos)
245
245
 
246
246
 
247
- @meta(unsupported_engines="duckdb")
247
+ @meta()
248
248
  def cosh(col: ColumnOrName) -> Column:
249
- return Column.invoke_anonymous_function(col, "COSH")
249
+ return Column.invoke_expression_over_column(col, expression.Cosh)
250
250
 
251
251
 
252
252
  @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.invoke_anonymous_function(col, "TAN")
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.invoke_anonymous_function(col, "DEGREES")
402
+ return Column.invoke_expression_over_column(col, expression.Degrees)
403
403
 
404
404
 
405
405
  toDegrees = degrees
@@ -4881,10 +4881,9 @@ def parse_url(
4881
4881
  >>> df.select(parse_url(df.a, df.b).alias('r')).collect()
4882
4882
  [Row(r='query=1')]
4883
4883
  """
4884
- if key is not None:
4885
- return Column.invoke_anonymous_function(url, "parse_url", partToExtract, key)
4886
- else:
4887
- return Column.invoke_anonymous_function(url, "parse_url", partToExtract)
4884
+ return Column.invoke_expression_over_column(
4885
+ url, expression.ParseUrl, part_to_extract=partToExtract, key=key
4886
+ )
4888
4887
 
4889
4888
 
4890
4889
  @meta(unsupported_engines="*")
@@ -5210,7 +5209,7 @@ def regexp(str: ColumnOrName, regexp: ColumnOrName) -> Column:
5210
5209
  return Column.invoke_anonymous_function(str, "regexp", regexp)
5211
5210
 
5212
5211
 
5213
- @meta(unsupported_engines="*")
5212
+ @meta(unsupported_engines=["bigquery", "duckdb"])
5214
5213
  def regexp_count(str: ColumnOrName, regexp: ColumnOrName) -> Column:
5215
5214
  r"""Returns a count of the number of times that the Java regex pattern `regexp` is matched
5216
5215
  in the string `str`.
@@ -5239,7 +5238,7 @@ def regexp_count(str: ColumnOrName, regexp: ColumnOrName) -> Column:
5239
5238
  >>> df.select(regexp_count("str", col("regexp")).alias('d')).collect()
5240
5239
  [Row(d=3)]
5241
5240
  """
5242
- return Column.invoke_anonymous_function(str, "regexp_count", regexp)
5241
+ return Column.invoke_expression_over_column(str, expression.RegexpCount, expression=regexp)
5243
5242
 
5244
5243
 
5245
5244
  @meta(unsupported_engines=["bigquery", "postgres"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sqlframe
3
- Version: 3.43.2
3
+ Version: 3.43.4
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.18,>=24.0.0
21
+ Requires-Dist: sqlglot <27.22,>=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 <2,>=1.30 ; extra == 'dev'
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.14,>=0.4.4 ; extra == 'dev'
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 <2,>=1.30 ; extra == '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.18,>=3.10.0 ; extra == 'snowflake'
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=knS0nTLrJHzmkAlJL2R2It95jMGAeQSdYXwXqtFA5lE,714
2
+ sqlframe/_version.py,sha256=ot-fBuBqn3spFTM764-RGomHmypONiAb8OX3-LO_U2s,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=6b1v8-CvYoHEOK_8kJMibk9TrGwQJkSVO0i_pXL5m7s,229614
12
+ sqlframe/base/functions.py,sha256=cEYHd1vCdQxoyDX8FY-_-nOylTTEwsHQMMI6PeUTG60,229607
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
@@ -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.2.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
134
- sqlframe-3.43.2.dist-info/METADATA,sha256=ctg26s2x6TsSTpQLS28UcHYuSvPbRbT6EBEav0L9zuw,9070
135
- sqlframe-3.43.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
136
- sqlframe-3.43.2.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
137
- sqlframe-3.43.2.dist-info/RECORD,,
133
+ sqlframe-3.43.4.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
134
+ sqlframe-3.43.4.dist-info/METADATA,sha256=FpN68NZ7GLdIpdAvxHSpEBp154HGAtisH8PL9wPVl8U,9070
135
+ sqlframe-3.43.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
136
+ sqlframe-3.43.4.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
137
+ sqlframe-3.43.4.dist-info/RECORD,,