From 184f8bee627b7818072e142609076e64deb9fd5b Mon Sep 17 00:00:00 2001 From: "alex.bianchi" Date: Fri, 4 Dec 2026 20:35:40 +0000 Subject: [PATCH] feat: configure scan runtimes through table and catalog providers --- Cargo.lock | 2 + README.md | 17 ++ crates/datafusion/Cargo.toml | 2 + crates/datafusion/src/catalog/provider.rs | 45 +++- crates/datafusion/src/catalog/schema.rs | 33 ++- crates/datafusion/src/lib.rs | 3 +- .../datafusion/src/table_provider/factory.rs | 17 +- crates/datafusion/src/table_provider/mod.rs | 2 + .../datafusion/src/table_provider/options.rs | 28 +++ .../datafusion/src/table_provider/provider.rs | 40 +++- crates/datafusion/tests/main.rs | 1 + crates/datafusion/tests/runtime.rs | 216 ++++++++++++++++++ 12 files changed, 378 insertions(+), 28 deletions(-) create mode 100644 crates/datafusion/src/table_provider/options.rs create mode 100644 crates/datafusion/tests/runtime.rs diff --git a/Cargo.lock b/Cargo.lock index 09d956f..6b5c244 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3434,8 +3434,10 @@ dependencies = [ "iceberg-datafusion-test-tools", "insta", "parquet", + "serde", "tempfile", "tokio", + "typetag", "uuid", ] diff --git a/README.md b/README.md index 0e5e7e6..63e2e09 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,23 @@ The workspace uses a pinned `iceberg-rust` Git revision. Applications that also depend on Iceberg crates should use the same revision shown in [`Cargo.toml`](Cargo.toml) so Cargo uses one Iceberg crate source. +## Scan runtime configuration + +Use `IcebergTableProviderOptions { runtime: Some(runtime) }` to override the +Iceberg runtime used by scans. Install these options with: + +- `IcebergTableProvider::with_options` for a directly registered table; +- `with_table_options` on the live or static catalog builder; +- `IcebergTableProviderFactory::with_table_options` for SQL external tables. + +Eager discovery is polled on the configured I/O runtime, and readers receive its +I/O and CPU handles. Dropping scan planning cancels its spawned discovery future. +Catalog/metadata lookup and consumption of lazy discovery streams stay on the +caller. This setting does not move all query execution onto the Iceberg runtime, +and does not change write behavior. Keep the underlying Tokio runtimes alive +while using the provider. Without an override, existing runtime behavior is +unchanged. + ## Development The repository's [`rust-toolchain.toml`](rust-toolchain.toml) selects the Rust diff --git a/crates/datafusion/Cargo.toml b/crates/datafusion/Cargo.toml index 950d9a6..bf77f0a 100644 --- a/crates/datafusion/Cargo.toml +++ b/crates/datafusion/Cargo.toml @@ -46,6 +46,8 @@ name = "lazy_scan" harness = false [dev-dependencies] +serde = { version = "1", features = ["derive"] } +typetag = "0.2" criterion = "0.8" iceberg-datafusion-test-tools = { workspace = true } insta = "1" diff --git a/crates/datafusion/src/catalog/provider.rs b/crates/datafusion/src/catalog/provider.rs index 9b0c895..779cbd0 100644 --- a/crates/datafusion/src/catalog/provider.rs +++ b/crates/datafusion/src/catalog/provider.rs @@ -20,13 +20,13 @@ use std::sync::Arc; use datafusion::catalog::{CatalogProvider, SchemaProvider}; use datafusion::common::config_err; -use datafusion::error::Result; +use datafusion::error::{DataFusionError, Result}; use futures::future::try_join_all; use iceberg::table::Table; use iceberg::{Catalog, TableIdent}; use super::schema::IcebergSchemaProvider; -use crate::to_datafusion_error; +use crate::{IcebergTableProviderOptions, to_datafusion_error}; /// Exposes Iceberg namespaces as DataFusion schemas. #[derive(Debug)] @@ -41,6 +41,7 @@ impl IcebergCatalogProvider { IcebergCatalogProviderBuilder { catalog, fixed_tables: None, + table_options: IcebergTableProviderOptions::default(), } } @@ -83,9 +84,16 @@ impl CatalogProvider for IcebergCatalogProvider { pub struct IcebergCatalogProviderBuilder { catalog: Arc, fixed_tables: Option>, + table_options: IcebergTableProviderOptions, } impl IcebergCatalogProviderBuilder { + /// Applies scan settings to tables resolved through this catalog. + pub fn with_table_options(mut self, options: IcebergTableProviderOptions) -> Self { + self.table_options = options; + self + } + /// Exposes only these live tables, without listing the catalog. Tables can /// receive appends, but SQL cannot change the configured membership. pub fn with_fixed_tables( @@ -104,7 +112,10 @@ impl IcebergCatalogProviderBuilder { for id in tables { schemas .entry(id.namespace) - .or_insert_with_key(|ns| IcebergSchemaProvider::fixed(ns.clone())) + .or_insert_with_key(|ns| { + IcebergSchemaProvider::fixed(ns.clone()) + .with_table_options(self.table_options.clone()) + }) .add_live(id.name, catalog.clone()); } return IcebergCatalogProvider::from_schemas(schemas.into_values()); @@ -113,11 +124,17 @@ impl IcebergCatalogProviderBuilder { .list_namespaces(None) .await .map_err(to_datafusion_error)?; - let schemas = try_join_all( - namespaces - .into_iter() - .map(|ns| IcebergSchemaProvider::try_new(catalog.clone(), ns)), - ) + let schemas = try_join_all(namespaces.into_iter().map(|ns| { + let catalog = catalog.clone(); + let options = self.table_options.clone(); + async move { + Ok::<_, DataFusionError>( + IcebergSchemaProvider::try_new(catalog, ns) + .await? + .with_table_options(options), + ) + } + })) .await?; IcebergCatalogProvider::from_schemas(schemas) } @@ -127,9 +144,16 @@ impl IcebergCatalogProviderBuilder { #[derive(Debug, Default)] pub struct IcebergStaticCatalogBuilder { tables: Vec<(Table, Option)>, + table_options: IcebergTableProviderOptions, } impl IcebergStaticCatalogBuilder { + /// Applies scan settings to every detached table in this catalog. + pub fn with_table_options(mut self, options: IcebergTableProviderOptions) -> Self { + self.table_options = options; + self + } + /// Adds a table under its Iceberg identifier using the supplied metadata. pub fn add_static_table(mut self, table: Table) -> Self { self.tables.push((table, None)); @@ -148,7 +172,10 @@ impl IcebergStaticCatalogBuilder { for (table, snapshot) in self.tables { schemas .entry(table.identifier().namespace().clone()) - .or_insert_with_key(|ns| IcebergSchemaProvider::fixed(ns.clone())) + .or_insert_with_key(|ns| { + IcebergSchemaProvider::fixed(ns.clone()) + .with_table_options(self.table_options.clone()) + }) .add_static(table, snapshot)?; } IcebergCatalogProvider::from_schemas(schemas.into_values()) diff --git a/crates/datafusion/src/catalog/schema.rs b/crates/datafusion/src/catalog/schema.rs index 40492e6..4369ff3 100644 --- a/crates/datafusion/src/catalog/schema.rs +++ b/crates/datafusion/src/catalog/schema.rs @@ -36,7 +36,7 @@ use iceberg::table::Table; use iceberg::{Catalog, NamespaceIdent, TableCreation, TableIdent}; use crate::metadata::IcebergMetadataTableProvider; -use crate::table_provider::IcebergTableProvider; +use crate::table_provider::{IcebergTableProvider, IcebergTableProviderOptions}; use crate::to_datafusion_error; /// An Iceberg namespace. Each live lookup loads current metadata from its catalog. @@ -45,6 +45,7 @@ pub(crate) struct IcebergSchemaProvider { pub(super) namespace: NamespaceIdent, ddl_catalog: Option>, tables: Arc>, + table_options: IcebergTableProviderOptions, } #[derive(Clone, Debug)] @@ -60,9 +61,18 @@ impl IcebergSchemaProvider { namespace, ddl_catalog: None, tables: Arc::default(), + table_options: IcebergTableProviderOptions::default(), } } + pub(super) fn with_table_options( + mut self, + options: IcebergTableProviderOptions, + ) -> Self { + self.table_options = options; + self + } + pub(super) async fn try_new( catalog: Arc, namespace: NamespaceIdent, @@ -87,7 +97,8 @@ impl IcebergSchemaProvider { pub(super) fn add_static(&self, table: Table, snapshot: Option) -> Result<()> { let name = table.identifier().name.clone(); - let provider = IcebergTableProvider::from_table(table, snapshot)?; + let provider = IcebergTableProvider::from_table(table, snapshot)? + .with_options(self.table_options.clone()); if self .tables .insert(name.clone(), Registration::Static(Arc::new(provider))) @@ -154,19 +165,27 @@ impl SchemaProvider for IcebergSchemaProvider { let provider: Arc = match entry { Registration::Live(catalog) => { let id = TableIdent::new(self.namespace.clone(), table_name.into()); - let table = catalog.load_table(&id).await.map_err(to_datafusion_error)?; + let mut table = + catalog.load_table(&id).await.map_err(to_datafusion_error)?; + if let Some(runtime) = &self.table_options.runtime { + table = table.with_runtime(runtime.clone()); + } match metadata_table_type { Some(kind) => { Arc::new(IcebergMetadataTableProvider::try_new(table, kind)?) } - None => { - Arc::new(IcebergTableProvider::from_loaded(catalog, id, &table)?) - } + None => Arc::new( + IcebergTableProvider::from_loaded(catalog, id, &table)? + .with_options(self.table_options.clone()), + ), } } Registration::Static(provider) => match metadata_table_type { Some(kind) => { - let (table, _) = provider.resolve().await?; + let (mut table, _) = provider.resolve().await?; + if let Some(runtime) = &self.table_options.runtime { + table = table.with_runtime(runtime.clone()); + } Arc::new(IcebergMetadataTableProvider::try_new(table, kind)?) } None => provider, diff --git a/crates/datafusion/src/lib.rs b/crates/datafusion/src/lib.rs index 0d6fd69..1be8135 100644 --- a/crates/datafusion/src/lib.rs +++ b/crates/datafusion/src/lib.rs @@ -31,6 +31,7 @@ pub mod metadata; pub mod read; pub mod table_provider; pub use table_provider::{ - IcebergTableProvider, IcebergTableProviderFactory, IcebergTableSource, + IcebergTableProvider, IcebergTableProviderFactory, IcebergTableProviderOptions, + IcebergTableSource, }; pub mod write; diff --git a/crates/datafusion/src/table_provider/factory.rs b/crates/datafusion/src/table_provider/factory.rs index 0c5b381..9de6965 100644 --- a/crates/datafusion/src/table_provider/factory.rs +++ b/crates/datafusion/src/table_provider/factory.rs @@ -28,7 +28,7 @@ use iceberg::TableIdent; use iceberg::io::{FileIOBuilder, LocalFsStorageFactory, StorageFactory}; use iceberg::table::StaticTable; -use super::IcebergTableProvider; +use super::{IcebergTableProvider, IcebergTableProviderOptions}; use crate::to_datafusion_error; /// A factory that implements DataFusion's `TableProviderFactory` to create [`IcebergTableProvider`] instances. @@ -99,21 +99,27 @@ use crate::to_datafusion_error; #[derive(Debug, Default)] pub struct IcebergTableProviderFactory { storage_factory: Option>, + table_options: IcebergTableProviderOptions, } impl IcebergTableProviderFactory { pub fn new() -> Self { - Self { - storage_factory: None, - } + Self::default() } /// Create a new factory with a custom storage factory for creating FileIO instances. pub fn new_with_storage_factory(storage_factory: Arc) -> Self { Self { storage_factory: Some(storage_factory), + ..Self::default() } } + + /// Applies process-local settings to every table created by this factory. + pub fn with_table_options(mut self, options: IcebergTableProviderOptions) -> Self { + self.table_options = options; + self + } } #[async_trait] @@ -144,7 +150,8 @@ impl TableProviderFactory for IcebergTableProviderFactory { .await? .into_table(); - let provider = IcebergTableProvider::from_table(table, None)?; + let provider = IcebergTableProvider::from_table(table, None)? + .with_options(self.table_options.clone()); Ok(Arc::new(provider)) } diff --git a/crates/datafusion/src/table_provider/mod.rs b/crates/datafusion/src/table_provider/mod.rs index 4c0ae13..b3f6361 100644 --- a/crates/datafusion/src/table_provider/mod.rs +++ b/crates/datafusion/src/table_provider/mod.rs @@ -18,7 +18,9 @@ //! DataFusion table access for live and detached Iceberg tables. mod factory; +mod options; mod provider; pub use factory::IcebergTableProviderFactory; +pub use options::IcebergTableProviderOptions; pub use provider::{IcebergTableProvider, IcebergTableSource}; diff --git a/crates/datafusion/src/table_provider/options.rs b/crates/datafusion/src/table_provider/options.rs new file mode 100644 index 0000000..b52954a --- /dev/null +++ b/crates/datafusion/src/table_provider/options.rs @@ -0,0 +1,28 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +/// Process-local settings shared by table providers created directly, through a +/// catalog, or by the SQL table factory. Query reader settings remain in the +/// session's Iceberg configuration and ArrowReaderOptions extension. +#[derive(Debug, Clone, Default)] +pub struct IcebergTableProviderOptions { + /// Override the table's scan runtime. Eager discovery is polled on its I/O + /// runtime and readers receive its I/O/CPU handles. Metadata lookup and + /// consumption of lazy task streams remain on the caller. The application + /// must keep the underlying runtimes alive. + pub runtime: Option, +} diff --git a/crates/datafusion/src/table_provider/provider.rs b/crates/datafusion/src/table_provider/provider.rs index 17d1b20..46247ea 100644 --- a/crates/datafusion/src/table_provider/provider.rs +++ b/crates/datafusion/src/table_provider/provider.rs @@ -22,7 +22,9 @@ use async_trait::async_trait; use datafusion::arrow::datatypes::SchemaRef; use datafusion::catalog::Session; use datafusion::common::utils::project_schema; -use datafusion::common::{config_datafusion_err, exec_datafusion_err, not_impl_err}; +use datafusion::common::{ + config_datafusion_err, exec_datafusion_err, exec_err, not_impl_err, +}; use datafusion::datasource::sink::DataSinkExec; use datafusion::datasource::source::DataSourceExec; use datafusion::datasource::{TableProvider, TableType}; @@ -34,7 +36,9 @@ use datafusion::physical_plan::coalesce_partitions::CoalescePartitionsExec; use iceberg::arrow::schema_to_arrow_schema; use iceberg::table::Table; use iceberg::{Catalog, TableIdent}; +use tokio::sync::oneshot; +use super::IcebergTableProviderOptions; use crate::read::{FileScanTaskProviderBuilder, IcebergDataSource}; use crate::to_datafusion_error; use crate::write::commit::IcebergCommitSink; @@ -48,6 +52,7 @@ use crate::write::repartition::repartition; pub struct IcebergTableProvider { source: IcebergTableSource, schema: SchemaRef, + options: IcebergTableProviderOptions, } /// The information needed to reopen a live table or reproduce a detached scan. @@ -89,6 +94,7 @@ impl IcebergTableProvider { Ok(Self { source: IcebergTableSource::Catalog { catalog, ident }, schema: Arc::new(schema), + options: IcebergTableProviderOptions::default(), }) } @@ -114,9 +120,16 @@ impl IcebergTableProvider { Ok(Self { source: IcebergTableSource::Static { table, snapshot_id }, schema: Arc::new(schema), + options: IcebergTableProviderOptions::default(), }) } + /// Configures the scan runtime without changing the table source. + pub fn with_options(mut self, options: IcebergTableProviderOptions) -> Self { + self.options = options; + self + } + /// Returns the source and snapshot selection for plan inspection and codecs. pub fn source(&self) -> &IcebergTableSource { &self.source @@ -155,17 +168,32 @@ impl TableProvider for IcebergTableProvider { filters: &[Expr], limit: Option, ) -> Result> { - let (table, snapshot_id) = self.resolve().await?; + let (mut table, snapshot_id) = self.resolve().await?; + if let Some(runtime) = &self.options.runtime { + table = table.with_runtime(runtime.clone()); + } let schema = project_schema(&self.schema, projection)?; - let tasks = FileScanTaskProviderBuilder::new( + let builder = FileScanTaskProviderBuilder::new( state.task_ctx(), table.clone(), Arc::clone(&schema), ) .with_snapshot_id(snapshot_id) - .with_filters(filters) - .build() - .await?; + .with_filters(filters); + let tasks = if let Some(runtime) = &self.options.runtime { + // Iceberg's runtime handles do not abort tasks on drop. Dropping + // this sender cancels discovery when the caller drops scan(). + let (_cancel_on_drop, canceled) = oneshot::channel::<()>(); + let task = runtime.io().spawn(async move { + tokio::select! { + _ = canceled => exec_err!("Iceberg scan planning canceled"), + result = builder.build() => result, + } + }); + task.await.map_err(to_datafusion_error)?? + } else { + builder.build().await? + }; let source = IcebergDataSource::builder( state.config(), schema, diff --git a/crates/datafusion/tests/main.rs b/crates/datafusion/tests/main.rs index 6c28474..47386cd 100644 --- a/crates/datafusion/tests/main.rs +++ b/crates/datafusion/tests/main.rs @@ -26,6 +26,7 @@ mod metadata_tables; mod page_index; mod plan_nodes; mod projection_pushdown; +mod runtime; mod scan_metrics; mod schema_evolution; mod statistics; diff --git a/crates/datafusion/tests/runtime.rs b/crates/datafusion/tests/runtime.rs new file mode 100644 index 0000000..3cf62a7 --- /dev/null +++ b/crates/datafusion/tests/runtime.rs @@ -0,0 +1,216 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +mod tests { + use std::ops::Range; + use std::sync::atomic::{AtomicBool, Ordering}; + use std::sync::{Arc, Mutex}; + + use async_trait::async_trait; + use bytes::Bytes; + use datafusion::common::{DataFusionError, Result}; + use futures::stream::BoxStream; + use iceberg::io::{ + FileMetadata, FileRead, FileWrite, InputFile, LocalFsStorageFactory, OutputFile, + Storage, StorageConfig, StorageFactory, + }; + use iceberg_datafusion::{ + IcebergDataFusionConfig, IcebergTableProviderFactory, IcebergTableProviderOptions, + }; + use iceberg_datafusion_test_tools::{IcebergTestHarness, create_taxi_table}; + use serde::{Deserialize, Serialize}; + use tokio::runtime::{Builder, Handle, Id}; + + #[test] + fn eager_discovery_and_parquet_opening_use_the_configured_io_runtime() -> Result<()> { + let query = Builder::new_current_thread().enable_all().build()?; + let io = Builder::new_multi_thread() + .worker_threads(1) + .enable_all() + .build()?; + let cpu = Builder::new_multi_thread() + .worker_threads(1) + .enable_all() + .build()?; + let reads = Arc::new(Mutex::new(Reads::default())); + let observed = reads.clone(); + let runtime = iceberg::Runtime::new_with_split(&io, &cpu); + + query.block_on(async { + let (_, rows) = IcebergTestHarness::builder() + .with_iceberg_table_factory( + IcebergTableProviderFactory::new_with_storage_factory(Arc::new( + ObservedFactory { reads: observed }, + )) + .with_table_options( + IcebergTableProviderOptions { + runtime: Some(runtime), + }, + ), + ) + .with_table(create_taxi_table().await?) + .with_session_extension(|mut state| { + state + .config() + .get_or_insert_default() + .options_mut() + .extensions + .insert(IcebergDataFusionConfig::default()); + state + }) + .with_config_option("iceberg.execution.eager_file_planning", true) + .with_config_option("datafusion.execution.target_partitions", 2) + .query("SELECT MAX(vendor_id) AS vendor FROM taxi") + .await?; + insta::assert_snapshot!(rows, @r" + +--------+ + | vendor | + +--------+ + | 2 | + +--------+ + "); + Ok::<_, DataFusionError>(()) + })?; + + // Observe actual manifest reads and the first Parquet range requests. + // Subsequent batch decoding need not run on the I/O runtime. + let reads = reads.lock().unwrap(); + assert_ne!(io.handle().id(), query.handle().id()); + assert_ne!(io.handle().id(), cpu.handle().id()); + assert!(!reads.manifests.is_empty()); + assert!(!reads.parquet_footers.is_empty()); + assert!( + reads.manifests.iter().all(|id| *id == io.handle().id()), + "{reads:?}" + ); + assert!( + reads + .parquet_footers + .iter() + .all(|id| *id == io.handle().id()), + "{reads:?}" + ); + Ok(()) + } + + #[derive(Debug, Default)] + struct Reads { + manifests: Vec, + parquet_footers: Vec, + } + + #[derive(Debug, Clone, Serialize, Deserialize)] + struct ObservedFactory { + #[serde(skip)] + reads: Arc>, + } + + #[typetag::serde] + impl StorageFactory for ObservedFactory { + fn build(&self, config: &StorageConfig) -> iceberg::Result> { + Ok(Arc::new(ObservedStorage { + inner: LocalFsStorageFactory.build(config)?, + reads: self.reads.clone(), + })) + } + } + + #[derive(Debug, Clone, Serialize, Deserialize)] + struct ObservedStorage { + inner: Arc, + #[serde(skip)] + reads: Arc>, + } + + #[async_trait] + #[typetag::serde] + impl Storage for ObservedStorage { + async fn exists(&self, path: &str) -> iceberg::Result { + self.inner.exists(path).await + } + async fn metadata(&self, path: &str) -> iceberg::Result { + self.inner.metadata(path).await + } + async fn read(&self, path: &str) -> iceberg::Result { + if path.ends_with(".avro") { + self.reads + .lock() + .unwrap() + .manifests + .push(Handle::current().id()); + } + self.inner.read(path).await + } + async fn reader(&self, path: &str) -> iceberg::Result> { + let reader = self.inner.reader(path).await?; + if path.ends_with(".parquet") { + Ok(Box::new(ObservedRead { + inner: reader, + reads: self.reads.clone(), + first_read: AtomicBool::new(true), + })) + } else { + Ok(reader) + } + } + async fn write(&self, path: &str, bytes: Bytes) -> iceberg::Result<()> { + self.inner.write(path, bytes).await + } + async fn writer(&self, path: &str) -> iceberg::Result> { + self.inner.writer(path).await + } + async fn delete(&self, path: &str) -> iceberg::Result<()> { + self.inner.delete(path).await + } + async fn delete_prefix(&self, path: &str) -> iceberg::Result<()> { + self.inner.delete_prefix(path).await + } + async fn delete_stream( + &self, + paths: BoxStream<'static, String>, + ) -> iceberg::Result<()> { + self.inner.delete_stream(paths).await + } + fn new_input(&self, path: &str) -> iceberg::Result { + Ok(InputFile::new(Arc::new(self.clone()), path.to_owned())) + } + fn new_output(&self, path: &str) -> iceberg::Result { + self.inner.new_output(path) + } + } + + struct ObservedRead { + inner: Box, + reads: Arc>, + first_read: AtomicBool, + } + + #[async_trait] + impl FileRead for ObservedRead { + async fn read(&self, range: Range) -> iceberg::Result { + // The first range request loads the footer during Parquet opening. + if self.first_read.swap(false, Ordering::Relaxed) { + self.reads + .lock() + .unwrap() + .parquet_footers + .push(Handle::current().id()); + } + self.inner.read(range).await + } + } +}