HaoYang670 opened a new issue, #3505:
URL: https://github.com/apache/arrow-datafusion/issues/3505
**Describe the bug**
Currently, when we get a config in invalid format, a default value will be
returned. I'm not sure whether this is user-friendly.
**To Reproduce**
Steps to reproduce the behavior:
```rust
#[test]
fn get_config_in_invalid_format() {
let config = ConfigOptions::new();
let key = "datafusion.execution.batch_size";
// this is great
assert!(config.get(key).is_some());
assert_eq!(8192, config.get_u64(key));
// these are weird
assert_eq!(false, config.get_bool(key));
assert_eq!("", config.get_string(key));
}
```
**Expected behavior**
Personally, I'd like the Datafusion to give some more precise information,
for example returning `None` or an error message.
**Additional context**
This is related to #3500.
--
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]