Skip to content

Commit

Permalink
[oap ] Fix ORC failed UT
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh authored and zhouyuan committed Aug 28, 2024
1 parent ddd6eb4 commit 91f7802
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions velox/dwio/dwrf/reader/SelectiveDecimalColumnReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class SelectiveDecimalColumnReader : public SelectiveColumnReader {

void getValues(RowSet rows, VectorPtr* result) override;

bool hasBulkPath() const override {
return false;
}

private:
template <bool kDense>
void readHelper(RowSet rows);
Expand Down
6 changes: 5 additions & 1 deletion velox/dwio/dwrf/reader/SelectiveIntegerDirectColumnReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class SelectiveIntegerDirectColumnReader
}

bool hasBulkPath() const override {
return true;
if (format == velox::dwrf::DwrfFormat::kOrc) {
return false; // RLEv2 does't support FastPath yet
} else {
return true;
}
}

void seekToRowGroup(uint32_t index) override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ class SelectiveStringDictionaryColumnReader

uint64_t skip(uint64_t numValues) override;

bool hasBulkPath() const override {
if (version_ == velox::dwrf::RleVersion_1) {
return true;
} else {
return false; // RLEv2 does't support FastPath yet
}
}

void read(vector_size_t offset, RowSet rows, const uint64_t* incomingNulls)
override;

Expand Down

0 comments on commit 91f7802

Please sign in to comment.