neilconway opened a new issue, #20622: URL: https://github.com/apache/datafusion/issues/20622
### Is your feature request related to a problem or challenge? Several array set operations (e.g., `array_distinct`, `array_union`, `array_intersect`, `array_except`) have this property: * Convert the input(s) using RowConverter, ideally in bulk * Apply the set operation as appropriate, which adds or removes elements from the set of `Rows` * Convert the final set of `Rows` back into `ArrayRef` However, we can do a little better for the final step: instead of converting from `Rows` back into `ArrayRef`, we can just track which indices in the input(s) correspond to the values we want to return. We can then grab those values with a single `take`, which avoids the Row-to-Arrayref deserialization overhead. ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
