sandugood commented on code in PR #22134:
URL: https://github.com/apache/datafusion/pull/22134#discussion_r3240388643
##########
docs/source/user-guide/sql/window_functions.md:
##########
@@ -400,20 +400,21 @@ lag(expression, offset, default)
#### Example
```sql
--- Example usage of the lag window function:
-SELECT employee_id,
+-- Example usage of lag window function that takes an expression as its
default parameter:
+SELECT
+ employee_id,
salary,
- lag(salary, 1, 0) OVER (ORDER BY employee_id) AS prev_salary
Review Comment:
Combined them both in a single example query
--
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]