Skip to content

Commit c29ad2c

Browse files
Fix jar loading issue under Windows.
Special case Windows.
2 parents 9980c7d + 6d205fa commit c29ad2c

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ Even more queries can be found [here](https://colab.research.google.com/github/R
338338

339339
# Latest updates
340340

341+
## Version 2.0.9
342+
- Solve an issue under Windows that caused the error "Java gateway process exited before sending its port number.".
343+
341344
## Version 2.0.8
342345
- Decoupled the internal materialization cap (when a parallel sequence of items is materialized, e.g., into an array) from the outer result size cap (for printing to screen) with now two distinct configuration parameters. The default materialization cap is set to 100'000 items while the default outer result size is set to 10. They can be changed by the user through the Rumble configuration.
343346
- Fixed an issue in the implementation when a FLWOR gets executed locally with a return clause with an underlying RDD or DataFrame.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "jsoniq"
7-
version = "2.0.8"
7+
version = "2.0.9"
88
description = "Python edition of RumbleDB, a JSONiq engine"
99
requires-python = ">=3.11"
1010
dependencies = [

src/jsoniq/session.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
import importlib.resources as pkg_resources
99

1010
with pkg_resources.path("jsoniq.jars", "rumbledb-2.0.8.jar") as jar_path:
11-
jar_path_str = "file://" + str(jar_path)
11+
if (os.name == 'nt'):
12+
jar_path_str = str(jar_path)
13+
else:
14+
jar_path_str = "file://" + str(jar_path)
15+
print(f"[Info] Using RumbleDB jar file at: {jar_path_str}")
1216

1317
def get_spark_version():
1418
if os.environ.get('SPARK_HOME') != None:

0 commit comments

Comments
 (0)