jayzhan211 opened a new issue, #13968: URL: https://github.com/apache/datafusion/issues/13968
### Is your feature request related to a problem or challenge? Both these 2 exec run `MemoryStream`. The difference is that we evaluate the batch for `ValuesExec`. Given there similarity I think we can introduce `try_new_as_values` for `MemoryExec` for `ValuesExec`, to avoid duplicated concept. ### Describe the solution you'd like Introduce `MemoryExec::try_new_as_values` that does what `ValuesExec` does. And also support multiple partition for `ValuesExec` based on the existing `MemoryExec` implementation, this can be done in another PR if it is not trivial. ### Describe alternatives you've considered Have a good reason that we should keep `ValuesExec` ### 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org