@@ -36,14 +36,14 @@ ScanContext::ScanContext(const std::string& path, bool is_streaming_mode,
3636 const std::shared_ptr<ScanFilter>& scan_filter,
3737 const std::shared_ptr<GlobalIndexResult>& global_index_result,
3838 const std::shared_ptr<RealtimeContext>& realtime_context,
39+ const std::shared_ptr<MemoryPool>& memory_pool,
3940 const std::shared_ptr<Executor>& executor,
4041 const std::shared_ptr<FileSystem>& specific_file_system,
4142 const std::optional<std::string>& table_schema,
4243 const std::map<std::string, std::string>& options,
4344 const std::shared_ptr<Cache>& cache,
4445 const std::shared_ptr<FormatTable>& format_table,
45- const std::shared_ptr<TableScanResources>& table_resources,
46- const std::shared_ptr<MemoryPool>& memory_pool)
46+ const std::shared_ptr<TableScanResources>& table_resources)
4747 : path_(path),
4848 is_streaming_mode_ (is_streaming_mode),
4949 limit_(limit),
@@ -249,9 +249,9 @@ Result<std::unique_ptr<ScanContext>> ScanContextBuilder::Finish() {
249249 impl_->path_ , impl_->is_streaming_mode_ , impl_->limit_ ,
250250 std::make_shared<ScanFilter>(impl_->predicates_ , impl_->partition_filters_ ,
251251 impl_->bucket_filter_ ),
252- impl_->global_index_result_ , impl_->realtime_context_ , executor,
252+ impl_->global_index_result_ , impl_->realtime_context_ , impl_-> memory_pool_ , executor,
253253 impl_->specific_file_system_ , impl_->table_schema_ , options, impl_->cache_ ,
254- impl_->format_table_ , impl_->table_resources_ , impl_-> memory_pool_ );
254+ impl_->format_table_ , impl_->table_resources_ );
255255 impl_->Reset ();
256256 return ctx;
257257}
0 commit comments