viirya commented on code in PR #9236:
URL: https://github.com/apache/arrow-datafusion/pull/9236#discussion_r1515378496
##########
datafusion/common/src/utils.rs:
##########
@@ -78,6 +78,29 @@ pub fn project_schema(
Ok(schema)
}
+/// Checks if the given projection is valid for the given schema.
+pub fn can_project(schema: &SchemaRef, projection: Option<&Vec<usize>>) ->
Result<()> {
Review Comment:
There is already `datafusion/physical-plan/src/common.rs`, maybe?
--
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]