Skip to content

Commit

Permalink
Scatter struct nulls when deserializing Presto wire format
Browse files Browse the repository at this point in the history
  • Loading branch information
Orri Erling committed Dec 10, 2023
1 parent 4f95700 commit 8a3382a
Show file tree
Hide file tree
Showing 4 changed files with 611 additions and 498 deletions.
4 changes: 2 additions & 2 deletions velox/exec/SpillFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ uint64_t SpillWriter::write(
MicrosecondTimer timer(&timeUs);
if (batch_ == nullptr) {
serializer::presto::PrestoVectorSerde::PrestoOptions options = {
kDefaultUseLosslessTimestamp, compressionKind_};
kDefaultUseLosslessTimestamp, compressionKind_, true};
batch_ = std::make_unique<VectorStreamGroup>(pool_);
batch_->createStreamTree(
std::static_pointer_cast<const RowType>(rows->type()),
Expand Down Expand Up @@ -290,7 +290,7 @@ SpillReadFile::SpillReadFile(
numSortKeys_(numSortKeys),
sortCompareFlags_(sortCompareFlags),
compressionKind_(compressionKind),
readOptions_{kDefaultUseLosslessTimestamp, compressionKind_},
readOptions_{kDefaultUseLosslessTimestamp, compressionKind_, true},
pool_(pool) {
constexpr uint64_t kMaxReadBufferSize =
(1 << 20) - AlignedBuffer::kPaddedSize; // 1MB - padding.
Expand Down
Loading

0 comments on commit 8a3382a

Please sign in to comment.