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

Window functions #182

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Window functions #182

merged 1 commit into from
Oct 14, 2022

Conversation

shane-circuithub
Copy link
Contributor

No description provided.

@shane-circuithub
Copy link
Contributor Author

Depends on upstream PR. The question I have there applies here to — what should we call orderBy given that the name "orderBy" is already taken?

@shane-circuithub shane-circuithub force-pushed the window branch 2 times, most recently from a581759 to e5ca6c3 Compare June 20, 2022 10:26
@shane-circuithub shane-circuithub marked this pull request as ready for review June 20, 2022 10:44
@shane-circuithub
Copy link
Contributor Author

@ocharles suggested just calling it orderPartitionBy which I've done. I've added documentation now too so it's just the upstream PR that this is waiting on.

@shane-circuithub shane-circuithub force-pushed the window branch 2 times, most recently from 2ab2787 to 4f07ca5 Compare June 20, 2022 13:57
@shane-circuithub shane-circuithub force-pushed the window branch 2 times, most recently from b0039f6 to 1ae4217 Compare July 1, 2022 10:42
@shane-circuithub shane-circuithub force-pushed the window branch 2 times, most recently from ea49c52 to 1b2908a Compare October 13, 2022 13:02
@shane-circuithub shane-circuithub merged commit 2e82fcc into master Oct 14, 2022
@shane-circuithub shane-circuithub deleted the window branch October 14, 2022 01:06
shane-circuithub added a commit that referenced this pull request Nov 2, 2022
In #182 we introduced window functions, and also refactored `indexed` to use the new window function support via `rowNumber`.

However, previously `indexed` was zero-based, whereas PostgreSQL's `row_number()` function counts from one, so this change silently changed the behaviour of `indexed`.

This commit restores the previous behaviour.
shane-circuithub added a commit that referenced this pull request Nov 2, 2022
In #182 we introduced window functions, and also refactored `indexed` to use the new window function support via `rowNumber`.

However, previously `indexed` was zero-based, whereas PostgreSQL's `row_number()` function counts from one, so this change silently changed the behaviour of `indexed`.

This commit restores the previous behaviour.
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

Successfully merging this pull request may close these issues.

1 participant