Skip to content

Commit

Permalink
[CARBONDATA-3253] Remove test case of bloom datamap using search mode
Browse files Browse the repository at this point in the history
Remove test case of bloom datamap using search mode

This closes #3077
  • Loading branch information
kevinjmh authored and chenliang613 committed Jan 19, 2019
1 parent af297a9 commit 733ce21
Showing 1 changed file with 0 additions and 44 deletions.
Expand Up @@ -254,50 +254,6 @@ class BloomCoarseGrainDataMapSuite extends QueryTest with BeforeAndAfterAll with
sql(s"DROP TABLE IF EXISTS $bloomDMSampleTable")
}

test("test using search mode to query tabel with bloom datamap") {
sql(
s"""
| CREATE TABLE $normalTable(id INT, name STRING, city STRING, age INT,
| s1 STRING, s2 STRING, s3 STRING, s4 STRING, s5 STRING, s6 STRING, s7 STRING, s8 STRING)
| STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128')
| """.stripMargin)
sql(
s"""
| CREATE TABLE $bloomDMSampleTable(id INT, name STRING, city STRING, age INT,
| s1 STRING, s2 STRING, s3 STRING, s4 STRING, s5 STRING, s6 STRING, s7 STRING, s8 STRING)
| STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128')
| """.stripMargin)

// load two segments
(1 to 2).foreach { i =>
sql(
s"""
| LOAD DATA LOCAL INPATH '$bigFile' INTO TABLE $normalTable
| OPTIONS('header'='false')
""".stripMargin)
sql(
s"""
| LOAD DATA LOCAL INPATH '$bigFile' INTO TABLE $bloomDMSampleTable
| OPTIONS('header'='false')
""".stripMargin)
}

sql(
s"""
| CREATE DATAMAP $dataMapName ON TABLE $bloomDMSampleTable
| USING 'bloomfilter'
| DMProperties('INDEX_COLUMNS'='city,id', 'BLOOM_SIZE'='640000')
""".stripMargin)
checkExistence(sql(s"SHOW DATAMAP ON TABLE $bloomDMSampleTable"), true, dataMapName)

// get answer before search mode is enable
val expectedAnswer1 = sql(s"select * from $normalTable where id = 1").collect()
val expectedAnswer2 = sql(s"select * from $normalTable where city in ('city_999')").collect()

sql(s"DROP TABLE IF EXISTS $normalTable")
sql(s"DROP TABLE IF EXISTS $bloomDMSampleTable")
}

ignore("test create bloom datamap with DEFERRED REBUILD, query hit datamap") {
sql(
s"""
Expand Down

0 comments on commit 733ce21

Please sign in to comment.