Skip to content

Extract immutable collection as reusable field. #10351

@beliefer

Description

@beliefer

Description

GlutenConfig's getNativeSessionConf is a public method called in many places.
getNativeSessionConf declare two local fields.

keys = Set(
  DEBUG_ENABLED.key,
  ...
)
keyWithDefault = ImmutableList.of(
    (SQLConf.CASE_SENSITIVE.key, SQLConf.CASE_SENSITIVE.defaultValueString),
    ...
)

We should avoid creating them duplicately when call the getNativeSessionConf.

Gluten version

main branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions