cloud-fan commented on a change in pull request #35079:
URL: https://github.com/apache/spark/pull/35079#discussion_r778070618
##########
File path: docs/sql-ref-syntax-qry-select-window.md
##########
@@ -42,14 +42,24 @@ window_function OVER
* Analytic Functions
- **Syntax:** `CUME_DIST | LAG | LEAD`
+ **Syntax:** `CUME_DIST | LAG | LEAD | NTH_VALUE | FIRST_VALUE |
LAST_VALUE`
* Aggregate Functions
**Syntax:** `MAX | MIN | COUNT | SUM | AVG | ...`
Please refer to the [Built-in Aggregation
Functions](sql-ref-functions-builtin.html#aggregate-functions) document for a
complete list of Spark aggregate functions.
+* **nulls_option**
+
+ Specified to indicate whether skip null values in the determination of
which row to use. `RESPECT NULLS` is supported by default if you do not specify
`IGNORE NULLS`.
+
+ **Syntax:**
+
+ `{ IGNORE | RESPECT } NULLS`
+
+ **Note:** Only `LAG | LEAD | NTH_VALUE | FIRST_VALUE | LAST_VALUE` could
append `{ IGNORE | RESPECT } NULLS`.
Review comment:
```suggestion
**Note:** Only `LAG | LEAD | NTH_VALUE | FIRST_VALUE | LAST_VALUE` can
be used with `IGNORE NULLS`.
```
--
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]