Skip to content

Commit

Permalink
fix ci failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyanquan committed Jan 31, 2024
1 parent 2baab0f commit c2f2540
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ public class JaninoParser {

private static final List<SqlTypeName> SQL_TYPE_NAME_IGNORE = Arrays.asList(SqlTypeName.SYMBOL);
private static final List<String> SQL_NAME_CALL_FUNCTION =
Arrays.asList(
"LOCALTIME",
"LOCALTIMESTAMP",
"CURRENT_TIME",
"CURRENT_DATE",
"CURRENT_TIMESTAMP");
Arrays.asList("LOCALTIMESTAMP", "CURRENT_TIME", "CURRENT_DATE", "CURRENT_TIMESTAMP");

public static String loadSystemFunction(String expression) {
return "import static com.ververica.cdc.runtime.functions.SystemFunctionUtils.*;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public SqlSyntax getSyntax() {
.notDeterministic()
.build();
public static final SqlFunction MOD = SqlStdOperatorTable.MOD;
public static final SqlFunction LOCALTIME = SqlStdOperatorTable.LOCALTIME;

public static final SqlFunction YEAR = SqlStdOperatorTable.YEAR;
public static final SqlFunction QUARTER = SqlStdOperatorTable.QUARTER;
public static final SqlFunction MONTH = SqlStdOperatorTable.MONTH;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ public void testTranslateFilterToJaninoExpression() {
testFilterExpression("floor(2)", "floor(2)");
testFilterExpression("round(2,2)", "round(2, 2)");
testFilterExpression("uuid()", "uuid()");
testFilterExpression("id = LOCALTIME", "id == localtime()");
testFilterExpression("id = LOCALTIMESTAMP", "id == localtimestamp()");
testFilterExpression("id = CURRENT_TIME", "id == currentTime()");
testFilterExpression("id = CURRENT_DATE", "id == currentDate()");
Expand Down

0 comments on commit c2f2540

Please sign in to comment.