You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/02/03 02:08:00 UTC

[jira] [Resolved] (SPARK-34308) Escape meta-characters in printSchema

     [ https://issues.apache.org/jira/browse/SPARK-34308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-34308.
----------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

Issue resolved by pull request 31412
[https://github.com/apache/spark/pull/31412]

> 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
>            Priority: Minor
>             Fix For: 3.2.0
>
>
> Similar to SPARK-33690, the output layout of printSchema can break if column names contain meta characters.
> {code:java}
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org