my-vegetable-has-exploded commented on code in PR #9236:
URL: https://github.com/apache/arrow-datafusion/pull/9236#discussion_r1515372841
##########
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:
> So we don't increase public APIs unnecessarily.
Agree with it. I place it here because I think it can be used in #7932 .
Shall we create `utils.rs` under `datafusion/physical-plan/src` ?
--
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]