You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly we need to implement #420 given our plan of how to implement this query? Though in the meantime, should this raise an error rather than ignoring group?
from employees
group role (
sort join_date # taken from above
take 1)
SELECT
employees.*FROM
employees
ORDER BY
join_date
LIMIT1
This is not easy to do with our current compiler setup. Will instead try to hurry up with making this work.
But I've added this error message:
from employees
group aaa (
take 1..2
)
Error:
╭─[-:3:3]
│
3 │ take 1..2
· ────┬────
· ╰────── `take` within `group` currently only supports argument `1`
·
· Help: For now, you can derive a row number within a group and do a filter on that.
───╯
Activity
aljazerzen commentedon Apr 28, 2022
I believe this now throws an error:
It's also missing the span and pretty formatting, but eventually this should compile to DISTINCT anyway.
max-sixty commentedon Apr 29, 2022
OK cool — FYI it doesn't throw an error on main, but maybe on the proposed PR
aljazerzen commentedon Apr 29, 2022
True that, I merged "window functions PR" so now it should.
max-sixty commentedon Apr 29, 2022
Wonderful, confirmed:

max-sixty commentedon May 19, 2022
We now have
DISTINCTworking!We don't have it working in groups though, so we should probably raise an error:
aljazerzen commentedon May 19, 2022
This is not easy to do with our current compiler setup. Will instead try to hurry up with making this work.
But I've added this error message: