HaoYang670 commented on PR #3522:
URL:
https://github.com/apache/arrow-datafusion/pull/3522#issuecomment-1250175529
> what is the plan for casting after all?
we have already had a typeless `get` API:
```rust
/// get a configuration option
pub fn get(&self, key: &str) -> Option<ScalarValue> {
self.options.get(key).cloned()
}
```
for users who don't know the type of the config.
For other `get` APIs (get_bool, get_u8, get_string), I prefer returning an
error when the types aren't matched.
cc @andygrove @alamb
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]