You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# It is possible to bind only one value. The it must be provided as a singleton list.
257
+
# This is because in JSONiq, an item is the same a sequence of one item.
258
+
rumble.bind('$c', [42])
259
+
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
260
+
261
+
# For convenience and code readability, you can also use bindOne().
262
+
rumble.bindOne('$c', 42)
263
+
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
264
+
221
265
```
222
266
# How to learn JSONiq, and more query examples
223
267
224
268
Even more queries can be found [here](https://colab.research.google.com/github/RumbleDB/rumble/blob/master/RumbleSandbox.ipynb) and you can look at the [JSONiq documentation](https://www.jsoniq.org) and tutorials.
225
269
226
270
# Last updates
227
271
272
+
## Version 0.1.0 alpha 12
273
+
- Allow to bind JSONiq variables to Python values (mapping Python lists to sequences of items). This makes it possible to manipulate Python values directly with JSONiq and even without any knowledge of Spark at all.
274
+
- renamed bindDataFrameAsVariable() to bind(), which can be used both with DataFrames and Python lists.
275
+
- add bindOne() for binding a single value to a JSONiq variable.
276
+
228
277
## Version 0.1.0 alpha 11
229
278
- Fix an issue when feeding a DataFrame output by rumble.jsoniq() back to a new JSONiq query (as a variable).
0 commit comments