You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "m-mueller678 (via GitHub)" <gi...@apache.org> on 2025/10/22 13:30:09 UTC
[I] `AsRef` as argument is practically unusable [datafusion]
m-mueller678 opened a new issue, #18220:
URL: https://github.com/apache/datafusion/issues/18220
Currently, [datafusion::execution::runtime_env::RuntimeEnv::object_store](https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeEnv.html#method.object_store) takes an `impl AsRef<Url>`. Neither `Url` nor `&Url` implement this trait, so I am confused as to how I am supposed to use this. I ended up passing a `Box<Url>`, but I doubt that is the intended way to go. I think it should take a `&Url` instead. If `AsRef<Url>` is actually the intended type, then an example of how to use this would be nice.
--
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] `AsRef` as argument is practically unusable [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #18220:
URL: https://github.com/apache/datafusion/issues/18220#issuecomment-3433127704
I think what is typically used is `ObjectStoreUrl`
https://docs.rs/datafusion/latest/datafusion/datasource/object_store/struct.ObjectStoreUrl.html#impl-AsRef%3CUrl%3E-for-ObjectStoreUrl
We should improve the documentation about this (aka mention `ObjectStoreUrl` as an option
--
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