From 9c3515fcffe6ea4f7b62472103f3045438c354b0 Mon Sep 17 00:00:00 2001 From: "zhiminr.ren" <1240388654@qq.com> Date: Fri, 8 Nov 2024 16:33:29 +0800 Subject: [PATCH] Trino dialect, the extract function supports dow and week parameters Signed-off-by: zhiminr.ren <1240388654@qq.com> --- .../connector/parser/trino/TrinoFunctionTransformTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/test/java/com/starrocks/connector/parser/trino/TrinoFunctionTransformTest.java b/fe/fe-core/src/test/java/com/starrocks/connector/parser/trino/TrinoFunctionTransformTest.java index f9f8a6a096229..ee441fdc95ffc 100644 --- a/fe/fe-core/src/test/java/com/starrocks/connector/parser/trino/TrinoFunctionTransformTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/connector/parser/trino/TrinoFunctionTransformTest.java @@ -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')"); }