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/09/20 12:02:01 UTC
[I] Make `SessionContext::enable_url_table` consume `self` [datafusion]
alamb opened a new issue, #12551:
URL: https://github.com/apache/datafusion/issues/12551
### Is your feature request related to a problem or challenge?
While working on https://github.com/datafusion-contrib/datafusion-dft/pull/152 and trying to enable the dynamic file catalog, I wrote code like this:
```rust
let session_ctx = ...;
session_ctx.enable_url_table();
```
which compiled fine but did not work
It turns out I needed to do this (use the returned SessionContext)
```rust
let session_ctx = ...;
session_ctx.enable_url_table();
```
It would be nice if the compiler had told me about this
### Describe the solution you'd like
I would like to make `enable_url_table` consume `self` this making my first bug a compiler error rather than silently ignored
### Describe alternatives you've considered
_No response_
### 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 `SessionContext::enable_url_table` consume `self` [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #12551: Make `SessionContext::enable_url_table` consume `self`
URL: https://github.com/apache/datafusion/issues/12551
--
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