1fanwang commented on code in PR #20660:
URL: https://github.com/apache/hudi/pull/20660#discussion_r4703840572
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/HoodieSource.java:
##########
@@ -101,6 +104,9 @@ public HoodieSource(
this.tableName = metaClient == null
? scanContext.getConf().get(FlinkOptions.TABLE_NAME)
: metaClient.getTableConfig().getTableName();
+ this.timelineTimeZone = metaClient == null
+ ? HoodieTableConfig.TIMELINE_TIMEZONE.defaultValue()
Review Comment:
Confirmed and reproduced your exact scenario (the 8-hour Asia/Shanghai
offset). Fixed in
https://github.com/apache/hudi/commit/ac6525924f41fe335dbb5bcb0717b7f62531bd25
by moving timezone resolution off the frozen construction-time value: the
enumerator now resolves it from its own split discoverer, which already
re-checks table existence on every scan, and the reader resolves and caches it
lazily the same way StreamReadMonitoringFunction already does. Added a direct
regression test on the enumerator path.
--
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]