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

🪲 random appears to be evaluated once #1592

Closed
joocer opened this issue Apr 21, 2024 · 0 comments · Fixed by #1593
Closed

🪲 random appears to be evaluated once #1592

joocer opened this issue Apr 21, 2024 · 0 comments · Fixed by #1593
Labels
Bug 🪲 Something isn't working

Comments

@joocer
Copy link
Contributor

joocer commented Apr 21, 2024

was seeing what happens for opteryx for https://buttondown.email/jaffray/archive/the-case-of-a-curious-sql-query/

SELECT count(*) 
FROM GENERATE_SERIES(1000) AS one_thousand 
CROSS JOIN GENERATE_SERIES(1000) AS one_thousand_b 
WHERE random() < 0.5
AFTER COST OPTIMIZATION
└─ EXIT
   └─ PROJECT (COUNT(*))
      └─ AGGREGATE (COUNT(*))
         └─ FILTER (False)
            └─ CROSS JOIN
               ├─ GENERATE SERIES (1000) AS one_thousand
               └─ GENERATE SERIES (1000) AS one_thousand_b
@joocer joocer added the Bug 🪲 Something isn't working label Apr 21, 2024
joocer added a commit that referenced this issue Apr 21, 2024
@joocer joocer mentioned this issue Apr 21, 2024
4 tasks
joocer added a commit that referenced this issue Apr 21, 2024
joocer added a commit that referenced this issue Apr 21, 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

Successfully merging a pull request may close this issue.

1 participant