Skip to content

Commit

Permalink
fix_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed May 14, 2024
1 parent 1a6b90c commit 03e7ef9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,17 @@ public static DateLiteral monthsSub(LiteralExpr date, LiteralExpr month) throws

@FEFunction(name = "months_sub", argTypes = { "DATE", "INT" }, returnType = "DATE")
public static DateLiteral monthsSubDate(LiteralExpr date, LiteralExpr month) throws AnalysisException {
return yearsAdd(date, new IntLiteral(-(int) month.getLongValue()));
return monthsAdd(date, new IntLiteral(-(int) month.getLongValue()));
}

@FEFunction(name = "months_sub", argTypes = { "DATEV2", "INT" }, returnType = "DATEV2")
public static DateLiteral monthsSubDateV2(LiteralExpr date, LiteralExpr month) throws AnalysisException {
return yearsAdd(date, new IntLiteral(-(int) month.getLongValue()));
return monthsAdd(date, new IntLiteral(-(int) month.getLongValue()));
}

@FEFunction(name = "months_sub", argTypes = { "DATETIMEV2", "INT" }, returnType = "DATETIMEV2")
public static DateLiteral monthsSubDateTimeV2(LiteralExpr date, LiteralExpr month) throws AnalysisException {
return yearsAdd(date, new IntLiteral(-(int) month.getLongValue()));
return monthsAdd(date, new IntLiteral(-(int) month.getLongValue()));
}

@FEFunction(name = "days_sub", argTypes = { "DATETIME", "INT" }, returnType = "DATETIME")
Expand Down

0 comments on commit 03e7ef9

Please sign in to comment.