Skip to content

Commit 0188d40

Browse files
committed
add physical lambda function comments
1 parent cd22c04 commit 0188d40

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

datafusion/physical-expr/src/lambda_function.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ impl PhysicalExpr for LambdaFunctionExpr {
304304
{
305305
(Arc::clone(field), Arc::clone(column))
306306
} else {
307+
// To avoid costly copies of uncaptured columns, we swap them with a NullArray
308+
// while keeping the number of columns on the batch the same
309+
// so captured columns indices are kept stable across the whole tree.
307310
(
308311
Arc::new(Field::new(
309312
field.name(),

0 commit comments

Comments
 (0)