Skip to content

Make data type of FileScanConfig.table_partition_cols a vector of Field #7875

@NGA-TRAN

Description

@NGA-TRAN

Is your feature request related to a problem or challenge?

Currently, the table_partition_cols of FileScanConfig is a vector of (String, DataType) to store only column name and data type https://github.com/apache/arrow-datafusion/blob/37d6bf08c948418fe6c72d072d988c2875d81e02/datafusion/core/src/datasource/physical_plan/file_scan_config.rs#L104

In our IOx case, a column has more meaning than just name and data type and need the Field data type to convey that. We hit a bug of missing column schema information because of missing other information a Field provides

Describe the solution you'd like

Replace pub table_partition_cols: Vec<(String, DataType)>,
with pub table_partition_cols: Vec<Field>,

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions