walterddr 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_r284344688
##########
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:
this is copied from avactica 1.14.0 release
----------------------------------------------------------------
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