[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 <caiconghui1@jd.com>
This commit is contained in:
caiconghui
2023-06-28 09:44:42 +08:00
committed by GitHub
parent 98b2bc87b5
commit db50face41

View File

@ -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);