You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/03/19 20:36:01 UTC
[I] Make `DiskManagerBuilder` [datafusion]
alamb opened a new issue, #15319:
URL: https://github.com/apache/datafusion/issues/15319
### Is your feature request related to a problem or challenge?
Creating a `DiskManager` today is somewhat awkward as described by @2010YOUY01 in https://github.com/apache/datafusion/pull/14975#discussion_r1977146593
It would be nice to follow the builder pattern that is used elsewhere in DataFusion such a [`RuntimeEnvBuilder`](https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeEnvBuilder.html) -- see [example](https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeEnv.html)
### Describe the solution you'd like
I would like to have an API that looks like this (the `with_max_temp_directory_size` is part of https://github.com/apache/datafusion/pull/14975)
```rust
let manager: Arc<DiskManager> = DiskManagerBuilder::new()
.with_max_temp_directory_size(100*1024*1024)
.build_arc();
```
### Describe alternatives you've considered
I suggest:
1. Renaming `DiskManagerConfig` to `DiskManagerBuilder`
2. Leave a backwards compatible deprecated type (like is here https://github.com/apache/datafusion/blob/8e2bfa474743e83ad31070410328f6b39d213361/datafusion/execution/src/runtime_env.rs#L165-L166)
3. Deprecate `DiskManager::try_new`
4. Add documentation example on DiskManager, similarly to the [example](https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeEnv.html) on RuntimeEnv
### Additional context
_No response_
--
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Make `DiskManagerBuilder` to construct DiskManagers [datafusion]
Posted by "Standing-Man (via GitHub)" <gi...@apache.org>.
Standing-Man commented on issue #15319:
URL: https://github.com/apache/datafusion/issues/15319#issuecomment-2739850033
Hi @alamb, If the PR has been closed, should the issue still remain open?
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Make `DiskManagerBuilder` to construct DiskManagers [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on issue #15319:
URL: https://github.com/apache/datafusion/issues/15319#issuecomment-2740030711
> Hi [@alamb](https://github.com/alamb), If the PR has been closed, should the issue still remain open?
Yes, we're exploring an alternative to that PR, but this issue is still intentional. We'd like to be able to build the `DiskManager` like this issue's example, which is not possible for the current implementation.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Make `DiskManagerBuilder` to construct DiskManagers [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #15319:
URL: https://github.com/apache/datafusion/issues/15319#issuecomment-2740835113
Agreed -- I think this API change is beneficial regardless
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Make `DiskManagerBuilder` to construct DiskManagers [datafusion]
Posted by "Standing-Man (via GitHub)" <gi...@apache.org>.
Standing-Man commented on issue #15319:
URL: https://github.com/apache/datafusion/issues/15319#issuecomment-2738575044
take
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Make `DiskManagerBuilder` to construct DiskManagers [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 closed issue #15319: Make `DiskManagerBuilder` to construct DiskManagers
URL: https://github.com/apache/datafusion/issues/15319
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org