You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/06/29 16:15:47 UTC

[doris] 04/04: [fix](time_zone) be compatible with doris old version for CST time_zone when load orc file in broker load #21263

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit c5ff94cff3c16fad33b99fd68fab5176f745df31
Author: morningman <mo...@163.com>
AuthorDate: Thu Jun 29 23:34:09 2023 +0800

    [fix](time_zone) be compatible with doris old version for CST time_zone when load orc file in broker load #21263
---
 be/src/vec/exec/format/orc/vorc_reader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/exec/format/orc/vorc_reader.cpp b/be/src/vec/exec/format/orc/vorc_reader.cpp
index a6b2ef9f7b..f1c9884168 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -160,7 +160,7 @@ Status OrcReader::init_reader(
 
     // create orc row reader
     _row_reader_options.range(_range_start_offset, _range_size);
-    _row_reader_options.setTimezoneName(_ctz);
+    _row_reader_options.setTimezoneName(_ctz == "CST" ? "Asia/Shanghai" : _ctz);
     RETURN_IF_ERROR(_init_read_columns());
     _init_search_argument(colname_to_value_range);
     _row_reader_options.include(_read_cols);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org