-
Notifications
You must be signed in to change notification settings - Fork 591
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
frontend: support array constructing subquery array(select ...)
#11202
Comments
This is exactly #7199 🥲
|
CASE
WHEN 'pg_signal_backend' = ANY(
ARRAY(
WITH RECURSIVE cte AS (
SELECT
pg_roles.oid,
pg_roles.rolname
FROM
pg_roles
WHERE
pg_roles.oid = roles.oid
UNION
ALL
SELECT
m.roleid,
pgr.rolname
FROM
cte cte_1
JOIN pg_auth_members m ON m.member = cte_1.oid
JOIN pg_roles pgr ON pgr.oid = m.roleid
)
SELECT
rolname
FROM
cte
)
) THEN True
ELSE False
END as can_signal_backend So this complex expression with CTE is aimed at getting Shall we simply put a |
Don't know if we have ever discussed batch's Just purely for the sake of discussing the possibilities of implementing one in the future: from this SQL only(Comprehensive support according to the standard may be overkill and extremely difficult), a basic implementation seems doable, i.e. not caring about performance or resource usage at all. It seems the part we need to change is that: |
Expected [, found: (
array(select ...)
array(select ...)
array(select ...)
This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned. |
|
Describe the bug
Error message/log
No response
To Reproduce
use pgAdmin 4 to connect to Risingwave
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
The tricky thing is
recursive cte
...But the good side is that it is a batch query and it is fetching some catalog info, so no need to be super efficient.
And probably returning an empty result set for the
CTE
is good enough.The text was updated successfully, but these errors were encountered: