adriangb commented on code in PR #18719:
URL: https://github.com/apache/datafusion/pull/18719#discussion_r2536926242
##########
datafusion/physical-expr/src/projection.rs:
##########
@@ -396,6 +406,35 @@ impl ProjectionExprs {
))
}
+ /// Project a RecordBatch.
+ ///
+ /// This function accepts a pre-computed output schema instead of calling
[`ProjectionExprs::project_schema`]
+ /// so that repeated calls do not have schema projection overhead.
+ pub fn project_batch(
Review Comment:
I implemented my idea in f6afd71 and was able to use it to simplify
`ProjectionExec` a bit so it's already used 😄
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]