Skip to content

Commit

Permalink
add unit test to check not fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
zwangsheng committed Jan 23, 2024
1 parent 7a430f2 commit 448e516
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,4 +907,9 @@ class TestOperator extends VeloxWholeStageTransformerSuite with AdaptiveSparkPla
|""".stripMargin
)(df => checkFallbackOperators(df, 1))
}

test("Support HOUR function") {
runQueryAndCompare("SELECT l_orderkey, HOUR('2024-01-23 19:27:01') FROM lineitem LIMIT 1")(
df => checkFallbackOperators(df, 0))
}
}

0 comments on commit 448e516

Please sign in to comment.