You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ch...@apache.org on 2016/07/20 10:13:39 UTC
[11/50] [abbrv] incubator-carbondata git commit: column group info is
not displayed in the describe formatted command (#813)
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 <mo...@gmail.com>
Authored: Fri Jul 15 16:19:31 2016 +0530
Committer: Vimal-Das <vi...@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")
}