-
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: provide plumbing for jsonpath error propagation #2567
Conversation
fce8da2
to
456c1c6
Compare
Also update re/flex library to the latest version. Finally, introduce very basic parser test. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
456c1c6
to
fc9c132
Compare
4ce4c76
to
e4b30a7
Compare
Parse jsonpath and partially fill it with path segments. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
e4b30a7
to
ed29d87
Compare
src/core/json/driver.h
Outdated
path_.AddSegment(PathSegment(SegmentType::IDENTIFIER, identifier)); | ||
} | ||
|
||
Path Release() { |
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 would prefer to rename this method to TakePath()
int index_; | ||
}; | ||
|
||
class Path { |
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 understand why you need this class. It duplicates std::vector interface
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.
it's gonna grow in the future. the code is not finished yet
Also update re/flex library to the latest version. Finally, introduce very basic parser test.