You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/06/28 01:44:51 UTC

[doris] branch master updated: [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.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new db50face41 [fix](time_zone) be compatible with doris old version for CST time_zone when load orc file in broker load (#21263)
db50face41 is described below

commit db50face4115bcff8ee445cfa50671c953eb93d5
Author: caiconghui <55...@users.noreply.github.com>
AuthorDate: Wed Jun 28 09:44:42 2023 +0800

    [fix](time_zone) be compatible with doris old version for CST time_zone when load orc file in broker load (#21263)
    
    Fix error for broker load with orc file when time_zone is CST of which message is "Failed to create orc row reader. reason = Can't open /usr/share/zoneinfo/CST"
    Co-authored-by: caiconghui1 <ca...@jd.com>
---
 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 8b1ccd8ccc..140ca30987 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -744,7 +744,7 @@ Status OrcReader::set_fill_columns(
 
     // 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);
     _row_reader_options.include(_read_cols);
     if (_lazy_read_ctx.can_lazy_read) {
         _row_reader_options.filter(_lazy_read_ctx.predicate_orc_columns);


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