beliefer commented on a change in pull request #29604:
URL: https://github.com/apache/spark/pull/29604#discussion_r489256112



##########
File path: 
sql/core/src/test/resources/sql-tests/results/postgreSQL/window_part3.sql.out
##########
@@ -385,6 +385,15 @@ org.apache.spark.sql.AnalysisException
 cannot resolve 'ntile(0)' due to data type mismatch: Buckets expression must 
be positive, but got: 0; line 1 pos 7
 
 
+-- !query
+SELECT nth_value(four, 0) OVER (ORDER BY ten), ten, four FROM tenk1
+-- !query schema
+struct<>
+-- !query output
+org.apache.spark.sql.AnalysisException
+cannot resolve 'nthvalue(spark_catalog.default.tenk1.`four`)' due to data type 
mismatch: The 'offset' argument of nth_value must be greater than zero but it 
is 0.; line 1 pos 7

Review comment:
       Yes.
   ```
   SELECT nth_value(four, 0) OVER (ORDER BY ten), ten, four FROM tenk1;
   ERROR:  argument of nth_value must be greater than zero
   ```




----------------------------------------------------------------
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]

Reply via email to