[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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user