We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeEnv
While making a reproducer #12136, I found configuring the SessionContext to use a memory limit and disk manager quite akward
Here is what I had to do
let mem_limit = 10 * 1024 * 1024; let pool = FairSpillPool::new(mem_limit); let config = RuntimeConfig::new() .with_memory_pool(Arc::new(pool)) .with_disk_manager(DiskManagerConfig::new()); let runtime_env = RuntimeEnv::new(config)?; let builder = SessionStateBuilder::new().with_runtime_env(Arc::new(runtime_env)); let ctx = SessionContext::new_with_state(builder.build());
It would be nice to have the configurations be more of a builder style
Perhaps the example from above could look something more like the following (with some examples):
let mem_limit = 10 * 1024 * 1024; let runtime_env = RuntimeConfig::new() .with_memory_pool(Arc::new(FairSpillPool::new(mem_limit))) .with_disk_manager(DiskManagerConfig::new()); // Change: add a build method to RuntimeConfig to .builder(); let builder = SessionStateBuilder::new() .with_runtime_env(Arc::new(runtime_env)); let ctx = SessionContext::new_with_state(builder.build());
No response
The text was updated successfully, but these errors were encountered:
I think this would be fairly straightforward to add and learn how to use the DataFusion APIs
Sorry, something went wrong.
take
❤️
theirix
Successfully merging a pull request may close this issue.
Is your feature request related to a problem or challenge?
While making a reproducer #12136, I found configuring the SessionContext to use a memory limit and disk manager quite akward
Here is what I had to do
Describe the solution you'd like
It would be nice to have the configurations be more of a builder style
Perhaps the example from above could look something more like the following (with some examples):
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: