stevomitric opened a new pull request, #48586: URL: https://github.com/apache/spark/pull/48586
### What changes were proposed in this pull request? In this PR the `analyze table` command is enabled for collated strings. Current implementation collects stats based on the collation-aware `Aggregate` expression, so this PR only enables the aggregation. ### Why are the changes needed? To enable `analyze table` command for collated strings. ### Does this PR introduce _any_ user-facing change? Yes, currently doing: ```sql ANALYZE TABLE test_table COMPUTE STATISTICS FOR COLUMNS c ``` where c is collated string, fails because of unsupported datatype. This PR addresses this issue and enables the command. ### How was this patch tested? New test in this PR. ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
