Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.0.0
-
None
-
None
Description
I have checked PostgreSQL, Vertica, Oracle, Redshift, Presto, Teradata, FIRST_VALUE|LAST_VALUE is always used as a window function, not as an aggregate function.
The FIRST_VALUE function currently provided can be used as both an aggregation function and a window function.
Maybe we need to re-implement it.
Reference discussion inĀ https://github.com/apache/spark/pull/25082
Attachments
Issue Links
- duplicates
-
SPARK-28310 ANSI SQL grammar support: first_value/last_value(expression, [RESPECT NULLS | IGNORE NULLS])
- Reopened