-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate SessionConfig and ConfigOptions #3887
Comments
@alamb thank you! while i was changing some of the setter (in e.g. n should be greater than 0 for batch_size Do you think we should leave them in |
I think if there are specialized setters they can do the validation -- so if left the setter in I guess in the long term it isn't so clear to me why we need two structures (SessionConfig and ConfigOptions) 🤔 |
@thinkharderdev inspired me to propose making the config options strongly typed -- would love to get other opinions on it #4517 (comment) |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
While messing with thishttps://github.com//pull/3885 I found it quite confusing that
SessionConfig
is different thanConfigOptions
and they had different ways of serializing / deserializing their values.The new
ConfigOptions
was added by @andygrove #2754 and we can now see and set them via environment variables etc and are documented 🎉https://github.com/apache/arrow-datafusion/blob/b654fdea697b9aec1cb487e292dd288e5c9d09e3/datafusion/core/src/config.rs#L235-L239
But it seems like
SessionConfig
is the old way and is still used (e.g. a field was just added by @Dandandan in #3846)Describe the solution you'd like
It would be nice to unify the two (by moving all SessionConfig values into
ConfigOptions
)https://github.com/apache/arrow-datafusion/blob/b654fdea697b9aec1cb487e292dd288e5c9d09e3/datafusion/core/src/execution/context.rs#L1128-L1156
Which is what I believe this comment in to_props is talking about:
https://github.com/apache/arrow-datafusion/blob/b654fdea697b9aec1cb487e292dd288e5c9d09e3/datafusion/core/src/execution/context.rs#L1282-L1289
Describe alternatives you've considered
Leave split brained as is
Additional context
#3821
The text was updated successfully, but these errors were encountered: