cloud-fan commented on a change in pull request #26053: [SPARK-29379][SQL]SHOW 
FUNCTIONS  show '!=', '<>' , 'between', 'case'
URL: https://github.com/apache/spark/pull/26053#discussion_r335267938
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/functions.scala
 ##########
 @@ -222,6 +223,13 @@ case class ShowFunctionsCommand(
           case (f, "USER") if showUserFunctions => f.unquotedString
           case (f, "SYSTEM") if showSystemFunctions => f.unquotedString
         }
-    functionNames.sorted.map(Row(_))
+    if (showSystemFunctions) {
+      (functionNames ++
+        StringUtils.filterPattern(Seq("!=", "<>", "between", "case"), 
pattern.getOrElse("*")))
 
 Review comment:
   shall we add comment like 
https://github.com/apache/spark/blob/9b8d63e7ce76740eb0fc08fcd2b24849ff7693be/sql/core/src/main/scala/org/apache/spark/sql/execution/command/functions.scala#L117

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to