Repository navigation
[MOD-19584] Expose computed JSONPath results through RedisJSON API - #1675
Open
TalBarYakar wants to merge 6 commits into
Open
TalBarYakar wants to merge 6 commits into
TalBarYakar wants to merge 6 commits into
Conversation
Add evaluate to shared API V11 using the existing projection engine. Keep computed values owned by the iterator and release them with freeIter, while preserving existing node-only APIs. Document ownership and lifetime rules and add Rust and C API tests.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1675 +/- ##
==========================================
+ Coverage 88.26% 88.28% +0.01%
==========================================
Files 17 17
Lines 6076 6128 +52
==========================================
+ Hits 5363 5410 +47
- Misses 713 718 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AvivDavid23
reviewed
Oct 15, 2026
|
|
||
| #[repr(C)] | ||
| struct ValueWrapper<V: SelectValue> { | ||
| value: *const V, |
Contributor
There was a problem hiding this comment.
Can we check maybe we we can add M::O here and reuse this struct?
This branch has not been deployed
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.
Add evaluate to shared API V11 using the existing projection engine. Keep computed values owned by the iterator and release them with freeIter, while preserving existing node-only APIs.
Document ownership and lifetime rules and add Rust and C API tests.
Note
Medium Risk
Extends the stable C ABI and pointer/lifetime contract for iterators; mistakes in ownership or mixing
getvsevaluatecould affect downstream modules like RediSearch.Overview
Adds RedisJSON shared C API v11 with a new
evaluateentry point so module consumers can run JSONPath computed projections (arithmetic,sum(),first(), filters with expressions, etc.) the same wayJSON.GETdoes, whileget,pathParse, andgetWithPathstay node-only and still reject projections.The results iterator now carries either borrowed document nodes or owned computed values (via new
Manager::import_value, with anIValuefast path).rejson_api.hdocuments iterator ownership, lifetime, and storage-format caveats for projections. Coverage includes Rust unit tests,LLAPI.EVALUATEin the pytest C consumer, andtestLLAPIEvaluate.Reviewed by Cursor Bugbot for commit e3ce62a. Bugbot is set up for automated code reviews on this repo. Configure here.