huangxiaopingRD commented on code in PR #8358:
URL: https://github.com/apache/hudi/pull/8358#discussion_r1170757814
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/HelpProcedure.scala:
##########
@@ -54,8 +53,9 @@ class HelpProcedure extends BaseProcedure with
ProcedureBuilder with Logging {
result.append("synopsis").append(line)
.append(tab).append("call
[command]([key1]=>[value1],[key2]=>[value2])").append(line)
result.append("commands and description").append(line)
- procedures.keySet.foreach(name => {
- val builderSupplier: Option[Supplier[ProcedureBuilder]] =
procedures.get(name)
+ procedures.toSeq.sortBy(_._1).foreach(procedure => {
+ val name = procedure._1
+ val builderSupplier: Option[Supplier[ProcedureBuilder]] =
Option.apply(procedure._2)
if (builderSupplier.isDefined) {
Review Comment:
@bvaradar Thanks for your review. The test case was added.
--
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]