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

StackOverflow for a query with many conditions on a CASE #294

Open
andicuko opened this issue Oct 17, 2024 · 0 comments
Open

StackOverflow for a query with many conditions on a CASE #294

andicuko opened this issue Oct 17, 2024 · 0 comments

Comments

@andicuko
Copy link
Contributor

Given the following query:

WITH anon_6 AS (
  SELECT 1.1574074074074073e-05 * CAST(EXTRACT(epoch FROM "Birthdate_1") AS FLOAT) AS "Birthdate_1" 
  FROM some_table
), 
anon_5 AS (
  SELECT CASE 
  WHEN ("Birthdate_1" BETWEEN -13423 AND -8192) THEN -13423 
  ... very long list of WHEN conditions
  END AS binned 
FROM anon_6),
... 

dries out the memory and fails.

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

No branches or pull requests

1 participant