From db50face4115bcff8ee445cfa50671c953eb93d5 Mon Sep 17 00:00:00 2001 From: caiconghui <55968745+caiconghui@users.noreply.github.com> Date: Wed, 28 Jun 2023 09:44:42 +0800 Subject: [PATCH] [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 --- 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);