Skip to content
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

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Feb 9, 2024

Also update re/flex library to the latest version. Finally, introduce very basic parser test.

Also update re/flex library to the latest version.
Finally, introduce very basic parser test.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Parse jsonpath and partially fill it with path segments.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
BorysTheDev
BorysTheDev previously approved these changes Feb 12, 2024
path_.AddSegment(PathSegment(SegmentType::IDENTIFIER, identifier));
}

Path Release() {
Copy link
Contributor

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 {
Copy link
Contributor

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

Copy link
Collaborator Author

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

@romange romange merged commit 6cd2f05 into main Feb 12, 2024
10 checks passed
@romange romange deleted the JsonPathErrors branch February 12, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants