You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project Hive Partition Columns With ProjectionExec #2291
Currently the values of Hive partitions are projected within each of the various file format specific physical operators. As described in #2079 this has a number of drawbacks
Describe the solution you'd like
Rather than handling partition projection within the file scan operator, I would like to propose modifying ListingTable to add a ProjectionExec within TableProvider::scan instead of relying on the FileFormat implementations to do this. This ProjectionExec would be created with a set of literal expressions corresponding to the partition values
Therefore instead of TableProvider::scan generating something like
The logic could instead be moved to FileFormat::create_physical_plan implementations, but I think it would be better to keep what is a catalog detail close to the catalog implementation.
Activity