You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/03/23 05:41:41 UTC

[jira] [Commented] (SPARK-20067) Use treeString to print out the table schema for CatalogTable

    [ https://issues.apache.org/jira/browse/SPARK-20067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937764#comment-15937764 ] 

Apache Spark commented on SPARK-20067:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/17394

> Use treeString to print out the table schema for CatalogTable
> -------------------------------------------------------------
>
>                 Key: SPARK-20067
>                 URL: https://issues.apache.org/jira/browse/SPARK-20067
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>
> Currently, we are using {{sql}} to print the schema. To make the schema more readable, we should use {{treeString}}, like what we did in Dataset API {{printSchema}}
> Below is the current way:
> {noformat}
> Schema: STRUCT<`a`: STRING (nullable = true), `b`: INT (nullable = true), `c`: STRING (nullable = true), `d`: STRING (nullable = true)>
> {noformat}
> After the change, it should look like
> {noformat}
> Schema: root
>  |-- a: string (nullable = true)
>  |-- b: integer (nullable = true)
>  |-- c: string (nullable = true)
>  |-- d: string (nullable = true)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org