dtenedor commented on code in PR #56468:
URL: https://github.com/apache/spark/pull/56468#discussion_r3617123958


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/resolver/FunctionResolverUtils.scala:
##########
@@ -119,17 +114,8 @@ trait FunctionResolverUtils {
         
.isTemporaryFunction(FunctionIdentifier(unresolvedFunction.nameParts.head))
   }
 
-  private def isCount(
-      unresolvedFunction: UnresolvedFunction,
-      normalizeFunctionName: Boolean = true
-  ): Boolean = {
-    val isCountName = if (normalizeFunctionName) {
-      unresolvedFunction.nameParts.head.toLowerCase(Locale.ROOT) == "count"
-    } else {
-      unresolvedFunction.nameParts.head == "count"
-    }
-
-    unresolvedFunction.nameParts.length == 1 && isCountName
+  private def isCount(unresolvedFunction: UnresolvedFunction): Boolean = {
+    
FunctionResolution.isUnqualifiedOrBuiltinFunctionName(unresolvedFunction.nameParts,
 "count")

Review Comment:
   OK, sounds good



##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -409,7 +410,7 @@ object SQLConf {
       )
       .version("4.1.0")
       .doubleConf
-      .createWithDefault(if (Utils.isTesting) 1.0 else 0.001)
+      .createWithDefault(if (Utils.isTesting) 1.0 else 0.1)

Review Comment:
   Thanks for confirming!



-- 
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]

Reply via email to