diff --git a/velox/dwio/dwrf/reader/DwrfReader.h b/velox/dwio/dwrf/reader/DwrfReader.h index 65b9abf724be3..c008d870a9cff 100644 --- a/velox/dwio/dwrf/reader/DwrfReader.h +++ b/velox/dwio/dwrf/reader/DwrfReader.h @@ -124,6 +124,13 @@ class DwrfRowReader : public StrideIndexProvider, int64_t nextReadSize(uint64_t size) override; + std::shared_ptr getType() const { + if (columnSelector_) { + return columnSelector_->getSchema(); + } + return options_.requestedType(); + } + private: // footer std::vector firstRowOfStripe_; @@ -176,13 +183,6 @@ class DwrfRowReader : public StrideIndexProvider, const dwio::common::Statistics& stats, uint32_t nodeId) const; - std::shared_ptr getType() const { - if (columnSelector_) { - return columnSelector_->getSchema(); - } - return options_.requestedType(); - } - bool isEmptyFile() const { return (stripeCeiling_ == firstStripe_); }