AngersZhuuuu opened a new pull request #34380: URL: https://github.com/apache/spark/pull/34380
### What changes were proposed in this pull request? This PR implements aggregation function `histogram_numeric`. Function `histogram_numeric` returns an approximate histogram of a numerical column using a user-specified number of bins. For example, the histogram of column `col` when split to 3 bins. Syntax: #### an approximate histogram of a numerical column using a user-specified number of bins. histogram_numebric(col, nBins) ###### Returns an approximate histogram of a column `col` into 3 bins. SELECT histogram_numebric(col, 3) FROM table ##### Returns an approximate histogram of a column `col` into 5 bins. SELECT histogram_numebric(col, 5) FROM table ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? No change from user side ### How was this patch tested? Added UT -- 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]
