be/src/format/parquet/vparquet_reader.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <gen_cpp/parquet_types.h> |
21 | | #include <stddef.h> |
22 | | #include <stdint.h> |
23 | | |
24 | | #include <list> |
25 | | #include <memory> |
26 | | #include <string> |
27 | | #include <tuple> |
28 | | #include <unordered_map> |
29 | | #include <unordered_set> |
30 | | #include <vector> |
31 | | |
32 | | #include "common/status.h" |
33 | | #include "format/parquet/parquet_common.h" |
34 | | #include "format/parquet/parquet_predicate.h" |
35 | | #include "format/parquet/vparquet_column_reader.h" |
36 | | #include "format/parquet/vparquet_group_reader.h" |
37 | | #include "format/table/table_format_reader.h" |
38 | | #include "format/table/table_schema_change_helper.h" |
39 | | #include "io/file_factory.h" |
40 | | #include "io/fs/file_meta_cache.h" |
41 | | #include "io/fs/file_reader.h" |
42 | | #include "io/fs/file_reader_writer_fwd.h" |
43 | | #include "runtime/runtime_profile.h" |
44 | | #include "storage/olap_scan_common.h" |
45 | | #include "util/obj_lru_cache.h" |
46 | | |
47 | | namespace cctz { |
48 | | class time_zone; |
49 | | } // namespace cctz |
50 | | namespace doris { |
51 | | class RowDescriptor; |
52 | | class RuntimeState; |
53 | | class SlotDescriptor; |
54 | | class TFileRangeDesc; |
55 | | class TFileScanRangeParams; |
56 | | class TupleDescriptor; |
57 | | |
58 | | namespace io { |
59 | | class FileSystem; |
60 | | struct IOContext; |
61 | | } // namespace io |
62 | | class Block; |
63 | | class FileMetaData; |
64 | | class PageIndex; |
65 | | class ShardedKVCache; |
66 | | class VExprContext; |
67 | | struct RowLineageColumns; |
68 | | } // namespace doris |
69 | | |
70 | | namespace doris { |
71 | | |
72 | | /// Parquet-specific initialization context. |
73 | | /// Extends ReaderInitContext with predicate pushdown fields. |
74 | | struct ParquetInitContext final : public ReaderInitContext { |
75 | | // Safe defaults for standalone readers (delete file readers, push handler) |
76 | | // that don't have conjuncts/predicates. Dereferenced by _do_init_reader. |
77 | | static inline const VExprContextSPtrs EMPTY_CONJUNCTS {}; |
78 | | static inline phmap::flat_hash_map<int, std::vector<std::shared_ptr<ColumnPredicate>>> |
79 | | EMPTY_SLOT_PREDICATES {}; |
80 | | |
81 | | const VExprContextSPtrs* conjuncts = &EMPTY_CONJUNCTS; |
82 | | phmap::flat_hash_map<int, std::vector<std::shared_ptr<ColumnPredicate>>>* |
83 | | slot_id_to_predicates = &EMPTY_SLOT_PREDICATES; |
84 | | const std::unordered_map<std::string, int>* colname_to_slot_id = nullptr; |
85 | | const VExprContextSPtrs* not_single_slot_filter_conjuncts = nullptr; |
86 | | const std::unordered_map<int, VExprContextSPtrs>* slot_id_to_filter_conjuncts = nullptr; |
87 | | bool filter_groups = true; |
88 | | }; |
89 | | |
90 | | class ParquetReader : public TableFormatReader { |
91 | | ENABLE_FACTORY_CREATOR(ParquetReader); |
92 | | |
93 | | public: |
94 | | struct ReaderStatistics { |
95 | | int32_t filtered_row_groups = 0; |
96 | | int32_t filtered_row_groups_by_min_max = 0; |
97 | | int32_t filtered_row_groups_by_bloom_filter = 0; |
98 | | int32_t read_row_groups = 0; |
99 | | int64_t filtered_group_rows = 0; |
100 | | int64_t filtered_page_rows = 0; |
101 | | int64_t lazy_read_filtered_rows = 0; |
102 | | int64_t read_rows = 0; |
103 | | int64_t filtered_bytes = 0; |
104 | | int64_t column_read_time = 0; |
105 | | int64_t parse_meta_time = 0; |
106 | | int64_t parse_footer_time = 0; |
107 | | int64_t file_footer_read_calls = 0; |
108 | | int64_t file_footer_hit_cache = 0; |
109 | | int64_t file_reader_create_time = 0; |
110 | | int64_t open_file_num = 0; |
111 | | int64_t row_group_filter_time = 0; |
112 | | int64_t page_index_filter_time = 0; |
113 | | int64_t read_page_index_time = 0; |
114 | | int64_t parse_page_index_time = 0; |
115 | | int64_t predicate_filter_time = 0; |
116 | | int64_t dict_filter_rewrite_time = 0; |
117 | | int64_t bloom_filter_read_time = 0; |
118 | | }; |
119 | | |
120 | | ParquetReader(RuntimeProfile* profile, const TFileScanRangeParams& params, |
121 | | const TFileRangeDesc& range, size_t batch_size, const cctz::time_zone* ctz, |
122 | | io::IOContext* io_ctx, RuntimeState* state, FileMetaCache* meta_cache = nullptr, |
123 | | bool enable_lazy_mat = true); |
124 | | |
125 | | ParquetReader(RuntimeProfile* profile, const TFileScanRangeParams& params, |
126 | | const TFileRangeDesc& range, size_t batch_size, const cctz::time_zone* ctz, |
127 | | std::shared_ptr<io::IOContext> io_ctx_holder, RuntimeState* state, |
128 | | FileMetaCache* meta_cache = nullptr, bool enable_lazy_mat = true); |
129 | | |
130 | | ParquetReader(const TFileScanRangeParams& params, const TFileRangeDesc& range, |
131 | | io::IOContext* io_ctx, RuntimeState* state, FileMetaCache* meta_cache = nullptr, |
132 | | bool enable_lazy_mat = true); |
133 | | |
134 | | ParquetReader(const TFileScanRangeParams& params, const TFileRangeDesc& range, |
135 | | std::shared_ptr<io::IOContext> io_ctx_holder, RuntimeState* state, |
136 | | FileMetaCache* meta_cache = nullptr, bool enable_lazy_mat = true); |
137 | | |
138 | | ~ParquetReader() override; |
139 | | #ifdef BE_TEST |
140 | | // for unit test |
141 | | void set_file_reader(io::FileReaderSPtr file_reader); |
142 | | #endif |
143 | | |
144 | | // Override to build table_info_node from Parquet file metadata using by_parquet_name. |
145 | | // Subclasses (HiveParquetReader, etc.) call GenericReader::on_before_init_reader directly, |
146 | | // so this override only applies to plain ParquetReader (TVF, load). |
147 | | Status on_before_init_reader(ReaderInitContext* ctx) override; |
148 | | |
149 | | protected: |
150 | | // ---- Unified init_reader(ReaderInitContext*) overrides ---- |
151 | | Status _open_file_reader(ReaderInitContext* ctx) override; |
152 | | Status _do_init_reader(ReaderInitContext* ctx) override; |
153 | | |
154 | | public: |
155 | | Status close() override; |
156 | | |
157 | | // set the delete rows in current parquet file |
158 | 3.03k | void set_delete_rows(const std::vector<int64_t>* delete_rows) { _delete_rows = delete_rows; } |
159 | | |
160 | 0 | int64_t size() const { return _file_reader->size(); } |
161 | | |
162 | | Status _get_columns_impl(std::unordered_map<std::string, DataTypePtr>* name_to_type) override; |
163 | | |
164 | | Status init_schema_reader() override; |
165 | | |
166 | | Status get_parsed_schema(std::vector<std::string>* col_names, |
167 | | std::vector<DataTypePtr>* col_types) override; |
168 | | |
169 | 0 | ReaderStatistics& reader_statistics() { return _reader_statistics; } |
170 | | |
171 | 792 | const tparquet::FileMetaData* get_meta_data() const { return _t_metadata; } |
172 | | |
173 | | Status get_file_metadata_schema(const FieldDescriptor** ptr); |
174 | | |
175 | | void set_create_row_id_column_iterator_func( |
176 | 13.6k | std::function<std::shared_ptr<segment_v2::RowIdColumnIteratorV2>()> create_func) { |
177 | 13.6k | _create_topn_row_id_column_iterator = create_func; |
178 | 13.6k | } |
179 | | |
180 | | /// Access current batch row positions (delegates to RowGroupReader). |
181 | | /// Used by IcebergReaderMixin to build $row_id column. |
182 | 3.20k | const std::vector<segment_v2::rowid_t>& current_batch_row_positions() const { |
183 | 3.20k | return _current_group_reader->current_batch_row_positions(); |
184 | 3.20k | } |
185 | | |
186 | | Status fill_topn_row_id( |
187 | | std::shared_ptr<segment_v2::RowIdColumnIteratorV2> _row_id_column_iterator, |
188 | 2.93k | std::string col_name, Block* block, size_t rows) { |
189 | 2.93k | int col_pos = block->get_position_by_name(col_name); |
190 | 2.93k | DCHECK(col_pos >= 0); |
191 | 2.93k | if (col_pos < 0) { |
192 | 0 | return Status::InternalError("Column {} not found in block", col_name); |
193 | 0 | } |
194 | 2.93k | auto col = block->get_by_position(col_pos).column->assume_mutable(); |
195 | 2.93k | const auto& row_ids = this->current_batch_row_positions(); |
196 | 2.93k | RETURN_IF_ERROR( |
197 | 2.93k | _row_id_column_iterator->read_by_rowids(row_ids.data(), row_ids.size(), col)); |
198 | | |
199 | 2.93k | return Status::OK(); |
200 | 2.93k | } |
201 | | |
202 | 51.5k | bool count_read_rows() override { return true; } |
203 | | |
204 | | void set_condition_cache_context(std::shared_ptr<ConditionCacheContext> ctx) override; |
205 | | |
206 | 324 | bool supports_count_pushdown() const override { return true; } |
207 | | |
208 | | int64_t get_total_rows() const override; |
209 | | |
210 | 10.3k | bool has_delete_operations() const override { |
211 | 10.3k | return _delete_rows != nullptr && !_delete_rows->empty(); |
212 | 10.3k | } |
213 | | |
214 | | /// Disable row-group range filtering (needed when reading delete files |
215 | | /// whose TFileRangeDesc has size=-1). |
216 | 0 | void set_filter_groups(bool v) { _filter_groups = v; } |
217 | | |
218 | | protected: |
219 | | void _collect_profile_before_close() override; |
220 | | |
221 | | // Core block reading implementation |
222 | | Status _do_get_next_block(Block* block, size_t* read_rows, bool* eof) override; |
223 | | |
224 | | // Parquet fills partition/missing columns per-batch internally via RowGroupReader, |
225 | | // so suppress TableFormatReader's default on_after_read_block fill. |
226 | 43.6k | Status on_after_read_block(Block* /*block*/, size_t* /*read_rows*/) override { |
227 | 43.6k | return Status::OK(); |
228 | 43.6k | } |
229 | | |
230 | | // Protected accessors so CRTP mixin subclasses can reach private members |
231 | 3.26k | io::IOContext* get_io_ctx() const { return _io_ctx; } |
232 | 2.12k | std::unordered_map<std::string, uint32_t>*& col_name_to_block_idx_ref() { |
233 | 2.12k | return _col_name_to_block_idx; |
234 | 2.12k | } |
235 | 124k | RuntimeProfile* get_profile() const { return _profile; } |
236 | 26.5k | RuntimeState* get_state() const { return _state; } |
237 | 62.2k | const TFileScanRangeParams& get_scan_params() const { return _scan_params; } |
238 | 29.0k | const TFileRangeDesc& get_scan_range() const { return _scan_range; } |
239 | 2.68k | const TupleDescriptor* get_tuple_descriptor() const { return _tuple_descriptor; } |
240 | 0 | const RowDescriptor* get_row_descriptor() const { return _row_descriptor; } |
241 | 0 | const FileMetaData* get_file_metadata() const { return _file_metadata; } |
242 | | |
243 | | private: |
244 | | struct ParquetProfile { |
245 | | RuntimeProfile::Counter* filtered_row_groups = nullptr; |
246 | | RuntimeProfile::Counter* filtered_row_groups_by_min_max = nullptr; |
247 | | RuntimeProfile::Counter* filtered_row_groups_by_bloom_filter = nullptr; |
248 | | RuntimeProfile::Counter* to_read_row_groups = nullptr; |
249 | | RuntimeProfile::Counter* total_row_groups = nullptr; |
250 | | RuntimeProfile::Counter* filtered_group_rows = nullptr; |
251 | | RuntimeProfile::Counter* filtered_page_rows = nullptr; |
252 | | RuntimeProfile::Counter* lazy_read_filtered_rows = nullptr; |
253 | | RuntimeProfile::Counter* filtered_bytes = nullptr; |
254 | | RuntimeProfile::Counter* raw_rows_read = nullptr; |
255 | | RuntimeProfile::Counter* column_read_time = nullptr; |
256 | | RuntimeProfile::Counter* parse_meta_time = nullptr; |
257 | | RuntimeProfile::Counter* parse_footer_time = nullptr; |
258 | | RuntimeProfile::Counter* file_reader_create_time = nullptr; |
259 | | RuntimeProfile::Counter* open_file_num = nullptr; |
260 | | RuntimeProfile::Counter* row_group_filter_time = nullptr; |
261 | | RuntimeProfile::Counter* page_index_read_calls = nullptr; |
262 | | RuntimeProfile::Counter* page_index_filter_time = nullptr; |
263 | | RuntimeProfile::Counter* read_page_index_time = nullptr; |
264 | | RuntimeProfile::Counter* parse_page_index_time = nullptr; |
265 | | RuntimeProfile::Counter* file_footer_read_calls = nullptr; |
266 | | RuntimeProfile::Counter* file_footer_hit_cache = nullptr; |
267 | | RuntimeProfile::Counter* decompress_time = nullptr; |
268 | | RuntimeProfile::Counter* decompress_cnt = nullptr; |
269 | | RuntimeProfile::Counter* page_read_counter = nullptr; |
270 | | RuntimeProfile::Counter* page_cache_write_counter = nullptr; |
271 | | RuntimeProfile::Counter* page_cache_compressed_write_counter = nullptr; |
272 | | RuntimeProfile::Counter* page_cache_decompressed_write_counter = nullptr; |
273 | | RuntimeProfile::Counter* page_cache_hit_counter = nullptr; |
274 | | RuntimeProfile::Counter* page_cache_missing_counter = nullptr; |
275 | | RuntimeProfile::Counter* page_cache_compressed_hit_counter = nullptr; |
276 | | RuntimeProfile::Counter* page_cache_decompressed_hit_counter = nullptr; |
277 | | RuntimeProfile::Counter* decode_header_time = nullptr; |
278 | | RuntimeProfile::Counter* read_page_header_time = nullptr; |
279 | | RuntimeProfile::Counter* decode_value_time = nullptr; |
280 | | RuntimeProfile::Counter* decode_dict_time = nullptr; |
281 | | RuntimeProfile::Counter* decode_level_time = nullptr; |
282 | | RuntimeProfile::Counter* decode_null_map_time = nullptr; |
283 | | RuntimeProfile::Counter* skip_page_header_num = nullptr; |
284 | | RuntimeProfile::Counter* parse_page_header_num = nullptr; |
285 | | RuntimeProfile::Counter* predicate_filter_time = nullptr; |
286 | | RuntimeProfile::Counter* dict_filter_rewrite_time = nullptr; |
287 | | RuntimeProfile::Counter* bloom_filter_read_time = nullptr; |
288 | | }; |
289 | | |
290 | | // ---- set_fill_columns sub-functions ---- |
291 | | void _collect_predicate_columns_from_conjuncts( |
292 | | std::unordered_map<std::string, std::pair<uint32_t, int>>& predicate_columns); |
293 | | void _classify_columns_for_lazy_read( |
294 | | const std::unordered_map<std::string, std::pair<uint32_t, int>>& predicate_columns, |
295 | | const std::unordered_map<std::string, std::tuple<std::string, const SlotDescriptor*>>& |
296 | | partition_columns, |
297 | | const std::unordered_map<std::string, VExprContextSPtr>& missing_columns); |
298 | | |
299 | | Status _open_file(); |
300 | | void _init_profile(); |
301 | | void _close_internal(); |
302 | | Status _next_row_group_reader(); |
303 | | RowGroupReader::PositionDeleteContext _get_position_delete_ctx( |
304 | | const tparquet::RowGroup& row_group, |
305 | | const RowGroupReader::RowGroupIndex& row_group_index); |
306 | | void _init_system_properties(); |
307 | | void _init_file_description(); |
308 | | |
309 | | // At the beginning of reading next row group, index should be loaded and used to filter data efficiently. |
310 | | Status _process_page_index_filter( |
311 | | const tparquet::RowGroup& row_group, |
312 | | const RowGroupReader::RowGroupIndex& row_group_index, |
313 | | const std::vector<std::unique_ptr<MutilColumnBlockPredicate>>& push_down_pred, |
314 | | RowRanges* candidate_row_ranges); |
315 | | |
316 | | // check this range contain this row group. |
317 | | bool _is_misaligned_range_group(const tparquet::RowGroup& row_group) const; |
318 | | |
319 | | // Row Group min-max Filter |
320 | | Status _process_column_stat_filter( |
321 | | const tparquet::RowGroup& row_group, |
322 | | const std::vector<std::unique_ptr<MutilColumnBlockPredicate>>& push_down_pred, |
323 | | bool* filter_group, bool* filtered_by_min_max, bool* filtered_by_bloom_filter); |
324 | | |
325 | | /* |
326 | | * 1. row group min-max filter |
327 | | * 2. row group bloom filter |
328 | | * 3. page index min-max filter |
329 | | * |
330 | | * return Status && row_ranges (lines to be read) |
331 | | */ |
332 | | Status _process_min_max_bloom_filter( |
333 | | const RowGroupReader::RowGroupIndex& row_group_index, |
334 | | const tparquet::RowGroup& row_group, |
335 | | const std::vector<std::unique_ptr<MutilColumnBlockPredicate>>& push_down_pred, |
336 | | RowRanges* row_ranges); |
337 | | |
338 | | int64_t _get_column_start_offset( |
339 | | const tparquet::ColumnMetaData& column_init_column_readers) const; |
340 | 0 | std::string _meta_cache_key(const std::string& path) { return "meta_" + path; } |
341 | | std::vector<io::PrefetchRange> _generate_random_access_ranges( |
342 | | const RowGroupReader::RowGroupIndex& group, size_t* avg_io_size); |
343 | | void _collect_profile(); |
344 | | |
345 | 1.35k | Status _set_read_one_line_impl() override { return Status::OK(); } |
346 | | |
347 | | bool _exists_in_file(const std::string& expr_name) const; |
348 | | bool _type_matches(const int cid) const; |
349 | | void _init_read_columns(const std::vector<std::string>& column_names); |
350 | | |
351 | | io::FileSystemProperties _system_properties; |
352 | | io::FileDescription _file_description; |
353 | | |
354 | | // the following fields are for parquet meta data cache. |
355 | | // if _meta_cache is not null, the _file_metadata will be got from _meta_cache, |
356 | | // and it is owned by _meta_cache_handle. |
357 | | // if _meta_cache is null, _file_metadata will be managed by _file_metadata_ptr, |
358 | | // which will be released when deconstructing. |
359 | | // ATTN: these fields must be before _file_reader, to make sure they will be released |
360 | | // after _file_reader. Otherwise, there may be heap-use-after-free bug. |
361 | | ObjLRUCache::CacheHandle _meta_cache_handle; |
362 | | std::unique_ptr<FileMetaData> _file_metadata_ptr; |
363 | | const tparquet::FileMetaData* _t_metadata = nullptr; |
364 | | |
365 | | // _tracing_file_reader wraps _file_reader. |
366 | | // _file_reader is original file reader. |
367 | | // _tracing_file_reader is tracing file reader with io context. |
368 | | // If io_ctx is null, _tracing_file_reader will be the same as file_reader. |
369 | | io::FileReaderSPtr _file_reader = nullptr; |
370 | | io::FileReaderSPtr _tracing_file_reader = nullptr; |
371 | | std::unique_ptr<RowGroupReader> _current_group_reader; |
372 | | |
373 | | RowGroupReader::RowGroupIndex _current_row_group_index {-1, 0, 0}; |
374 | | // read to the end of current reader |
375 | | bool _row_group_eof = true; |
376 | | size_t _total_groups; // num of groups(stripes) of a parquet(orc) file |
377 | | |
378 | | std::shared_ptr<ConditionCacheContext> _condition_cache_ctx; |
379 | | |
380 | | // Through this node, you can find the file column based on the table column. |
381 | | std::shared_ptr<TableSchemaChangeHelper::Node> _table_info_node_ptr = |
382 | | TableSchemaChangeHelper::ConstNode::get_instance(); |
383 | | |
384 | | //sequence in file, need to read |
385 | | std::vector<std::string> _read_table_columns; |
386 | | std::vector<std::string> _read_file_columns; |
387 | | // The set of file columns to be read; only columns within this set will be filtered using the min-max predicate. |
388 | | std::set<std::string> _read_table_columns_set; |
389 | | // Deleted rows will be marked by Iceberg/Paimon. So we should filter deleted rows when reading it. |
390 | | const std::vector<int64_t>* _delete_rows = nullptr; |
391 | | int64_t _delete_rows_index = 0; |
392 | | |
393 | | // parquet file reader object |
394 | | RuntimeProfile* _profile = nullptr; |
395 | | const TFileScanRangeParams& _scan_params; |
396 | | const TFileRangeDesc& _scan_range; |
397 | | size_t _batch_size; |
398 | | // Bytes-per-row estimate from the previous batch, used to pre-shrink _batch_size |
399 | | // before reading so that oversized blocks are prevented from the current call onward. |
400 | | // Zero means no prior data (first batch). |
401 | | size_t _load_bytes_per_row = 0; |
402 | | int64_t _range_start_offset; |
403 | | int64_t _range_size; |
404 | | const cctz::time_zone* _ctz = nullptr; |
405 | | |
406 | | std::unordered_map<int, tparquet::OffsetIndex> _col_offsets; |
407 | | |
408 | | ReaderStatistics _reader_statistics; |
409 | | ParquetColumnReader::ColumnStatistics _column_statistics; |
410 | | ParquetProfile _parquet_profile; |
411 | | bool _closed = false; |
412 | | io::IOContext* _io_ctx = nullptr; |
413 | | std::shared_ptr<io::IOContext> _io_ctx_holder; |
414 | | RuntimeState* _state = nullptr; |
415 | | const TupleDescriptor* _tuple_descriptor = nullptr; |
416 | | const RowDescriptor* _row_descriptor = nullptr; |
417 | | const FileMetaData* _file_metadata = nullptr; |
418 | | // Pointer to external column name to block index mapping (from FileScanner) |
419 | | std::unordered_map<std::string, uint32_t>* _col_name_to_block_idx = nullptr; |
420 | | bool _enable_lazy_mat = true; |
421 | | bool _enable_filter_by_min_max = true; |
422 | | bool _enable_filter_by_bloom_filter = true; |
423 | | const std::unordered_map<std::string, int>* _colname_to_slot_id = nullptr; |
424 | | const VExprContextSPtrs* _not_single_slot_filter_conjuncts = nullptr; |
425 | | const std::unordered_map<int, VExprContextSPtrs>* _slot_id_to_filter_conjuncts = nullptr; |
426 | | std::unordered_map<tparquet::Type::type, bool> _ignored_stats; |
427 | | |
428 | | protected: |
429 | | // Used for column lazy read. Protected so Iceberg/Paimon subclasses can |
430 | | // register synthesized columns in on_before_init_reader. |
431 | | RowGroupReader::LazyReadContext _lazy_read_ctx; |
432 | | bool _filter_groups = true; |
433 | 0 | size_t get_batch_size() const { return _batch_size; } |
434 | | |
435 | | std::function<std::shared_ptr<segment_v2::RowIdColumnIteratorV2>()> |
436 | | _create_topn_row_id_column_iterator; |
437 | | |
438 | | private: |
439 | | std::set<uint64_t> _column_ids; |
440 | | std::set<uint64_t> _filter_column_ids; |
441 | | |
442 | | std::vector<std::unique_ptr<MutilColumnBlockPredicate>> _push_down_predicates; |
443 | | Arena _arena; |
444 | | }; |
445 | | |
446 | | } // namespace doris |