beliefer commented on a change in pull request #29800:
URL: https://github.com/apache/spark/pull/29800#discussion_r513153232
##########
File path: sql/core/src/test/resources/sql-tests/results/window.sql.out
##########
@@ -479,6 +479,38 @@ Anthony Bow 6627 Gerard Bondur
Leslie Thompson 5186 Gerard Bondur
+-- !query
+SELECT
+ employee_name,
+ salary,
+ nth_value(employee_name, 2) OVER (
+ ORDER BY salary DESC
+ ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) second_highest_salary
+FROM
+ basic_pays
+ORDER BY salary DESC
+-- !query schema
+struct<employee_name:string,salary:int,second_highest_salary:string>
+-- !query output
+Larry Bott 11798 NULL
+Gerard Bondur 11472 Gerard Bondur
+Pamela Castillo 11303 Gerard Bondur
Review comment:
The output comes from `hiveResultString`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]