Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20248#discussion_r161364269
  
    --- 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 need to copy an external table to another environment, but lost the 
create table statement.  So I want to get this create table statement by `show 
create table ...`, but it can't show non printable field delim.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to