-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
docs: add sql examples for window functions #13551
base: main
Are you sure you want to change the base?
docs: add sql examples for window functions #13551
Conversation
Thank you @spencerscott917 🙏 Since the user documentation is generated, I think you will have to add these examples to get the CI to pass Here is an example of how to do it https://github.com/apache/datafusion/pull/13390/files Basically put the markdown you have made into rust and a |
Sounds good, I will give that a go. Thanks for the example to follow @alamb |
```sql | ||
SELECT x, y, percent_rank() OVER (ORDER BY y) AS percent_rank FROM VALUES (1,0), (2,75), (3,100), (4,25), (5,50) t(x,y); | ||
|
||
+---+-----+--------------+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are nice
Marking as draft as I think this PR is no longer waiting on feedback. Please mark it as ready for review when it is ready for another look |
Which issue does this PR close?
Closes #13399
Rationale for this change
Give users examples of how to use window functions and intuition about how these functions work
What changes are included in this PR?
Examples for each window function are now provided in documentation.
Are these changes tested?
Are there any user-facing changes?