3636
3737namespace paimon ::orc {
3838
39- // The FileReaderWrapper is a decorator class designed to support GetNextRowToRead.
39+ // The OrcReaderWrapper is a decorator class designed to support GetNextRowToRead.
4040class OrcReaderWrapper {
4141 public:
4242 ~OrcReaderWrapper () {
@@ -54,7 +54,7 @@ class OrcReaderWrapper {
5454 ReadRangeGenerator::Create (reader.get (), natural_read_size, options));
5555 auto reader_wrapper = std::unique_ptr<OrcReaderWrapper>(
5656 new OrcReaderWrapper (std::move (reader), std::move (range_generator), file_name,
57- batch_size, std::move ( arrow_pool) , orc_pool));
57+ batch_size, arrow_pool, orc_pool));
5858 return reader_wrapper;
5959 }
6060
@@ -76,7 +76,7 @@ class OrcReaderWrapper {
7676 }
7777
7878 Status SetReadRanges (const std::vector<std::pair<uint64_t , uint64_t >>& read_ranges) {
79- // this is just a hint, apache orc not support this .
79+ // Intentionally a no-op: SetReadRanges is a best-effort hint only .
8080 return Status::OK ();
8181 }
8282
@@ -101,7 +101,7 @@ class OrcReaderWrapper {
101101 range_generator_ (std::move(range_generator)),
102102 file_name_(file_name),
103103 batch_size_(batch_size),
104- arrow_pool_(std::move( arrow_pool) ),
104+ arrow_pool_(arrow_pool),
105105 orc_pool_(orc_pool) {}
106106
107107 std::unique_ptr<::orc::Reader> reader_;
0 commit comments