Skip to content

Enhance DataFrame table provider to support temporary views #18026

@timsaucer

Description

@timsaucer

Is your feature request related to a problem or challenge?

I would like to create a temporary view of a DataFrame and store it in my session context. My SchemaProvider differentiates how it stores a View vs a TemporaryView. I would like to use the existing DataFrameTableProvider to create temporary views.

Describe the solution you'd like

Enhance DataFrameTableProvider to contain a view type. I think it makes sense to put it in the new() function as a parameter, but it would be non-breaking if we simply added a new method as_temporary_view() which would change an internal data member that stores the view type.

Describe alternatives you've considered

We can duplicate this code, but that is inefficient for maintainability.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions