Skip to content

Extension mechanism for SessionConfig #2939

Closed

Description

@crepererum

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As a DataFusion user (concrete: the IOx team) I would like to be able to bind Any object to the SessionConfig so all traits that receive SessionState (e.g. TableProvider::scan) to receive application-specific objects, e.g. for tracing or caching.

Describe the solution you'd like
Attach some Arc<dyn Any> to SessionConfig.

Describe alternatives you've considered

  • Using the SessionState instead. I find that application-specific "stuff" might be better attached to the config, but I don't have a strong opinion on that.
  • Use the existing ConfigOptions. The problem is that these options only allow ScalarValues to be attached, which is not powerful enough to hold arbitrary objects.

Additional context
None.

Activity

  1. added 2 commits that reference this issue on Jul 18, 2022
    2bc9267
    3e7073a
  2. added a commit that references this issue on Jul 19, 2022
    9aa38c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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