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

🪲 CJU fails on ARRAY_AGGed field #1985

Closed
joocer opened this issue Sep 6, 2024 · 0 comments
Closed

🪲 CJU fails on ARRAY_AGGed field #1985

joocer opened this issue Sep 6, 2024 · 0 comments
Labels
Bug 🪲 Something isn't working

Comments

@joocer
Copy link
Contributor

joocer commented Sep 6, 2024

SELECT pid 
FROM (
  SELECT * FROM $planets 
  LEFT JOIN (
    SELECT ARRAY_AGG(id) AS pids, planetId 
    FROM $satellites 
    GROUP BY planetId
  ) AS sats 
  ON sats.planetId = $planets.id
) as satellites 
CROSS JOIN UNNEST(pids) AS pid
@joocer joocer added the Bug 🪲 Something isn't working label Sep 6, 2024
joocer added a commit that referenced this issue Sep 6, 2024
joocer added a commit that referenced this issue Sep 6, 2024
joocer added a commit that referenced this issue Sep 6, 2024
joocer added a commit that referenced this issue Sep 6, 2024
@joocer joocer closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant