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 rui-mo committed Sep 10, 2024
1 parent 61f593e commit f770f80
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 @@ -41,6 +41,10 @@ class SelectiveDecimalColumnReader : public SelectiveColumnReader {

void getValues(const 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 @@ -64,7 +64,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 @@ -58,6 +58,14 @@ class SelectiveStringDictionaryColumnReader
const RowSet& rows,
const uint64_t* incomingNulls) override;

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

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

private:
Expand Down

0 comments on commit f770f80

Please sign in to comment.