zhengruifeng commented on PR #36063:
URL: https://github.com/apache/spark/pull/36063#issuecomment-1087582310
```
scala> spark.sql(""" SELECT a, b, c, ewm(c, 0.1) OVER (PARTITION BY b ORDER
BY a) FROM VALUES ('A', 0, 2), ('B', 1, 1), ('C', 0, 3), ('D', 1, 1) tab(a, b,
c); """).show
+---+---+---+--------------------------------------------------------------------------------------------------------+
| a| b| c|ewm(c) OVER (PARTITION BY b ORDER BY a ASC NULLS FIRST ROWS
BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)|
+---+---+---+--------------------------------------------------------------------------------------------------------+
| A| 0| 2|
2.0|
| C| 0| 3|
2.526315789473684|
| B| 1| 1|
1.0|
| D| 1| 1|
1.0|
+---+---+---+--------------------------------------------------------------------------------------------------------+
```
--
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]