stevomitric opened a new pull request, #58839: URL: https://github.com/apache/spark/pull/58839
### What changes were proposed in this pull request? This PR adds support for the TIME data type to the `count_min_sketch` aggregate function. No change to update() is needed: a TIME value is physically a long (nanoseconds of the day), so it flows through the existing case _ => buffer.add(value) branch, which dispatches to addLong via CountMinSketchImpl.add(Object) / Utils.integralToLong. ### Why are the changes needed? count_min_sketch previously rejected TIME columns, even though TIME is a simple long-valued type that the sketch can count like any integral value. This closes that gap so users can build a count-min sketch over a TIME column. ### Does this PR introduce _any_ user-facing change? Yes. count_min_sketch now accepts TIME columns. ### How was this patch tested? New tests in this PR. ### Was this patch authored or co-authored using generative AI tooling? Co-authored-by: Claude Opus 5 -- 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]
