-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add jsonpath evaluate #2586
Conversation
210283f
to
e81ef06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see bugs, but it's hard to read this code. If possible apply comments
src/core/json/path.cc
Outdated
if (it == obj_->array_range().end()) { | ||
return nullptr; | ||
} | ||
return &*it; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: return it == obj_->array_range().end() ? nullptr : &*it;
src/core/json/path.cc
Outdated
|
||
using AdvanceResult = nonstd::expected<const JsonType*, MatchStatus>; | ||
|
||
class Item { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments what those classes contain wouldn't hurt 🙂 Because otherwise you have to figure it out based on their usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
No description provided.