carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipes...@apache.org
Subject [26/50] [abbrv] carbondata git commit: [CARBONDATA-1949, CARBONDATA-1950] Fixed bug related to describe formatted command as sort_scope was displayed twice
Date Tue, 09 Jan 2018 04:01:54 GMT
[CARBONDATA-1949, CARBONDATA-1950] Fixed bug related to describe formatted command as sort_scope
was displayed twice

Modified code to fix the issue for SORT_SCOPE getting displayed twice in describe formatted
command

This closes #1740


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

Branch: refs/heads/branch-1.3
Commit: 852b1a412026d6e206b4ac774f3ea04b1c7d3531
Parents: aee5213
Author: Geetika Gupta <geetika.gupta@knoldus.in>
Authored: Thu Jan 4 11:50:10 2018 +0530
Committer: manishgupta88 <tomanishgupta18@gmail.com>
Committed: Thu Jan 4 17:25:43 2018 +0530

----------------------------------------------------------------------
 .../spark/testsuite/describeTable/TestDescribeTable.scala   | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/852b1a41/integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/describeTable/TestDescribeTable.scala
----------------------------------------------------------------------
diff --git a/integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/describeTable/TestDescribeTable.scala
b/integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/describeTable/TestDescribeTable.scala
index a87292f..fe01598 100644
--- a/integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/describeTable/TestDescribeTable.scala
+++ b/integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/describeTable/TestDescribeTable.scala
@@ -47,6 +47,15 @@ class TestDescribeTable extends QueryTest with BeforeAndAfterAll {
       "Table Block Size")
   }
 
+  test("test describe formatted table desc1") {
+
+    val resultCol = Seq("", "", "##Detailed Column property", "##Detailed Table Information",
"ADAPTIVE", "CARBON Store Path", "Comment", "Database Name", "Last Update Time",
+    "SORT_COLUMNS", "SORT_SCOPE", "Streaming", "Table Block Size", "Table Data Size", "Table
Index Size", "Table Name", "dec2col1", "dec2col2", "dec2col3", "dec2col4")
+    val resultRow: Seq[Row] = resultCol map(propName => Row(f"$propName%-36s"))
+    checkAnswer(sql("desc formatted DESC1").select("col_name"), resultRow)
+    assert(sql("desc formatted desc1").count() == 20)
+  }
+
   override def afterAll: Unit = {
     sql("DROP TABLE Desc1")
     sql("DROP TABLE Desc2")


Mime
View raw message