From 2a7641051a64ce17a5756bb17e2050eef2b5eacf Mon Sep 17 00:00:00 2001 From: huangxiaoping <1754789345@qq.com> Date: Thu, 18 Jun 2026 14:48:02 +0800 Subject: [PATCH] [SPARK-57524][SQL] Correct SHOW TABLE EXTENDED property formatting --- .../execution/datasources/v2/ShowTablesExtendedExec.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowTablesExtendedExec.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowTablesExtendedExec.scala index ed62890c87d89..732df1ba6ba4d 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowTablesExtendedExec.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowTablesExtendedExec.scala @@ -100,9 +100,8 @@ case class ShowTablesExtendedExec( val properties = conf.redactOptions(table.properties.asScala.toMap).toList .filter(kv => !CatalogV2Util.TABLE_RESERVED_PROPERTIES.contains(kv._1)) - .sortBy(_._1).map { - case (key, value) => key + "=" + value - }.mkString("[", ",", "]") + .sortBy(_._1) + .map { case (key, value) => key + "=" + value } if (!table.properties().isEmpty) { results.put("Table Properties", properties.mkString("[", ", ", "]")) }