nuno-faria commented on PR #15712:
URL: https://github.com/apache/datafusion/pull/15712#issuecomment-2804320430

   > Sensible changes, but I'm unsure of the implementation. I've had a quick 
look at the config_namespace! macro and see that there is a `transform` can be 
specified - Could that be used here?
   
   @ctsk Something like this?
   ```rust
   pub target_partitions: usize, transform = |x: &str| if x == "0" ...
   ```
   
   It appears to work well, however `with_target_partitions` must be changed to 
call `set` instead of assigning directly to `execution.target_partitions`. 
   
   Should `transform = ...` be a closure or a new standalone function?
   


-- 
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

Reply via email to