Skip to content

Support array of array examples#1956

Open
ayca-aydogan wants to merge 2 commits intoswaggo:masterfrom
ayca-aydogan:support-array-of-array-examples
Open

Support array of array examples#1956
ayca-aydogan wants to merge 2 commits intoswaggo:masterfrom
ayca-aydogan:support-array-of-array-examples

Conversation

@ayca-aydogan
Copy link
Copy Markdown

Describe the PR
Add a nested array parser for an array of array examples. To achieve this, the example string is parsed into a tree and then the tree structure is converted to an array of arrays. "{" and "}" are chosen to specify the nested array beginning and end but this can easily be changed. An example of a nested array example is:{{one,two},{three,four}}. This implementation is backward compatible with arrays. The example could be "{one,two}" as well as "one,two"

Relation issue
#1041

Additional context
For an extensive fix, depth in ComplementSchema should be a variable instead of constant 2.

@qktrn
Copy link
Copy Markdown

qktrn commented May 10, 2025

When is this gonna be merged?

@podocarp
Copy link
Copy Markdown

I think this is a fairly common thing and should be looked at. Think matrices, csv, etc., nested arrays are not that uncommon.

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.

3 participants