Skip to content

Commit a6b9d73

Browse files
author
Mariam-Almesfer
committed
Add validation test for CurrentTimestamp
1 parent f22e21f commit a6b9d73

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

backends-velox/src/test/scala/org/apache/gluten/functions/ScalarFunctionsValidateSuite.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,4 +1521,20 @@ abstract class ScalarFunctionsValidateSuite extends FunctionsValidateSuite {
15211521
}
15221522
}
15231523
}
1524+
1525+
test("current_timestamp_offloaded") {
1526+
runQueryAndCompare("SELECT current_timestamp()") {
1527+
df =>
1528+
checkGlutenPlan[ProjectExecTransformer](df)
1529+
checkFallbackOperators(df, 0)
1530+
}
1531+
}
1532+
1533+
test("current_timestamp") {
1534+
runQueryAndCompare("SELECT current_timestamp() = current_timestamp()") {
1535+
df =>
1536+
checkGlutenPlan[ProjectExecTransformer](df)
1537+
checkFallbackOperators(df, 0)
1538+
}
1539+
}
15241540
}

0 commit comments

Comments
 (0)