caicancai commented on code in PR #3969:
URL: https://github.com/apache/calcite/pull/3969#discussion_r1764327983


##########
core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java:
##########
@@ -2150,8 +2152,11 @@ private static class TimestampAddConvertlet implements 
SqlRexConvertlet {
       switch (call.operandCount()) {
       case 2:
         // Oracle-style 'ADD_MONTHS(date, integer months)'
-        if (call.getOperator() == SqlLibraryOperators.ADD_MONTHS) {
-          qualifier = new SqlIntervalQualifier(TimeUnit.MONTH, null, 
SqlParserPos.ZERO);
+        if (call.getOperator() == SqlLibraryOperators.ADD_MONTHS

Review Comment:
   optimized the code to make it more readable. Do you think it's acceptable?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to