Add splitByElement() method for parsing nested list or set#3216
Open
yunlingTao wants to merge 1 commit intoapache:3.8-devfrom
Open
Add splitByElement() method for parsing nested list or set#3216yunlingTao wants to merge 1 commit intoapache:3.8-devfrom
yunlingTao wants to merge 1 commit intoapache:3.8-devfrom
Conversation
8cda37a to
04913fe
Compare
04913fe to
4b7928e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.8-dev #3216 +/- ##
==========================================
Coverage ? 76.77%
Complexity ? 14942
==========================================
Files ? 1159
Lines ? 72502
Branches ? 8041
==========================================
Hits ? 55667
Misses ? 13816
Partials ? 3019 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andreachild
reviewed
Oct 9, 2025
| return String.format("\"%s\"", pvalue); | ||
| } | ||
|
|
||
| private List<String> splitByElement(String s) { |
Contributor
There was a problem hiding this comment.
Would be good to add a scenario to a feature test would would execute this new logic. Perhaps adding a scenario to the Fold.feature which does something like g.V().fold().fold() which will result in a list of lists?
andreachild
reviewed
Oct 9, 2025
Contributor
There was a problem hiding this comment.
Do other GLVs need a similar change? For example the parsing logic for lists and sets in feature-steps.js and feature_steps.py.
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.
Added
splitByElement()method ingremlin-testwhich splits strings without breaking elements containing commas inside brackets or braces.It replaces
split(",")in list and set parsing to handle structures likes[l[1,2,3], l[2,3,4]].