Dandandan commented on a change in pull request #1392:
URL: https://github.com/apache/arrow-datafusion/pull/1392#discussion_r761880357
##########
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:
In the current uses, it seems we only need the total number of fields
(i.e. return a `usize`) instead of the field information.
It seems to me that would be a bit more simple / faster than first
collecting all the fields if we don't need the results of that.
--
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]