alamb commented on code in PR #13551: URL: https://github.com/apache/datafusion/pull/13551#discussion_r1855563011
########## docs/source/user-guide/sql/window_functions.md: ########## @@ -194,6 +241,22 @@ Returns the percentage rank of the current row within its partition. The value r percent_rank() ``` +Example: + +```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); + ++---+-----+--------------+ Review Comment: these are nice -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org