fugue 0.9.3__py3-none-any.whl → 0.9.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.
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/METADATA +5 -4
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/RECORD +8 -8
- fugue_spark/_utils/misc.py +13 -4
- fugue_version/__init__.py +1 -1
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/WHEEL +0 -0
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/entry_points.txt +0 -0
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/licenses/LICENSE +0 -0
- {fugue-0.9.3.dist-info → fugue-0.9.5.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fugue
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: An abstraction layer for distributed computation
|
|
5
5
|
Home-page: http://github.com/fugue-project/fugue
|
|
6
6
|
Author: The Fugue Development Team
|
|
@@ -23,6 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: triad>=1.0.0
|
|
25
25
|
Requires-Dist: adagio>=0.2.6
|
|
26
|
+
Requires-Dist: pandas<3
|
|
26
27
|
Provides-Extra: sql
|
|
27
28
|
Requires-Dist: qpd>=0.4.4; extra == "sql"
|
|
28
29
|
Requires-Dist: fugue-sql-antlr>=0.2.0; extra == "sql"
|
|
@@ -32,6 +33,7 @@ Provides-Extra: cpp-sql-parser
|
|
|
32
33
|
Requires-Dist: fugue-sql-antlr[cpp]>=0.2.0; extra == "cpp-sql-parser"
|
|
33
34
|
Provides-Extra: spark
|
|
34
35
|
Requires-Dist: pyspark>=3.1.1; extra == "spark"
|
|
36
|
+
Requires-Dist: zstandard>=0.25.0; extra == "spark"
|
|
35
37
|
Provides-Extra: dask
|
|
36
38
|
Requires-Dist: dask[dataframe,distributed]>=2024.4.0; extra == "dask"
|
|
37
39
|
Requires-Dist: pyarrow>=7.0.0; extra == "dask"
|
|
@@ -40,7 +42,7 @@ Provides-Extra: ray
|
|
|
40
42
|
Requires-Dist: ray[data]>=2.30.0; extra == "ray"
|
|
41
43
|
Requires-Dist: duckdb>=0.5.0; extra == "ray"
|
|
42
44
|
Requires-Dist: pyarrow>=7.0.0; extra == "ray"
|
|
43
|
-
Requires-Dist: pandas
|
|
45
|
+
Requires-Dist: pandas; extra == "ray"
|
|
44
46
|
Provides-Extra: duckdb
|
|
45
47
|
Requires-Dist: qpd>=0.4.4; extra == "duckdb"
|
|
46
48
|
Requires-Dist: fugue-sql-antlr>=0.2.0; extra == "duckdb"
|
|
@@ -56,7 +58,6 @@ Requires-Dist: fugue-sql-antlr>=0.2.0; extra == "ibis"
|
|
|
56
58
|
Requires-Dist: sqlglot<28; extra == "ibis"
|
|
57
59
|
Requires-Dist: jinja2; extra == "ibis"
|
|
58
60
|
Requires-Dist: ibis-framework[pandas]; extra == "ibis"
|
|
59
|
-
Requires-Dist: pandas<2.2; extra == "ibis"
|
|
60
61
|
Provides-Extra: notebook
|
|
61
62
|
Requires-Dist: notebook; extra == "notebook"
|
|
62
63
|
Requires-Dist: jupyterlab; extra == "notebook"
|
|
@@ -75,7 +76,7 @@ Requires-Dist: jupyterlab; extra == "all"
|
|
|
75
76
|
Requires-Dist: ipython>=7.10.0; extra == "all"
|
|
76
77
|
Requires-Dist: duckdb>=0.5.0; extra == "all"
|
|
77
78
|
Requires-Dist: pyarrow>=6.0.1; extra == "all"
|
|
78
|
-
Requires-Dist: pandas
|
|
79
|
+
Requires-Dist: pandas>=2.0.2; extra == "all"
|
|
79
80
|
Requires-Dist: ibis-framework[duckdb,pandas]; extra == "all"
|
|
80
81
|
Requires-Dist: polars; extra == "all"
|
|
81
82
|
Dynamic: author
|
|
@@ -82,7 +82,7 @@ fugue/workflow/api.py,sha256=uQoxPSCZ91-ST4vwuPWG7qioRGW4eo-Sgi3DdwtSL4k,12495
|
|
|
82
82
|
fugue/workflow/input.py,sha256=V_zLDNzndmQuYJAPXtdK4n-vOp7LrimGIf_wQtwf2mc,321
|
|
83
83
|
fugue/workflow/module.py,sha256=ajyqgMwX6hFMZY9xp4Bp1Q-Zdta0p5f_W_n_SNrc4LE,5547
|
|
84
84
|
fugue/workflow/workflow.py,sha256=-SFCXkyxgXbS6DpQGSBox4d3Ws3psIlB6PnraJLSu9Y,88219
|
|
85
|
-
fugue-0.9.
|
|
85
|
+
fugue-0.9.5.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
86
86
|
fugue_contrib/__init__.py,sha256=QJioX-r2AiU7Pvt24M-k2c4vNq29qpK-3WNUde7ucck,222
|
|
87
87
|
fugue_contrib/contrib.py,sha256=3B--6oIVBMZ-GwjIOXwZqYqkloH7Cxfq1I8vkwl2yPk,267
|
|
88
88
|
fugue_contrib/seaborn/__init__.py,sha256=NuVv8EI4Om4gHcHwYO8ddextLQqw24vDj8qJio3E1MU,1405
|
|
@@ -139,7 +139,7 @@ fugue_spark/tester.py,sha256=VX003yGNlBukaZTQSN-w7XvgSk4rqxrWQIzno0dWrXg,2481
|
|
|
139
139
|
fugue_spark/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
140
140
|
fugue_spark/_utils/convert.py,sha256=J3HtbuzomTYTN6A11iuvsC1h2C7o3fQBW5U360xGDhE,10234
|
|
141
141
|
fugue_spark/_utils/io.py,sha256=OdUezKpB29Lx9aUS2k9x0xUAGZrmgMZyQYGPEeHk7rQ,5574
|
|
142
|
-
fugue_spark/_utils/misc.py,sha256=
|
|
142
|
+
fugue_spark/_utils/misc.py,sha256=yLZVsz09gxGxfUkAGdqWAtmjSWiF5IInQtlN8z7c8hY,1228
|
|
143
143
|
fugue_spark/_utils/partition.py,sha256=iaesyO5f4uXhj1W-p91cD5ecPiGlu0bzh8gl2ce2Uvg,3618
|
|
144
144
|
fugue_sql/__init__.py,sha256=Cmr7w0Efr7PzoXdQzdJfc4Dgqd69qKqcHZZodENq7EU,287
|
|
145
145
|
fugue_sql/exceptions.py,sha256=ltS0MC8gMnVVrJbQiOZ0kRUWvVQ2LTx33dCW3ugqtb0,260
|
|
@@ -149,9 +149,9 @@ fugue_test/builtin_suite.py,sha256=jP3xiq2vRZNNGzoSRjcUfrUk8NVg31SU0kpJaEvP25E,7
|
|
|
149
149
|
fugue_test/dataframe_suite.py,sha256=7ym4sshDUly6004cq1UlppqDVtbwxD6CKxR4Lu70i0s,18994
|
|
150
150
|
fugue_test/execution_suite.py,sha256=wUiGdb8wLRd13JXo7Lo19vPOLh7t1C-L2NPLeU0k-uE,48736
|
|
151
151
|
fugue_test/fixtures.py,sha256=8Pev-mxRZOWwTFlsGjcSZ0iIs78zyWbp5tq4KG1wyvk,1432
|
|
152
|
-
fugue_version/__init__.py,sha256=
|
|
153
|
-
fugue-0.9.
|
|
154
|
-
fugue-0.9.
|
|
155
|
-
fugue-0.9.
|
|
156
|
-
fugue-0.9.
|
|
157
|
-
fugue-0.9.
|
|
152
|
+
fugue_version/__init__.py,sha256=ORAtCCI2THBDcdzIbh6oBsoshDvkkmXUWpmO4Q5McAk,22
|
|
153
|
+
fugue-0.9.5.dist-info/METADATA,sha256=zWWQ_tI_bPidg9zi3s4BL4FfC2OD45Qm-PuVERmTGrA,18593
|
|
154
|
+
fugue-0.9.5.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
155
|
+
fugue-0.9.5.dist-info/entry_points.txt,sha256=2Vxp1qew_tswacA8m0RzIliLlFOQMlzezvSXPugM_KA,295
|
|
156
|
+
fugue-0.9.5.dist-info/top_level.txt,sha256=y1eCfzGdQ1_RkgcShcfbvXs-bopD3DwJcIOxP9EFXno,140
|
|
157
|
+
fugue-0.9.5.dist-info/RECORD,,
|
fugue_spark/_utils/misc.py
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import pyspark.sql as ps
|
|
1
2
|
from typing import Any
|
|
3
|
+
from importlib.metadata import version
|
|
4
|
+
|
|
5
|
+
SPARK_VERSION = version("pyspark").split(".")
|
|
2
6
|
|
|
3
7
|
try:
|
|
4
|
-
|
|
5
|
-
|
|
8
|
+
if int(SPARK_VERSION[0]) >= 4:
|
|
9
|
+
from pyspark.sql import SparkSession as SparkConnectSession
|
|
10
|
+
from pyspark.sql import DataFrame as SparkConnectDataFrame
|
|
11
|
+
else: # pragma: no cover
|
|
12
|
+
from pyspark.sql.connect.session import SparkSession as SparkConnectSession
|
|
13
|
+
from pyspark.sql.connect.dataframe import DataFrame as SparkConnectDataFrame
|
|
6
14
|
except Exception: # pragma: no cover
|
|
7
15
|
SparkConnectSession = None
|
|
8
16
|
SparkConnectDataFrame = None
|
|
9
|
-
import pyspark.sql as ps
|
|
10
17
|
|
|
11
18
|
|
|
12
|
-
def is_spark_connect(session: Any) -> bool:
|
|
19
|
+
def is_spark_connect(session: Any) -> bool: # pragma: no cover
|
|
20
|
+
if int(SPARK_VERSION[0]) >= 4:
|
|
21
|
+
return False
|
|
13
22
|
return SparkConnectSession is not None and isinstance(
|
|
14
23
|
session, (SparkConnectSession, SparkConnectDataFrame)
|
|
15
24
|
)
|
fugue_version/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.9.
|
|
1
|
+
__version__ = "0.9.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|