alamb commented on code in PR #15618:
URL: https://github.com/apache/datafusion/pull/15618#discussion_r2031178801
##########
datafusion/functions-window/src/cume_dist.rs:
##########
@@ -45,18 +45,21 @@ define_udwf_and_expr!(
doc_section(label = "Ranking Functions"),
description = "Relative rank of the current row: (number of rows preceding
or peer with the current row) / (total rows).",
syntax_example = "cume_dist()",
- sql_example = r#"-- Example usage of the cume_dist window function:
-SELECT salary,
+ sql_example = r#"```sql
+ --Example usage of the cume_dist window function:
+ SELECT salary,
cume_dist() OVER (ORDER BY salary) AS cume_dist
-FROM employees;
+ FROM employees;
+```
+```text
Review Comment:
```suggestion
```sql
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]