viirya commented on code in PR #9236:
URL: https://github.com/apache/arrow-datafusion/pull/9236#discussion_r1515157206
##########
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:
I'm not sure if this is enough common to be put here (`common`)? Seems you
can keep it in the module it is used for now. If we have more usage of it, we
can pull it to more common place later. So we don't increase public APIs
unnecessarily.
--
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]