crepererum opened a new issue, #8355: URL: https://github.com/apache/arrow-datafusion/issues/8355
### Is your feature request related to a problem or challenge? Currently `EmptyExec` has a parameter that says "return one row": https://github.com/apache/arrow-datafusion/blob/19bdcdc4140f0b36023626195d84bfbf970b752d/datafusion/physical-plan/src/empty.rs#L35-L44 In that case, it's not really empty. This is confusing and a source of bugs because optimization passes now have to check if that flag is set or not (e.g. to prune sub-trees). I would also argue that the use case of "produce row" is different: while `EmptyExec` can totally occur during production (e.g. when data / sub-trees are pruned based on statistics) the "one row" case is very likely for testing. ### Describe the solution you'd like Split that exec node into two types: 1. `EmptyExec`: really produces nothing 2. `OneRowExec`: takes over the one row use case ### Describe alternatives you've considered Not doing anything. ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
