diff --git a/README.md b/README.md index d710406..cfe26f9 100644 --- a/README.md +++ b/README.md @@ -338,6 +338,9 @@ Even more queries can be found [here](https://colab.research.google.com/github/R # Latest updates +## Version 2.0.9 +- Solve an issue under Windows that caused the error "Java gateway process exited before sending its port number.". + ## Version 2.0.8 - 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. - Fixed an issue in the implementation when a FLWOR gets executed locally with a return clause with an underlying RDD or DataFrame. diff --git a/pyproject.toml b/pyproject.toml index ec4fc1a..2ce12ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "jsoniq" -version = "2.0.8" +version = "2.0.9" description = "Python edition of RumbleDB, a JSONiq engine" requires-python = ">=3.11" dependencies = [ diff --git a/src/jsoniq/session.py b/src/jsoniq/session.py index e0dda1d..fb2aa7c 100644 --- a/src/jsoniq/session.py +++ b/src/jsoniq/session.py @@ -8,7 +8,11 @@ import importlib.resources as pkg_resources with pkg_resources.path("jsoniq.jars", "rumbledb-2.0.8.jar") as jar_path: - jar_path_str = "file://" + str(jar_path) + if (os.name == 'nt'): + jar_path_str = str(jar_path) + else: + jar_path_str = "file://" + str(jar_path) + print(f"[Info] Using RumbleDB jar file at: {jar_path_str}") def get_spark_version(): if os.environ.get('SPARK_HOME') != None: