Kousuke Saruta created SPARK-34308:
--------------------------------------

             Summary: Escape meta-characters in printSchema
                 Key: SPARK-34308
                 URL: https://issues.apache.org/jira/browse/SPARK-34308
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Kousuke Saruta
            Assignee: Kousuke Saruta


Similar to SPARK-33690, the output layout of printSchema can break if column 
names contains meta characters.
{code}
scala> val df1 = spark.sql("SELECT 
'aaa\nbbb\tccc\rddd\feee\bfff\u000Bggg\u0007hhh'")
scala> df1.printSchema
root
 |-- aaa
ddd     ccc
   eefff
        ggghhh: string (nullable = false)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to