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

Allow directly nested arrays of arrays #7419

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

dnwpark
Copy link
Contributor

@dnwpark dnwpark commented May 31, 2024

Allows directly nested arrays.

The query select ([[1],[2]]++[[3]])[1:3][0]; returns [2].

The query select find(array_replace([[1],[2],[3]],[2],[4]),[1]); returns 0.

@dnwpark
Copy link
Contributor Author

dnwpark commented May 31, 2024

Needs lots of tests, especially for the schema.

While compiler can handle nested arrays, the protocol can't

_localdev:main> select [[1]];
edgedb error: ProtocolEncodingError: array shape is invalid

array_unpack does not work because I need more special handling for set returning functions.

array_fill doesn't work because return type record[] is not supported for SQL functions.

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.

1 participant