slinkydeveloper commented on a change in pull request #19045:
URL: https://github.com/apache/flink/pull/19045#discussion_r824480946
##########
File path:
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/TableConfigUtils.java
##########
@@ -90,6 +94,35 @@ public static CalciteConfig getCalciteConfig(TableConfig
tableConfig) {
.orElse(CalciteConfig$.MODULE$.DEFAULT());
}
+ /**
+ * Similar to {@link TableConfig#getLocalTimeZone()} but extracting it
from a generic {@link
+ * ReadableConfig}.
+ *
+ * @see TableConfig#getLocalTimeZone()
+ */
+ public static ZoneId getLocalTimeZone(ReadableConfig tableConfig) {
+ String zone = tableConfig.get(TableConfigOptions.LOCAL_TIME_ZONE);
Review comment:
I wonder if it makes sense to have the `ZoneId` as a type in the
`ConfigOption` supported types...
--
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]