Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50061][SQL] Enable analyze table for collated columns
### 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 Closes #48586 from stevomitric/stevomitric/analyze-fix. Authored-by: Stevo Mitric <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information