We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3934523 commit 5acf967Copy full SHA for 5acf967
backends-velox/src/test/scala/org/apache/gluten/functions/ScalarFunctionsValidateSuite.scala
@@ -1521,4 +1521,15 @@ abstract class ScalarFunctionsValidateSuite extends FunctionsValidateSuite {
1521
}
1522
1523
1524
+ test("test_current_timestamp") {
1525
+ val df = spark.sql("SELECT l_orderkey, current_timestamp() from lineitem limit 1")
1526
+ val optimizedPlan = df.queryExecution.optimizedPlan.toString()
1527
+ assert(
1528
+ !optimizedPlan.contains("CurrentTimestamp"),
1529
+ s"Expected CurrentTimestamp to be folded to a literal, but got: $optimizedPlan"
1530
+ )
1531
+ checkGlutenPlan[ProjectExecTransformer](df)
1532
+ checkFallbackOperators(df, 0)
1533
+ df.collect()
1534
+ }
1535
0 commit comments