Repository: carbondata
Updated Branches:
  refs/heads/master 2ad621df5 -> a5645875b


[CARBONDATA-2320][Datamap] Fix error in luncene coarse grain datamap suite

add DM-properties while creating datamap, otherwise the test will fail

This closes #2145


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

Branch: refs/heads/master
Commit: a5645875b29a5064bd12a6c4a5358ec12523d2b1
Parents: 2ad621d
Author: xuchuanyin <xuchuan...@hust.edu.cn>
Authored: Sun Apr 8 14:12:33 2018 +0800
Committer: Jacky Li <jacky.li...@qq.com>
Committed: Sun Apr 8 22:27:40 2018 +0800

----------------------------------------------------------------------
 .../datamap/lucene/LuceneCoarseGrainDataMapSuite.scala          | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/a5645875/datamap/lucene/src/test/scala/org/apache/carbondata/datamap/lucene/LuceneCoarseGrainDataMapSuite.scala
----------------------------------------------------------------------
diff --git 
a/datamap/lucene/src/test/scala/org/apache/carbondata/datamap/lucene/LuceneCoarseGrainDataMapSuite.scala
 
b/datamap/lucene/src/test/scala/org/apache/carbondata/datamap/lucene/LuceneCoarseGrainDataMapSuite.scala
index a461f04..f128afe 100644
--- 
a/datamap/lucene/src/test/scala/org/apache/carbondata/datamap/lucene/LuceneCoarseGrainDataMapSuite.scala
+++ 
b/datamap/lucene/src/test/scala/org/apache/carbondata/datamap/lucene/LuceneCoarseGrainDataMapSuite.scala
@@ -20,10 +20,6 @@ package org.apache.carbondata.datamap.lucene
 import org.apache.spark.sql.test.util.QueryTest
 import org.scalatest.BeforeAndAfterAll
 
-import org.apache.carbondata.core.datamap.DataMapStoreManager
-import org.apache.carbondata.core.metadata.CarbonMetadata
-import org.apache.carbondata.core.metadata.schema.table.DataMapSchema
-
 class LuceneCoarseGrainDataMapSuite extends QueryTest with BeforeAndAfterAll {
 
   val file2 = resourcesPath + "/datamap_input.csv"
@@ -55,6 +51,7 @@ class LuceneCoarseGrainDataMapSuite extends QueryTest with 
BeforeAndAfterAll {
       s"""
          | CREATE DATAMAP dm ON TABLE datamap_test
          | USING '${classOf[LuceneCoarseGrainDataMapFactory].getName}'
+         | DMProperties('TEXT_COLUMNS'='name,city')
       """.stripMargin)
 
     sql(s"LOAD DATA LOCAL INPATH '$file2' INTO TABLE datamap_test 
OPTIONS('header'='false')")

Reply via email to