terbed commented on issue #58:
URL:
https://github.com/apache/datafusion-iceberg/issues/58#issuecomment-6107662091
This would look like something as follows:
```rust
use datafusion::prelude::{SessionConfig, SessionContext};
use datafusion_iceberg::read::IcebergReadOptions;
let mut options = IcebergReadOptions::default();
options.metadata_size_hint = Some(64 * 1024);
options.range_coalesce_bytes = Some(16 * 1024);
let config = SessionConfig::new().with_option_extension(options);
let ctx = SessionContext::new_with_config(config);
```
Once the extension is registered, the same settings can be changed through
SQL:
```rust
SET iceberg.metadata_size_hint = 65536;
SET iceberg.range_coalesce_bytes = 16384;
```
Both fields default to `None`, preserving Iceberg’s existing reader
defaults. Explicit values would be forwarded through the common scan path,
covering both static and catalog-backed table providers.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]