xiangfu0 opened a new pull request, #13340: URL: https://github.com/apache/pinot/pull/13340
Fix the LEAD/LAG window function implementation to match the SQL syntax. Syntax: ```sql LEAD(column_name, offset, default_value) OVER (PARTITION BY partition_column ORDER BY order_column) LAG(column_name, offset, default_value) OVER (PARTITION BY partition_column ORDER BY order_column) ``` - column_name: The column from which to retrieve the value. - offset: The number of rows forward from the current row to access. Default is 1 if not specified. - default_value: The value to return if the offset goes beyond the number of rows. Example: ``` SELECT employee_id, salary, LAG(salary, 1) OVER (ORDER BY employee_id) AS previous_salary FROM employees; ``` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org