From 4e58b949a7474abc4e20bfb3aa7338ffaf62b56f Mon Sep 17 00:00:00 2001 From: Ghislain Fourny Date: Mon, 9 Nov 2026 14:35:22 +0100 Subject: [PATCH 1/3] Upgrade version. --- pyproject.toml | 2 +- src/jsoniq/jars/rumbledb-3.0.3.jar | 3 --- src/jsoniq/jars/rumbledb-3.1.0.jar | 3 +++ src/jsoniq/session.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 src/jsoniq/jars/rumbledb-3.0.3.jar create mode 100644 src/jsoniq/jars/rumbledb-3.1.0.jar diff --git a/pyproject.toml b/pyproject.toml index 40c75e5..aa8a7c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "jsoniq" -version = "3.0.3" +version = "3.1.0" description = "Python edition of RumbleDB, a JSONiq engine" requires-python = ">=3.11" dependencies = [ diff --git a/src/jsoniq/jars/rumbledb-3.0.3.jar b/src/jsoniq/jars/rumbledb-3.0.3.jar deleted file mode 100644 index ab4a6ce..0000000 --- a/src/jsoniq/jars/rumbledb-3.0.3.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:861a67725a51090fcb7949e6e35e363c1cb9431878667eaaa25b012840505ce0 -size 82354787 diff --git a/src/jsoniq/jars/rumbledb-3.1.0.jar b/src/jsoniq/jars/rumbledb-3.1.0.jar new file mode 100644 index 0000000..eb14178 --- /dev/null +++ b/src/jsoniq/jars/rumbledb-3.1.0.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5162c2e13d1e6315a2e3b3487e01d36ad442720d002e1d9d9f81e9792c7e99bd +size 82407887 diff --git a/src/jsoniq/session.py b/src/jsoniq/session.py index 2cc9003..98e149d 100644 --- a/src/jsoniq/session.py +++ b/src/jsoniq/session.py @@ -13,7 +13,7 @@ _spark_creation_lock = RLock() -with as_file(files("jsoniq.jars").joinpath("rumbledb-3.0.3.jar")) as jar_path: +with as_file(files("jsoniq.jars").joinpath("rumbledb-3.1.0.jar")) as jar_path: if (os.name == 'nt'): jar_path_str = str(jar_path) else: From 099747765ce767ac24a7388ca66078d13bfac9db Mon Sep 17 00:00:00 2001 From: Ghislain Fourny Date: Mon, 9 Nov 2026 14:40:27 +0100 Subject: [PATCH 2/3] Update readme. --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f462d1b..9fd821e 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,23 @@ # RumbleDB for Python -This is the Python edition of [RumbleDB](https://rumbledb.org/), which brings [JSONiq](https://www.jsoniq.org) to the world of Python. +This is the Python edition of [RumbleDB](https://rumbledb.org/), which brings [JSONiq](https://www.jsoniq.org) and XQuery to the world of Python. + +RumbleDB passes 100% of applicable W3C qt3tests. It means full builtin type support, full builtin function support, etc. [See in action](https://colab.research.google.com/github/RumbleDB/rumble/blob/master/RumbleSandbox.ipynb)! -The Python edition is relatively recent. In many cases, `pip install jsoniq` just works. In some other instances (e.g., another version of Spark is installed locally), it might be unstable. We welcome feedback to improve the installation experience. +The Python edition is relatively recent. In many cases, `pip install jsoniq` just works. We welcome feedback to improve the installation experience. -JSONiq is a language considerably more powerful than SQL as it can process [messy, heterogeneous datasets](https://arxiv.org/abs/1910.11582), from kilobytes to Petabytes, with very little coding effort. +JSONiq is a language considerably more powerful than SQL as it can process [messy, heterogeneous datasets](https://arxiv.org/abs/1910.11582) (data in real life is not fully structured!), from kilobytes to Petabytes, with very little coding effort. -Spark aficionados can also pass DataFrames to JSONiq queries and take back DataFrames. This gives them an environment in which both Spark SQL and JSONiq co-exist to manipulate the data. +Spark aficionados can also pass Pandas DataFrames to JSONiq queries and take back DataFrames. This gives them an environment in which both Spark SQL and JSONiq co-exist to manipulate the data. -The Python edition of RumbleDB is currently a prototype (alpha) and probably unstable. We welcome bug reports and feedback. +We welcome bug reports and feedback. ## About RumbleDB RumbleDB is a JSONiq engine that works both with very small amounts of data and very large amounts of data. -It works with JSON, CSV, text, Parquet, etc (and soon XML). +It works with JSON, CSV, text, Parquet, XML, etc. It works on your laptop as well as on any Spark cluster (AWS, company clusters, etc). It automatically detects and switches between execution modes in a way transparent to the user, bringing the convenience of data independence to the world of messy data. @@ -30,7 +32,7 @@ A RumbleSession is a wrapper around a SparkSession that additionally makes sure JSONiq queries are invoked with rumble.jsoniq() in a way similar to the way Spark SQL queries are invoked with spark.sql(). -Use `rumble.xquery()` to run queries with XQuery 3.1 as the default language. It accepts the same keyword variable bindings and returns the same `SequenceOfItems` as `rumble.jsoniq()`, while preserving the session configuration. An explicit language version declaration in the query overrides the default. +You can also use `rumble.xquery()` to run queries with XQuery 3.1 as the default language. It accepts the same keyword variable bindings and returns the same `SequenceOfItems` as `rumble.jsoniq()`, while preserving the session configuration. An explicit language version declaration in the query overrides the default. ```python result = rumble.xquery("{$name}", name="World") @@ -41,7 +43,7 @@ JSONiq variables can be bound to lists of JSON values (str, int, float, True, Fa It will later also be possible to read tables registered in the Hive metastore, similar to spark.sql(). Alternatively, the JSONiq query can also read many files of many different formats from many places (local drive, HTTP, S3, HDFS, ...) directly with simple builtin function calls such as json-lines(), text-file(), parquet-file(), csv-file(), etc. See [RumbleDB's documentation](https://docs.rumbledb.org/writing-jsoniq-queries-in-python). -The resulting sequence of items can be retrieved as a list of JSON values, as a Pyspark DataFrame, or, for advanced users, as an RDD or with a streaming iteration over the items using the [RumbleDB Item API](https://github.com/RumbleDB/rumble/blob/master/src/main/java/org/rumbledb/api/Item.java). +The resulting sequence of items can be retrieved as a list of JSON values, as a Pyspark DataFrame, or, for advanced users, with a streaming iteration over the items using the [RumbleDB Item API](https://github.com/RumbleDB/rumble/blob/master/src/main/java/org/rumbledb/api/Item.java). It is also possible to write the sequence of items to the local disk, to HDFS, to S3, etc in a way similar to how DataFrames are written back by Pyspark. @@ -401,6 +403,10 @@ Even more queries can be found [here](https://colab.research.google.com/github/R # Latest updates +## Version 3.1.0 + +- RumbleDB 3.1.0 Pistachio Tree passes 100% of applicable tests of the qt3tests test suite for XQuery 3.1. Since JSONiq is based on XQuery 3.1, this also aligns JSONiq with the standard (in particular full support of all builtin types, all builtin functions, serialization, all expressions, etc). + ## Version 3.0.3 - Mainly bugfixes and increased compliance with the W3C standard, and improvements related to the language server. From 4ffc1088831e505fecf74b15f082a04aaff48180 Mon Sep 17 00:00:00 2001 From: Ghislain Fourny Date: Mon, 9 Nov 2026 14:43:11 +0100 Subject: [PATCH 3/3] Bump Spark to 4.0.5. --- pyproject.toml | 2 +- requirements.txt | 2 +- tests/test_bundled_spark.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aa8a7c5..39b1701 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "3.1.0" description = "Python edition of RumbleDB, a JSONiq engine" requires-python = ">=3.11" dependencies = [ - "pyspark==4.0.3", + "pyspark==4.0.5", "pandas>=2.2", "delta-spark==4.0" ] diff --git a/requirements.txt b/requirements.txt index bc4a2fc..f3bc1eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -pyspark==4.0.3 +pyspark==4.0.5 pandas==2.3 diff --git a/tests/test_bundled_spark.py b/tests/test_bundled_spark.py index 958b2a6..c6d898e 100644 --- a/tests/test_bundled_spark.py +++ b/tests/test_bundled_spark.py @@ -123,7 +123,7 @@ def test_bundled_spark_starts_with_invalid_external_home(monkeypatch, tmp_path): RumbleSession.Builder().master("local[2]") .config("spark.ui.enabled", "false").getOrCreate() ) - assert session.version == "4.0.3" + assert session.version == "4.0.5" assert session.jsoniq("1 + 1").json() == (2,) assert os.environ["SPARK_HOME"] == invalid_home finally: