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.
- {jsoniq-2.0.2/src/jsoniq.egg-info → jsoniq-2.0.4}/PKG-INFO +8 -1
- {jsoniq-2.0.2 → jsoniq-2.0.4}/README.md +7 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/pyproject.toml +1 -1
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq/jars/rumbledb-2.0.0.jar +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4/src/jsoniq.egg-info}/PKG-INFO +8 -1
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq.egg-info/SOURCES.txt +1 -0
- jsoniq-2.0.4/tests/test_bugfix_keywords.py +19 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/LICENSE +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/setup.cfg +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq/__init__.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq/sequence.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq/session.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq.egg-info/dependency_links.txt +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq.egg-info/requires.txt +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniq.egg-info/top_level.txt +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniqmagic/__init__.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/src/jsoniqmagic/magic.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/tests/test_iterator_bug.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/tests/test_sample.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/tests/test_test1.py +0 -0
- {jsoniq-2.0.2 → jsoniq-2.0.4}/tests/test_test2.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsoniq
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsoniq
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|