danny0405 commented on a change in pull request #8324: [FLINK-11921][table] 
Upgrade to calcite 1.19
URL: https://github.com/apache/flink/pull/8324#discussion_r284092470
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/java/org/apache/calcite/avatica/util/DateTimeUtils.java
 ##########
 @@ -1011,6 +1103,16 @@ public static Calendar calendar() {
                return Calendar.getInstance(UTC_ZONE, Locale.ROOT);
        }
 
+       /** Returns whether a value is an {@code OffsetDateTime}. */
+       public static boolean isOffsetDateTime(Object o) {
+               return OFFSET_DATE_TIME_HANDLER.isOffsetDateTime(o);
+       }
+
+       /** Returns the value of a {@code OffsetDateTime} as a string. */
+       public static String offsetDateTimeValue(Object o) {
+               return OFFSET_DATE_TIME_HANDLER.stringValue(o);
+       }
 
 Review comment:
   Does this mean if we do not have class "java.time.OffsetDateTime", we would 
always got an exception ?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to