carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject carbondata git commit: [CARBONDATA-1923] Remove file after running example/CompareTest.scala
Date Fri, 22 Dec 2017 02:27:51 GMT
Repository: carbondata
Updated Branches:
  refs/heads/master f79b9ea32 -> e2360c749


[CARBONDATA-1923] Remove file after running example/CompareTest.scala

Remove file after running example/CompareTest.scala

This closes #1698


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

Branch: refs/heads/master
Commit: e2360c7499edbdb9615fa073c7f8ad29fb8cb1c2
Parents: f79b9ea
Author: xubo245 <601450868@qq.com>
Authored: Wed Dec 20 21:10:59 2017 +0800
Committer: chenliang613 <chenliang613@huawei.com>
Committed: Fri Dec 22 10:27:34 2017 +0800

----------------------------------------------------------------------
 .../main/scala/org/apache/carbondata/examples/CompareTest.scala  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/e2360c74/examples/spark2/src/main/scala/org/apache/carbondata/examples/CompareTest.scala
----------------------------------------------------------------------
diff --git a/examples/spark2/src/main/scala/org/apache/carbondata/examples/CompareTest.scala
b/examples/spark2/src/main/scala/org/apache/carbondata/examples/CompareTest.scala
index 414f8e1..fe87d7c 100644
--- a/examples/spark2/src/main/scala/org/apache/carbondata/examples/CompareTest.scala
+++ b/examples/spark2/src/main/scala/org/apache/carbondata/examples/CompareTest.scala
@@ -25,7 +25,7 @@ import org.apache.spark.sql.{DataFrame, Row, SaveMode, SparkSession}
 import org.apache.spark.sql.types._
 
 import org.apache.carbondata.core.constants.CarbonCommonConstants
-import org.apache.carbondata.core.util.CarbonProperties
+import org.apache.carbondata.core.util.{CarbonProperties, CarbonUtil}
 
 /**
  * A query test case
@@ -384,6 +384,8 @@ object CompareTest {
     prepareTable(spark, table1, table2)
     runTest(spark, table1, table2)
 
+    CarbonUtil.deleteFoldersAndFiles(new File(table1))
+    spark.sql(s"drop table if exists $table2")
     spark.close()
   }
 


Mime
View raw message