akupchinskiy commented on PR #27047: URL: https://github.com/apache/datafusion/pull/27047#issuecomment-7172014976
Thanks @alamb, that's a fair point. The time zone case is just where the cost shows up most (the shared `Arc<str>` refcount), but the underlying issue is the general `FirstLastGroupsAccumulator` keeping each group's ordering values as `Vec<ScalarValue>`. I'll rework this PR so the accumulator stores the orderings without `ScalarValue` (for example in the arrow row format, compared as bytes). That should fix the time zone case and also help multi-column and string orderings. I'll update the PR with benchmark numbers once it's ready. -- 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]
