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')"); }