pub fn merge_captures_with_args(
captures: Option<&RecordBatch>,
params: &[FieldRef],
args: &[ArrayRef],
) -> Result<RecordBatch>Expand description
Merge the lambda body captured columns with it’s arguments Datafusion relies on an unspecified field ordering implemented in this function As such, this is the only correct way to merge the captured values with the arguments The number of args should not be lower than the number of params
See also merge_captures_with_lazy_args and merge_captures_with_boxed_lazy_args that lazily computes only the necessary arguments to match the number of params