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

[Filter] QUALIFY clause on a SELECT ... GROUP BY raises syntax error #150

Closed
ohaibbq opened this issue Jan 30, 2024 · 0 comments · Fixed by #157
Closed

[Filter] QUALIFY clause on a SELECT ... GROUP BY raises syntax error #150

ohaibbq opened this issue Jan 30, 2024 · 0 comments · Fixed by #157

Comments

@ohaibbq
Copy link
Contributor

ohaibbq commented Jan 30, 2024

Related to #147

WITH produce AS (
	SELECT 'kale' AS item, 23 AS purchases
)
SELECT item, sum(purchases)
FROM produce
GROUP BY item
QUALIFY ROW_NUMBER() OVER (PARTITION BY item ORDER BY item) = 1

Expected

item col1
kale 23

Actual

failed to query ...: near "WHERE": syntax error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant