soumyava commented on code in PR #15902: URL: https://github.com/apache/druid/pull/15902#discussion_r1498581953
########## docs/querying/sql-functions.md: ########## @@ -890,7 +890,7 @@ Extracts a literal value from `expr` at the specified `path`. If you specify `RE **Function type:** [Window](sql-window-functions.md#window-function-reference) -If you do not supply an `offset`, returns the value evaluated at the row preeeding the current row. Specify an offset number `n` to return the value evaluated at `n` rows preceding the current one. +If you do not supply an `offset`, returns the value evaluated at the row preding the current row. Specify an offset number `n` to return the value evaluated at `n` rows preceding the current one. Review Comment: preceding ########## docs/querying/sql-window-functions.md: ########## @@ -213,7 +213,7 @@ If you write a query that violates one of these conditions, Druid throws an erro | `PERCENT_RANK()` | Returns the relative rank of the row calculated as a percentage according to the formula: `RANK() OVER (window) / COUNT(1) OVER (window)` | | `CUME_DIST()` | Returns the cumulative distribution of the current row within the window calculated as number of window rows at the same rank or higher than current row divided by total window rows. The return value ranges between `1/number of rows` and 1 | | `NTILE(tiles)` | Divides the rows within a window as evenly as possible into the number of tiles, also called buckets, and returns the value of the tile that the row falls into | None | -| `LAG(expr[, offset])` | If you do not supply an `offset`, returns the value evaluated at the row preeeding the current row. Specify an offset number, `n` to return the value evaluated at `n` rows preceding the current one | +| `LAG(expr[, offset])` | If you do not supply an `offset`, returns the value evaluated at the row preding the current row. Specify an offset number, `n` to return the value evaluated at `n` rows preceding the current one | Review Comment: preceding -- 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]
