Skip to content

Reorganize table providers by table format #1009

@rdettai

Description

@rdettai

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently the TableProvider implementations are split by file format (Parquet, CSV...). One other solution to organize TableProviders would be by table format (file system listing, Iceberg, Delta).

Describe the solution you'd like

  • ExecutionPlan implementations would remain organized by file format. A TableProvider could create different types of execution plan according to its configuration or auto-discovering the data file format from the information stored in the table format
  • the current implementations for Parquet, CSV, JSON and Avro would go into a ListingTable provider. Implicitly the table format implemented currently:
    • is given a directory as input
    • discovers the files using the file system "listing" operation
  • Schema inference, when required, would be resolved outside the TableProvider and and would be exposed as a service by ballista

Describe alternatives you've considered
An alternative is to leave the table providers organized as is and try to solve the table formats at a different moment of the planning. This is discussed in this design document.

This ListingTable provider could also be added into an external crate. But in that case it would be a partial fork of DataFusion that would require to be maintained separately.

Additional context

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