Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/20248#discussion_r161374594
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---
@@ -1023,7 +1023,12 @@ case class ShowCreateTableCommand(table:
TableIdentifier) extends RunnableComman
val serdeProps = metadata.storage.properties.map {
case (key, value) =>
- s"'${escapeSingleQuotedString(key)}' =
'${escapeSingleQuotedString(value)}'"
+ val escapedValue = if (value.length == 1 && (value.head < 32 ||
value.head > 126)) {
--- End diff --
I see, so when the same properties are specified, they can be specified as
an octal escape sequence. That makes sense to render it back that way. I'd
still use `isISOControl` for better generality.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]