Weston Pace created ARROW-16290:
-----------------------------------
Summary: [C++] ExecuteScalarExpression, when calling a nullary
function on a nullary batch, resets the batch length to 1
Key: ARROW-16290
URL: https://issues.apache.org/jira/browse/ARROW-16290
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Weston Pace
At the moment ARROW-16286 prevents us from using ExecuteScalarExpression on
nullary functions. However, if we bypass constant folding, then we run into
another problem. The batch passed to the function always has length = 1.
This appears to be tied up with the logic of ExecBatchIterator that I don't
quite follow entirely. However, we should be preserving the batch length of
the input to ExecuteScalarExpression and passing that to the function.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)