Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[SPARK-29883][SQL] Implement a helper method for aliasing bool_and() and bool_or() #26712
What changes were proposed in this pull request?
This PR introduces a method
Why are the changes needed?
Error message is wrong when alias name is used for
Does this PR introduce any user-facing change?
How was this patch tested?
Output before this PR,
After this PR,
### What changes were proposed in this pull request? This PR is to use `expressionWithAlias` for remaining functions for which alias name can be used. Remaining functions are: `Average, First, Last, ApproximatePercentile, StddevSamp, VarianceSamp` PR #26712 introduced `expressionWithAlias` ### Why are the changes needed? Error message is wrong when alias name is used for above mentioned functions. ### Does this PR introduce any user-facing change? No ### How was this patch tested? Manually Closes #26808 from amanomer/fncAlias. Lead-authored-by: Aman Omer <email@example.com> Co-authored-by: Aman Omer <firstname.lastname@example.org> Signed-off-by: Wenchen Fan <email@example.com>