Skip to content

Commit

Permalink
fix internal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yma11 committed Aug 8, 2024
1 parent cf8e821 commit 959f214
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions velox/dwio/parquet/reader/RepeatedColumnReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ void MapColumnReader::read(
elementReader_->seekTo(childTargetReadOffset_, false);
}

void MapColumnReader::filterRowGroups(
uint64_t rowGroupSize,
const dwio::common::StatsContext& context,
dwio::common::FormatData::FilterRowGroupsResult& result) const {
// empty placeholder to avoid incorrect calling on parent's impl
}

ListColumnReader::ListColumnReader(
const TypePtr& requestedType,
const std::shared_ptr<const dwio::common::TypeWithId>& fileType,
Expand Down Expand Up @@ -306,4 +313,11 @@ void ListColumnReader::read(
child_->seekTo(childTargetReadOffset_, false);
}

void ListColumnReader::filterRowGroups(
uint64_t rowGroupSize,
const dwio::common::StatsContext& context,
dwio::common::FormatData::FilterRowGroupsResult& result) const {
// empty placeholder to avoid incorrect calling on parent's impl
}

} // namespace facebook::velox::parquet
10 changes: 10 additions & 0 deletions velox/dwio/parquet/reader/RepeatedColumnReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ class MapColumnReader : public dwio::common::SelectiveMapColumnReader {
/// supplied before receiving new lengths.
void skipUnreadLengths();

void filterRowGroups(
uint64_t rowGroupSize,
const dwio::common::StatsContext&,
dwio::common::FormatData::FilterRowGroupsResult&) const override;

private:
RepeatedLengths lengths_;
RepeatedLengths keyLengths_;
Expand Down Expand Up @@ -148,6 +153,11 @@ class ListColumnReader : public dwio::common::SelectiveListColumnReader {
/// supplied before receiving new lengths.
void skipUnreadLengths();

void filterRowGroups(
uint64_t rowGroupSize,
const dwio::common::StatsContext&,
dwio::common::FormatData::FilterRowGroupsResult&) const override;

private:
RepeatedLengths lengths_;
arrow::LevelInfo levelInfo_;
Expand Down

0 comments on commit 959f214

Please sign in to comment.