Gabriel39 commented on code in PR #65446:
URL: https://github.com/apache/doris/pull/65446#discussion_r3568129188
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/FileQueryScanNode.java:
##########
@@ -677,6 +683,23 @@ protected boolean getEnableMappingTimestampTz() {
return false;
}
+ protected String getHiveParquetTimeZone() throws UserException {
+ TableIf table = getTargetTable();
+ if (table instanceof HMSExternalTable
+ && ((HMSExternalTable) table).getDlaType() ==
HMSExternalTable.DLAType.HIVE) {
+ CatalogIf<?> catalog = ((HMSExternalTable) table).getCatalog();
+ if (catalog instanceof HMSExternalCatalog) {
+ return ((HMSExternalCatalog) catalog).getHiveParquetTimeZone();
+ }
+ }
+ if (table instanceof FunctionGenTable) {
+ FunctionGenTable functionGenTable = (FunctionGenTable) table;
+ ExternalFileTableValuedFunction tvf =
(ExternalFileTableValuedFunction) functionGenTable.getTvf();
+ return tvf.getHiveParquetTimeZone();
Review Comment:
Fixed in 3c5269f4f67. FileTableValuedFunction now delegates
getHiveParquetTimeZone to the storage-specific TVF. FileQueryScanNodeTest
covers a real file() wrapper backed by the S3 delegate and verifies that
Asia/Shanghai reaches TFileScanRangeParams.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]