techdocsmith commented on code in PR #15902: URL: https://github.com/apache/druid/pull/15902#discussion_r1498409053
########## docs/querying/sql-functions.md: ########## @@ -860,6 +884,22 @@ Extracts an `ARRAY<COMPLEX<json>>` value from `expr` at the specified `path`. If Extracts a literal value from `expr` at the specified `path`. If you specify `RETURNING` and an SQL type name (such as `VARCHAR`, `BIGINT`, `DOUBLE`, etc) the function plans the query using the suggested type. Otherwise, it attempts to infer the type based on the context. If it can't infer the type, it defaults to `VARCHAR`. +## LAG + +`LAG(expr[, offset])` + +**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. Review Comment: ```suggestion 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. ``` -- 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]
