-
Notifications
You must be signed in to change notification settings - Fork 421
Support non-computed nested array globals. #8611
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
base: master
Are you sure you want to change the base?
Conversation
2a9734b
to
41ef8f0
Compare
41ef8f0
to
32db320
Compare
(SELECT | ||
"expr-5~2"."array_value~3" AS "array_value~4" | ||
FROM | ||
LATERAL | ||
(SELECT | ||
(SELECT | ||
"0" | ||
FROM | ||
-- EXTRA unnest(array[]) | ||
unnest(ARRAY[ | ||
-- INDEX INDIRECTION | ||
edgedb_v7_2f26206480._index( | ||
"expr-3~2"."array_value~2", | ||
($2)::int8, | ||
'ERROR MESSAGE' | ||
) | ||
]) AS ("0" int8[]) | ||
) AS "array_value~3" | ||
FROM | ||
LATERAL | ||
-- INITAL ARRAY [[1]] | ||
(SELECT | ||
ARRAY[ROW("expr-2~2"."array_value~1")] | ||
AS "array_value~2" | ||
FROM | ||
LATERAL | ||
(SELECT | ||
ARRAY[($1)::int8] | ||
AS "array_value~1" | ||
) AS "expr-2~2" | ||
) AS "expr-3~2" | ||
) AS "expr-5~2" |
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 know this is from a previous PR, but trim the comment example code down. It includes some extra irrelevant stuff: an extra wrapper to produce serialized, the toplevel NULL filter, an inject LIMIT
I found one problem while poking around with testing:
Not all of the types get cleaned up on delete. |
related #4309
Allow globals such as:
Which can then be set by: