blaginin commented on code in PR #13576: URL: https://github.com/apache/datafusion/pull/13576#discussion_r1876201273
########## datafusion/common/src/config.rs: ########## @@ -973,16 +980,24 @@ impl<F: ConfigField + Default> ConfigField for Option<F> { #[macro_export] macro_rules! config_field { - ($t:ty) => { + ($t:ty $(, $transform:expr)?) => { impl ConfigField for $t { fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str) { v.some(key, self, description) } fn set(&mut self, _: &str, value: &str) -> Result<()> { + $( + let value = $transform(&value); Review Comment: nice idea, updated in https://github.com/apache/datafusion/pull/13576/commits/0574ab8b449f454f54ae1c3c39bc0a63377ecd5c -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org