mkleen commented on code in PR #20047:
URL: https://github.com/apache/datafusion/pull/20047#discussion_r3208663879
##########
datafusion/catalog-listing/src/helpers.rs:
##########
@@ -416,8 +419,15 @@ pub async fn pruned_partition_list<'a>(
table_path
);
- // if no partition col => simply list all the files
- Ok(objects.map_ok(|object_meta| object_meta.into()).boxed())
+ // if no partition col => list all the files
+ Ok(objects
+ .try_filter_map(|object_meta| {
+ futures::future::ready(object_meta_to_partitioned_file(
+ object_meta,
+ table_path.get_table_ref(),
Review Comment:
Table-reference needs to be always passed on the `PartitionedFile` because
file statistics cache is now table-scoped and need the Table-reference for the
caching.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]