Skip to content

Commit

Permalink
Trino dialect, the extract function supports dow and week parameters
Browse files Browse the repository at this point in the history
Signed-off-by: zhiminr.ren <[email protected]>
  • Loading branch information
renzhimin7 committed Nov 8, 2024
1 parent 52d29fa commit 9c3515f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public void testJsonFnTransform() throws Exception {
public void testExtractFnTransform() throws Exception {
String sql = "SELECT extract(dow FROM TIMESTAMP '2022-10-20 05:10:00')";
assertPlanContains(sql, "dayofweek_iso('2022-10-20 05:10:00')");
sql = "SELECT week(dow FROM TIMESTAMP '2022-10-20 05:10:00')";
sql = "SELECT extract(dow FROM TIMESTAMP '2022-10-20 05:10:00')";
assertPlanContains(sql, "week_iso('2022-10-20 05:10:00')");
}

Expand Down

0 comments on commit 9c3515f

Please sign in to comment.