Peng-Lei commented on a change in pull request #34753:
URL: https://github.com/apache/spark/pull/34753#discussion_r759099408



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -1158,8 +1158,9 @@ case class ShowCreateTableCommand(
     // If it is a Hive table, we already convert its metadata and fill in a 
provider.
     builder ++= s"USING ${metadata.provider.get}\n"
 
-    val dataSourceOptions = 
conf.redactOptions(metadata.storage.properties).map {
-      case (key, value) => s"${quoteIdentifier(key)} 
'${escapeSingleQuotedString(value)}'"
+    val dataSourceOptions = 
conf.redactOptions(metadata.storage.properties).toSeq.sortBy(_._1).map {
+      case (key, value) =>
+        s"'${escapeSingleQuotedString(key)}' = 
'${escapeSingleQuotedString(value)}'"

Review comment:
       keep consistent with v2. also sort it.




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