Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3678,8 +3678,16 @@
<profile>
<id>scala-2.13</id>
<properties>
<scala.version>2.13.8</scala.version>
<scala.version>2.13.9</scala.version>
<scala.binary.version>2.13</scala.binary.version>
<!--
SPARK-56488: Clear maven.compiler.target to prevent scala-maven-plugin
from auto-converting it into scalac -release 8. With Scala >= 2.13.9,
the plugin maps target to -release, but -release 8 uses ct.sym which hides
sun.* packages needed by Spark at compile time.
-->
<maven.compiler.source />
<maven.compiler.target />
</properties>
<build>
<pluginManagement>
Expand All @@ -3693,7 +3701,6 @@
<arg>-deprecation</arg>
<arg>-feature</arg>
<arg>-explaintypes</arg>
<arg>-target:jvm-1.8</arg>
<arg>-Wconf:cat=deprecation:wv,any:e</arg>
<arg>-Wunused:imports</arg>
<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ trait ShowCreateTableCommandBase extends SQLConfHelper {
metadata
.comment
.map("COMMENT '" + escapeSingleQuotedString(_) + "'\n")
.foreach(builder.append)
.foreach(s => builder.append(s))
}

protected def showTableProperties(metadata: CatalogTable, builder: StringBuilder): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ case class ShowCreateTableExec(
private def showTableUsing(table: Table, builder: StringBuilder): Unit = {
Option(table.properties.get(TableCatalog.PROP_PROVIDER))
.map("USING " + escapeSingleQuotedString(_) + "\n")
.foreach(builder.append)
.foreach(s => builder.append(s))
}

private def showTableOptions(
Expand Down Expand Up @@ -123,7 +123,7 @@ case class ShowCreateTableExec(
if (isManagedOption.isEmpty || !isManagedOption.get.equalsIgnoreCase("true")) {
Option(table.properties.get(TableCatalog.PROP_LOCATION))
.map("LOCATION '" + escapeSingleQuotedString(_) + "'\n")
.foreach(builder.append)
.foreach(s => builder.append(s))
}
}

Expand All @@ -150,7 +150,7 @@ case class ShowCreateTableExec(
private def showTableComment(table: Table, builder: StringBuilder): Unit = {
Option(table.properties.get(TableCatalog.PROP_COMMENT))
.map("COMMENT '" + escapeSingleQuotedString(_) + "'\n")
.foreach(builder.append)
.foreach(s => builder.append(s))
}

private def concatByMultiLines(iter: Iterable[String]): String = {
Expand Down