Skip to content

Cache DataFusion SessionContext in Session #3685

@wjones127

Description

@wjones127

We often construct a new SessionContext in merge_insert, which can be expensive. Instead, we should re-use the same one.

In fact, we can probably just have one of them, and set the target partitions, and spill configuration to new values when we convert to SessionState.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions