dolt
dolt copied to clipboard
[no-release-info] Add additional tests for manipulating large JSON documents and fix corner case bugs in JSON_LOOKUP and JSON_INSERT
This PR adds additional tests for calling JSON_INSERT on large JSON documents. It also fixes three issues with IndexedJsonDocuments:
-
Some operations are not supported by the new optimized implementation for JSON_LOOKUP, such as wildcards on array paths (eg
$[*]
). Instead of returning an error, we detect the error and fall back on the original implementation. -
Attempting to insert a value into a document could cause an infinite loop.
-
We would fail to read some keys from an IndexedJsonDocument's StaticMap if the document contained arrays.