LiaCastaneda commented on code in PR #24162:
URL: https://github.com/apache/datafusion/pull/24162#discussion_r3759804228
##########
datafusion/expr/src/higher_order_function.rs:
##########
@@ -261,22 +274,27 @@ impl LambdaArgument {
params: Vec<FieldRef>,
body: Arc<dyn PhysicalExpr>,
captures: Option<RecordBatch>,
+ used_param_indices: &[usize],
) -> Self {
- let fields = match &captures {
+ let used_param_indices = used_param_indices.to_vec();
+ let effective_params = used_param_indices.iter().map(|i|
Arc::clone(¶ms[*i]));
Review Comment:
make sense, done.
--
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]