We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd22c04 commit 0188d40Copy full SHA for 0188d40
1 file changed
datafusion/physical-expr/src/lambda_function.rs
@@ -304,6 +304,9 @@ impl PhysicalExpr for LambdaFunctionExpr {
304
{
305
(Arc::clone(field), Arc::clone(column))
306
} 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.
310
(
311
Arc::new(Field::new(
312
field.name(),
0 commit comments