Mariamalmesfer commented on code in PR #13050:
URL: https://github.com/apache/gluten/pull/13050#discussion_r4247080519
##########
backends-velox/src/test/scala/org/apache/gluten/functions/WindowFunctionsValidateSuite.scala:
##########
@@ -92,4 +105,118 @@ class WindowFunctionsValidateSuite extends
FunctionsValidateSuite {
}
}
}
+
+ test("window partition/order by TIMESTAMP_NTZ goes native") {
+ withTable("ntz_window_data") {
+ createNtzWindowTable()
+
+ runQueryAndCompare(
+ "select k, ts, rank() over (partition by k order by ts) as rnk " +
+ "from ntz_window_data") {
+ checkGlutenPlan[WindowExecTransformer]
+ }
+ }
+ }
+
+ test("lag(TIMESTAMP_NTZ) window function goes native") {
+ withTable("ntz_window_data") {
+ createNtzWindowTable()
+ runQueryAndCompare(
+ "select k, lag(ts, 1) over (partition by k order by v) " +
+ "from ntz_window_data") {
+ checkGlutenPlan[WindowExecTransformer]
+ }
+ }
+ }
Review Comment:
Updated the PR description to match the current behavior
--
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]