Skip to content

Commit

Permalink
[fix](time_zone) be compatible with doris old version for CST time_zo…
Browse files Browse the repository at this point in the history
…ne when load orc file in broker load (apache#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 <[email protected]>
  • Loading branch information
caiconghui authored Jun 28, 2023
1 parent 98b2bc8 commit db50fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/exec/format/orc/vorc_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db50fac

Please sign in to comment.