You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2026/07/04 15:26:04 UTC

[I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

comphead opened a new issue, #23322:
URL: https://github.com/apache/datafusion/issues/23322

   
   
   I think one difference was that the RuntimeConfig is potentially shared across multiple SessionConfigs (and maybe can also be adjusted during plan execution)
   
   I agree trying to consolidate RuntimeConfig and SessioNConfig should be considered as an independent project
   
   _Originally posted by @alamb in https://github.com/apache/datafusion/issues/23316#issuecomment-4881517563_
               


-- 
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] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "ByteBaker (via GitHub)" <gi...@apache.org>.
ByteBaker commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-5666550419

   @haochunchang Thank you so much. I've lately been occupied and couldn't gather time for this. I'll be happy to leave comments once I'm able to review this. Should be doable within the next day or two.


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-4909791890

   And to be clear, I think we need to keep the "when to make breaking changes" in mind 
   
   https://datafusion.apache.org/contributor-guide/api-health.html#when-to-make-breaking-api-changes
   
   Specifically I think refactoring without any external feature benefit is not a good idea. We should only make API changes when it is needed to add some new capability. etc


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "ByteBaker (via GitHub)" <gi...@apache.org>.
ByteBaker commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-6317043823

   @haochunchang first of all, thank you for contributing, and apologies for the delay in getting back to review this.
   
   I managed to go through the code. Fair disclosure, I'm not a datafusion maintainer. So I'll only comment to the merits of the diff.
   
   The API itself, or the context specific to the datafusion would determine what parts would actually pass through. For that @comphead and @alamb can help.
   
   I've added 3 comments on your PR. Additionally, my nit is that the PR description is a little too dense (having been generated by claude) which makes it quite hard for a human reviewer. Request you to also simplify the same. Thanks.


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "haochunchang (via GitHub)" <gi...@apache.org>.
haochunchang commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-6468489004

   @ByteBaker 
   No worries, I understand the review bandwidth is a scarce resource.
   Very appreciate the review, I have addressed them into a version and also try bullet-pointed the PR description.


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "ByteBaker (via GitHub)" <gi...@apache.org>.
ByteBaker commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-4914270559

   I'll run an analysis on the surface area of the potential change. That should help us determine what to do.


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "ByteBaker (via GitHub)" <gi...@apache.org>.
ByteBaker commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-4882776719

   @comphead thanks for creating this and tracking the proposal. Let's see how we can proceed on this. I'd like to take this up once we have some clarity on how to go about this.


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-4882907314

   Thanks @ByteBaker for being interested in this. As @alamb correctly mentioned the RuntimeConfig values shared across session, so we need to investigate if it makes sense `RuntimeConfig` configs absorbed by `SessionConfig`(unlikely IMO). Or keep `RuntimeConfig` is a separate field in SessionConfig but wrapping values into `ConfigOptions` which would unify framework working with config values


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


Re: [I] chore: Explore combining `SessionConfig` and `RuntimeConfig` into same framework [datafusion]

Posted by "haochunchang (via GitHub)" <gi...@apache.org>.
haochunchang commented on issue #23322:
URL: https://github.com/apache/datafusion/issues/23322#issuecomment-5603217669

   Hi @ByteBaker , I'm new to DataFusion and would like to try tackling this issue. I've reviewed the duplication across RuntimeConfigValues, RuntimeEnv::config_entries, and the set_runtime_variable/reset_runtime_variable match arms, and would like to take a stab at consolidating them into a ConfigField-based schema without breaking any public API.
   
   The core idea is to re-use ConfigField for RuntimeConfig construction
   
   Currently I have opened a draft PR to working on that direction, happy to learn any risks and happy to change given any feedback.


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