Skip to content

PartitionedFile abstraction for flexible table scan #946

Description

@yjshen

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently, we can only handle table input on a file basis. A more flexible and extensible abstraction is desirable.

Describe the solution you'd like

pub struct PartitionedFile {
    /// Path for the file (e.g. URL, filesystem path, etc)
    pub file_path: String,
    /// Statistics of the file
    pub statistics: Statistics,

    // Several feasible extensions

    // 1. partitioned table
    /// Values of partition columns to be appended to each row
    pub partition_value: Option<Vec<ScalarValue>>,

    // 2. sub-file processing
    /// A range of file to process in the current task
    pub start: u64,
    pub end: u64,
}

Activity

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