GideonPotok commented on code in PR #46404:
URL: https://github.com/apache/spark/pull/46404#discussion_r1592899719
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Mode.scala:
##########
@@ -162,10 +196,10 @@ object ModeBuilder extends ExpressionBuilder {
override def build(funcName: String, expressions: Seq[Expression]):
Expression = {
val numArgs = expressions.length
if (numArgs == 0) {
- Mode(UnresolvedWithinGroup)
+ Mode(UnresolvedWithinGroup, collationEnabled =
SQLConf.get.collationEnabled)
} else if (numArgs == 1) {
// For compatibility with function calls without WITHIN GROUP.
- Mode(expressions(0))
+ Mode(expressions(0), collationEnabled = SQLConf.get.collationEnabled)
Review Comment:
will do!
--
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]