Skip to content

Commit 78cfc11

Browse files
committed
fix comment
1 parent 483c39a commit 78cfc11

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/paimon/format/orc/orc_file_batch_reader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ Result<::orc::RowReaderOptions> OrcFileBatchReader::CreateRowReaderOptions(
241241
include_fields.push_back(field_name);
242242
}
243243
row_reader_options.include(include_fields);
244+
// In order to avoid issue like https://github.com/alibaba/paimon-cpp/issues/42, we explicitly
245+
// set GMT timezone.
244246
row_reader_options.setTimezoneName("GMT");
245247
row_reader_options.searchArgument(std::move(search_arg));
246248

src/paimon/format/orc/orc_format_writer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ Result<::orc::WriterOptions> OrcFormatWriter::PrepareWriterOptions(
239239
OptionsUtils::GetValueFromMap<size_t>(options, ORC_ROW_INDEX_STRIDE,
240240
DEFAULT_ROW_INDEX_STRIDE));
241241
writer_options.setRowIndexStride(row_index_stride);
242+
// In order to avoid issue like https://github.com/alibaba/paimon-cpp/issues/42, we explicitly
243+
// set GMT timezone.
242244
writer_options.setTimezoneName("GMT");
243245
return writer_options;
244246
}

0 commit comments

Comments
 (0)