carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject [11/50] [abbrv] incubator-carbondata git commit: column group info is not displayed in the describe formatted command (#813)
Date Wed, 20 Jul 2016 10:13:39 GMT
column group info is not displayed in the describe formatted command (#813)



Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/1986240c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/1986240c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/1986240c

Branch: refs/heads/master
Commit: 1986240c0b9fe2cff3f9636630dd1b70397e902a
Parents: 2455a94
Author: Mohammad Shahid Khan <mohdshahidkhan1987@gmail.com>
Authored: Fri Jul 15 16:19:31 2016 +0530
Committer: Vimal-Das <vimaldas.kammath@gmail.com>
Committed: Fri Jul 15 16:19:31 2016 +0530

----------------------------------------------------------------------
 .../apache/spark/sql/execution/command/carbonTableSchema.scala    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/1986240c/integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
b/integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
index b98e56b..78b2dcc 100644
--- a/integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
+++ b/integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
@@ -2058,6 +2058,9 @@ private[sql] case class DescribeCommandFormatted(
     } else {
       results ++= Seq(("NONE", "", ""))
     }
+    val dimension = carbonTable
+      .getDimensionByTableName(relation.cubeMeta.carbonTableIdentifier.getTableName);
+    results ++= getColumnGroups(dimension.asScala.toList)
     results.map { case (name, dataType, comment) =>
       Row(f"$name%-36s $dataType%-80s $comment%-72s")
     }


Mime
View raw message