Repository navigation
Generate the path functions of a plain jsonb - #508
Merged
estebanzimanyi merged 1 commit intoOct 26, 2026
Merged
Conversation
The path functions read the path as a list of text over a plain jsonb as they do over a temporal and a set: jsonbSet, jsonbInsert, jsonbDeletePath, jsonbDeleteArray and jsonbExtractPath take the jsonb, the path as LIST(VARCHAR) and the arguments MobilityDB declares after it, and answer a jsonb, NULL where MEOS answers none. The text-array shape admits a base value as its operand, reads it with the base value's own blob reader, answers through its own {Base}ToBlobN and registers over its own type, as the base-value scalars do.
Witness: the five functions answer {"a": [9, 2]}, {"a": [1, 9, 2]}, {"a": {"c": 2}}, {"b": 2} and [1, 2] on the arrays and objects of test/sql/parity/027_tjsonb.test, jsonbExtractPath of a key the object does not hold answers NULL, and jsonbSet over three rows answers NULL for the row whose value is NULL and each other row its own value. The generator adds these five registrations and removes none.
estebanzimanyi
force-pushed
the
gen/base-jsonb-path-arg
branch
from
October 26, 2026 13:13
7123152 to
9f4b4ab
Compare
estebanzimanyi
marked this pull request as ready for review
October 26, 2026 13:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The path functions read the path as a list of text over a plain jsonb as they do over a temporal and a set: jsonbSet, jsonbInsert, jsonbDeletePath, jsonbDeleteArray and jsonbExtractPath take the jsonb, the path as LIST(VARCHAR) and the arguments MobilityDB declares after it, and answer a jsonb, NULL where MEOS answers none. The text-array shape admits a base value as its operand, reads it with the base value's own blob reader, answers through its own {Base}ToBlobN and registers over its own type, as the base-value scalars do.
Witness: the five functions answer {"a": [9, 2]}, {"a": [1, 9, 2]}, {"a": {"c": 2}}, {"b": 2} and [1, 2] on the arrays and objects of test/sql/parity/027_tjsonb.test, jsonbExtractPath of a key the object does not hold answers NULL, and jsonbSet over three rows answers NULL for the row whose value is NULL and each other row its own value. The generator adds these five registrations and removes none.