File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
datafusion/physical-expr-common/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ pub fn scatter(mask: &BooleanArray, truthy: &dyn Array) -> Result<ArrayRef> {
9393}
9494
9595/// Evaluates expressions against a record batch.
96+ /// This will convert the resulting ColumnarValues to ArrayRefs,
97+ /// duplicating any ScalarValues that may have been returned.
98+ /// This function does not perform any checks that the resulting arrays
99+ /// have the same length as the record batch.
100+ // NOTE: This means that this should not be called on expressions that may return
101+ // arrays of different lengths (e.g. filtering/flattening etc).
102+ // Also, consider avoiding this if your code can use optimizations for ScalarValues.
96103#[ inline]
97104pub fn evaluate_expressions_to_arrays (
98105 exprs : & [ Arc < dyn PhysicalExpr > ] ,
You can’t perform that action at this time.
0 commit comments