Skip to content

unify env var/default resolution into shared primitives #23743

Description

@Matt711

Part of #23740.

StreamingOptions's _opt() and StreamingExecutor's _make_default_factory() are
independently written, near-identical implementations of "explicit value, then env
var(s), then default". An inline block in ConfigOptions.from_polars_engine and
MemoryResourceConfig()'s own construction are two more independent copies of "explicit
value, then build a nested object if enabled, then a fallback", for the memory resource
config specifically. Replace both groups with one shared function each, used everywhere a
field of that shape is declared, regardless of which dataclass declares it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions