crepererum commented on code in PR #5419:
URL: https://github.com/apache/arrow-datafusion/pull/5419#discussion_r1118884746
##########
datafusion/core/src/datasource/listing/table.rs:
##########
@@ -661,6 +663,20 @@ impl TableProvider for ListingTable {
})
.collect::<Result<Vec<_>>>()?;
+ let filters = if let Some(expr) = conjunction(filters.to_vec()) {
+ // NOTE: Use the table schema (NOT file schema) here because
`expr` may contain references to partition columns.
+ let table_df_schema =
self.table_schema.as_ref().clone().to_dfschema()?;
+ let filters = create_physical_expr(
+ &expr,
+ &table_df_schema,
+ &self.table_schema,
+ state.execution_props(),
Review Comment:
Uses the real `ExeuctionProps` now :)
--
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]