Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

SQL API: Failed to plan inner queries with IN #8422

Open
kderbalah opened this issue Jul 2, 2024 · 0 comments
Open

SQL API: Failed to plan inner queries with IN #8422

kderbalah opened this issue Jul 2, 2024 · 0 comments
Assignees
Labels
api:sql Issues related to SQL API

Comments

@kderbalah
Copy link

Failed SQL

SELECT country, MEASURE(checkout_rate) AS checkout_rate
FROM customers
WHERE country IN (
    SELECT country
    FROM customers
    GROUP BY country
    ORDER BY SUM(num_customers) DESC
    LIMIT 5
)
AND year_utc = EXTRACT(YEAR FROM CURRENT_DATE) + 0
GROUP BY country, week_of_year_utc
ORDER BY week_of_year_utc, checkout_rate DESC

Error
SQL Error [XX000]: ERROR: Error during rewrite: Can't detect Cube query and it may be not supported yet.

Logical Plan
Error during planning

Version:
v0.35.55

Additional context
I see same error when enabling SQL pushdown

@igorlukanin igorlukanin added the api:sql Issues related to SQL API label Jul 5, 2024
@igorlukanin igorlukanin self-assigned this Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:sql Issues related to SQL API
Projects
None yet
Development

No branches or pull requests

2 participants