minor: SessionStateBuilder::with_default_features
ergonomics
#14899
Labels
SessionStateBuilder::with_default_features
ergonomics
#14899
Is your feature request related to a problem or challenge?
Just a small note about ergonomics of
SessionStateBuilder
, as I spent some time to figure out why:fails with
Execution("Unable to find factory for DELTA_TABLE")
?Apparently ordering of with_ methods matters as
will work as expected.
Apparently,
with_default_features
will override table factories if called last (like I would usually do):Describe the solution you'd like
Would it make sense from ergonomic perspective to make
with_default_features()
rather thanwith_default_features(self)
and force it to be the first statement in the builder.Describe alternatives you've considered
It can stay as it is, I might be pedantic, but would make sense to document it (which I personally would probably miss)
or don't override/join values if already there.
Additional context
No response
The text was updated successfully, but these errors were encountered: