wangyum commented on a change in pull request #29577:
URL: https://github.com/apache/spark/pull/29577#discussion_r479665506



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala
##########
@@ -91,7 +88,7 @@ private[hive] class SparkGetFunctionsOperation(
               DEFAULT_HIVE_CATALOG, // FUNCTION_CAT
               db, // FUNCTION_SCHEM
               funcIdentifier.funcName, // FUNCTION_NAME
-              info.getUsage, // REMARKS
+              "    Usage:\n      " + info.getUsage.trim + "\n" + 
info.getExtended, // REMARKS

Review comment:
       ```s"Usage: ${info.getUsage}\nExtended Usage:${info.getExtended}"```?  
In order to match `DescribeFunctionCommand`: 
https://github.com/apache/spark/blob/7048fff2304bd44c3c6b7e57a485200a8959203d/sql/core/src/main/scala/org/apache/spark/sql/execution/command/functions.scala#L144-L148




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



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

Reply via email to