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

Update window_functions.md #4162

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Update window_functions.md #4162

merged 3 commits into from
Nov 28, 2024

Conversation

soerenwolfers
Copy link
Collaborator

@soerenwolfers soerenwolfers commented Nov 28, 2024

  • Fix a column with containing incremental to just say a column to enumerate
  • Clarify that AGG(x ORDER BY y) OVER (ORDER BY z) is not supported
  • Clarify that AGG(x) OVER (ORDER BY y) does behave like AGG(x ORDER BY y) OVER (ORDER BY y) (see hawkfish's confirmation at Add support for ORDER BY within window functions for MODE duckdb#14996)
  • Claim that ordering is not well-defined without an ORDER BY clause -- although from experiments it seems like the builtin table order (rowid) is used by default? Please confirm, that would be super useful if true.

@szarnyasg
Copy link
Collaborator

Thanks! I adjusted the URLs but otherwise this is good to go in. It reminded me of the fact that people sometimes use row_number where rowid would be simpler and faster, so I'll add that as a tip later.

@szarnyasg szarnyasg merged commit 316c9f8 into duckdb:main Nov 28, 2024
4 checks passed
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.

2 participants