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

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

Xiao Li created SPARK-20067:
-------------------------------

             Summary: 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