andrei-ionescu commented on a change in pull request #1392:
URL: https://github.com/apache/arrow-datafusion/pull/1392#discussion_r762176794
##########
File path: datafusion/src/datasource/mod.rs
##########
@@ -198,3 +200,27 @@ fn get_col_stats(
})
.collect()
}
+
+fn flatten_schema(schema: &Schema) -> Vec<&Field> {
Review comment:
@Dandandan Simplifying it is not a solution as we need to read/calculate
the statistics for the nested fields too. We will be using the flattened fields
when calling `summarize_min_max` function.
--
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]