jsoniq 2.0.2__tar.gz → 2.0.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsoniq
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Python edition of RumbleDB, a JSONiq engine
5
5
  Author: Abishek Ramdas
6
6
  Author-email: Ghislain Fourny <ghislain.fourny@inf.ethz.ch>
@@ -566,6 +566,13 @@ Even more queries can be found [here](https://colab.research.google.com/github/R
566
566
 
567
567
  # Latest updates
568
568
 
569
+ ## Version 2.0.4
570
+ - Fixed an issue when running the library from a working directory that has spaces in the path.
571
+ - Removed an overlooked debug output printing an internal DataFrame schema during evaluation of let clauses.
572
+
573
+ ## Version 2.0.3
574
+ - Some unquoted strings (like document, binary, pi, etc) were not properly recognized and could not be used as variable names or for unquoted object lookup. This is now fixed.
575
+
569
576
  ## Version 2.0.2
570
577
  - Add MongoDB connection (mongodb-collection()). Requires including .withMongo() when creating the RumbleSession.
571
578
 
@@ -338,6 +338,13 @@ Even more queries can be found [here](https://colab.research.google.com/github/R
338
338
 
339
339
  # Latest updates
340
340
 
341
+ ## Version 2.0.4
342
+ - Fixed an issue when running the library from a working directory that has spaces in the path.
343
+ - Removed an overlooked debug output printing an internal DataFrame schema during evaluation of let clauses.
344
+
345
+ ## Version 2.0.3
346
+ - Some unquoted strings (like document, binary, pi, etc) were not properly recognized and could not be used as variable names or for unquoted object lookup. This is now fixed.
347
+
341
348
  ## Version 2.0.2
342
349
  - Add MongoDB connection (mongodb-collection()). Requires including .withMongo() when creating the RumbleSession.
343
350
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jsoniq"
7
- version = "2.0.2"
7
+ version = "2.0.4"
8
8
  description = "Python edition of RumbleDB, a JSONiq engine"
9
9
  requires-python = ">=3.11"
10
10
  dependencies = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsoniq
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Python edition of RumbleDB, a JSONiq engine
5
5
  Author: Abishek Ramdas
6
6
  Author-email: Ghislain Fourny <ghislain.fourny@inf.ethz.ch>
@@ -566,6 +566,13 @@ Even more queries can be found [here](https://colab.research.google.com/github/R
566
566
 
567
567
  # Latest updates
568
568
 
569
+ ## Version 2.0.4
570
+ - Fixed an issue when running the library from a working directory that has spaces in the path.
571
+ - Removed an overlooked debug output printing an internal DataFrame schema during evaluation of let clauses.
572
+
573
+ ## Version 2.0.3
574
+ - Some unquoted strings (like document, binary, pi, etc) were not properly recognized and could not be used as variable names or for unquoted object lookup. This is now fixed.
575
+
569
576
  ## Version 2.0.2
570
577
  - Add MongoDB connection (mongodb-collection()). Requires including .withMongo() when creating the RumbleSession.
571
578
 
@@ -12,6 +12,7 @@ src/jsoniq.egg-info/top_level.txt
12
12
  src/jsoniq/jars/rumbledb-2.0.0.jar
13
13
  src/jsoniqmagic/__init__.py
14
14
  src/jsoniqmagic/magic.py
15
+ tests/test_bugfix_keywords.py
15
16
  tests/test_iterator_bug.py
16
17
  tests/test_sample.py
17
18
  tests/test_test1.py
@@ -0,0 +1,19 @@
1
+ from jsoniq import RumbleSession
2
+ from unittest import TestCase
3
+ import json
4
+ class TryTesting(TestCase):
5
+ def test1(self):
6
+ # The syntax to start a session is similar to that of Spark.
7
+ # A RumbleSession is a SparkSession that additionally knows about RumbleDB.
8
+ # All attributes and methods of SparkSession are also available on RumbleSession.
9
+ rumble = RumbleSession.builder.appName("PyRumbleExample").getOrCreate();
10
+ # A more complex, standalone query
11
+
12
+ seq = rumble.jsoniq("""
13
+ let $node := { "binary" : "af12" }
14
+ return $node.binary
15
+ """);
16
+
17
+ expected = ('af12',)
18
+
19
+ self.assertTrue(json.dumps(seq.json()) == json.dumps(expected))
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes