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 2024/05/22 10:43:43 UTC
[I] Improve docs and examples for register_object_store [datafusion]
alamb opened a new issue, #10616:
URL: https://github.com/apache/datafusion/issues/10616
The problem is that when trying to use urls in ListingTables (or ParquetExec), if you try with a scheme like `file://` it won't work unless you have registered an object store handler
However, the current user experience is bad -- the error message is mysterious and confusing and it is not obvious how to register the correct listing table
I would recommend two things:
# Suggestion 1: Change the error message
Change the error message to include instructions on how to fix the issue
For example, instead of
> No suitable object store found for file://
Perhaps it could be something more like
> No object store registered for url scheme 'file://'. See `RuntimeEnv::register_object_store`
# Suggestion 2: Add an example to the docs
Once the error message directs to `RuntimeEnv::register_object_store` then it would be ideal if the docs
https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeEnv.html#method.register_object_store
actually had an example
So that would perhaps take the form of adapting the example above as a doc example
Does that make sense?
_Originally posted by @alamb in https://github.com/apache/datafusion/issues/9280#issuecomment-2123183351_
--
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 it easier to register object stores [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #10616:
URL: https://github.com/apache/datafusion/issues/10616#issuecomment-2125312965
Thanks again @aditanase 🙏
--
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 it easier to register object stores [datafusion]
Posted by "aditanase (via GitHub)" <gi...@apache.org>.
aditanase commented on issue #10616:
URL: https://github.com/apache/datafusion/issues/10616#issuecomment-2124570011
@alamb sent a quick PR - let me know if you were thinking of more than this. Thanks for the pointers!
--
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 it easier to register object stores [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #10616: Make it easier to register object stores
URL: https://github.com/apache/datafusion/issues/10616
--
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