From 3782241654aebd9129c394281ade1bc98c212a86 Mon Sep 17 00:00:00 2001 From: Raghunandan S Date: Tue, 5 Sep 2017 21:48:10 +0530 Subject: [PATCH] Optimize test case IDs --- integration/spark-common-cluster-test/pom.xml | 1 + .../sdv/generated/AlterTableTestCase.scala | 228 +- .../sdv/generated/BadRecordTestCase.scala | 58 +- .../generated/BatchSortLoad1TestCase.scala | 44 +- .../generated/BatchSortLoad2TestCase.scala | 44 +- .../generated/BatchSortQueryTestCase.scala | 232 +- .../sdv/generated/ColumndictTestCase.scala | 98 +- .../sdv/generated/DataLoadingTestCase.scala | 456 +- .../sdv/generated/DataLoadingV3TestCase.scala | 136 +- .../sdv/generated/InvertedindexTestCase.scala | 304 +- .../sdv/generated/OffheapQuery1TestCase.scala | 232 +- .../sdv/generated/OffheapQuery2TestCase.scala | 232 +- .../sdv/generated/OffheapSort1TestCase.scala | 28 +- .../sdv/generated/OffheapSort2TestCase.scala | 28 +- .../sdv/generated/PartitionTestCase.scala | 122 +- .../sdv/generated/QueriesBasicTestCase.scala | 672 +- .../generated/QueriesCompactionTestCase.scala | 5786 ++++++++--------- .../QueriesExcludeDictionaryTestCase.scala | 3330 +++++----- .../QueriesIncludeDictionaryTestCase.scala | 3828 +++++------ .../sdv/generated/QueriesNormalTestCase.scala | 138 +- .../QueriesSparkBlockDistTestCase.scala | 160 +- .../sdv/generated/ShowLoadsTestCase.scala | 6 +- .../sdv/generated/SinglepassTestCase.scala | 216 +- .../sdv/generated/SortColumnTestCase.scala | 74 +- .../generated/TimestamptypesTestCase.scala | 16 +- .../generated/V3offheapvectorTestCase.scala | 124 +- .../sdv/generated/Vector1TestCase.scala | 128 +- .../sdv/generated/Vector2TestCase.scala | 128 +- pom.xml | 2 + 29 files changed, 8427 insertions(+), 8424 deletions(-) diff --git a/integration/spark-common-cluster-test/pom.xml b/integration/spark-common-cluster-test/pom.xml index 3560602a0b0..935e55b882c 100644 --- a/integration/spark-common-cluster-test/pom.xml +++ b/integration/spark-common-cluster-test/pom.xml @@ -31,6 +31,7 @@ ${basedir}/../../dev + true diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/AlterTableTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/AlterTableTestCase.scala index 0624f1753a9..46c2ba15b98 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/AlterTableTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/AlterTableTestCase.scala @@ -34,52 +34,52 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check alter table using with alter command in lower case - test("ARID_RenameTable_001_01", Include) { + test("RenameTable_001_01", Include) { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""alter table test1 rename to test2""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(1)), "AlterTableTestCase_ARID_RenameTable_001_01") + Seq(Row(1)), "AlterTableTestCase_RenameTable_001_01") sql(s"""drop table if exists test2""").collect } //Check alter table using with alter command in upper & lower case - test("ARID_RenameTable_001_02", Include) { + test("RenameTable_001_02", Include) { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""alter table Test1 RENAME to teSt2""").collect sql(s"""insert into test2 select 'yy',2""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(2)), "AlterTableTestCase_ARID_RenameTable_001_02") + Seq(Row(2)), "AlterTableTestCase_RenameTable_001_02") sql(s"""drop table if exists test2""").collect } //Check alter table using with alter command in upper case - test("ARID_RenameTable_001_03", Include) { + test("RenameTable_001_03", Include) { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""alter table test1 RENAME TO test2""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(1)), "AlterTableTestCase_ARID_RenameTable_001_03") + Seq(Row(1)), "AlterTableTestCase_RenameTable_001_03") sql(s"""drop table if exists test2""").collect } //Check alter table where target table speficifed with database name - test("ARID_RenameTable_001_04", Include) { + test("RenameTable_001_04", Include) { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""alter table test1 RENAME TO defAult.test2""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(1)), "AlterTableTestCase_ARID_RenameTable_001_04") + Seq(Row(1)), "AlterTableTestCase_RenameTable_001_04") } //Check alter table run multiple times, revert back the name to original - test("ARID_RenameTable_001_06", Include) { + test("RenameTable_001_06", Include) { sql(s"""drop table if exists test2""").collect sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test3""").collect @@ -89,13 +89,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test2 rename to test3""").collect sql(s"""alter table test3 rename to test1""").collect checkAnswer(s"""select count(*) from test1""", - Seq(Row(1)), "AlterTableTestCase_ARID_RenameTable_001_06") + Seq(Row(1)), "AlterTableTestCase_RenameTable_001_06") sql(s"""drop table if exists test1""").collect } //Check data load after table rename - test("ARID_RenameTable_001_07_1", Include) { + test("RenameTable_001_07_1", Include) { sql(s"""drop table if exists test2""").collect sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect @@ -103,22 +103,22 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test1 RENAME TO test2""").collect sql(s"""Insert into test2 select 'yy',2""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(2)), "AlterTableTestCase_ARID_RenameTable_001_07_1") + Seq(Row(2)), "AlterTableTestCase_RenameTable_001_07_1") } //Check data load after table rename - test("ARID_RenameTable_001_07_2", Include) { + test("RenameTable_001_07_2", Include) { checkAnswer(s"""select name from test2 where name = 'yy'""", - Seq(Row("yy")), "AlterTableTestCase_ARID_RenameTable_001_07_2") + Seq(Row("yy")), "AlterTableTestCase_RenameTable_001_07_2") sql(s"""drop table if exists test2""").collect } //Check alter table when the altered name is already present in the database - test("ARID_RenameTable_001_08", Include) { + test("RenameTable_001_08", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -134,7 +134,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check alter table when the altered name is given multiple times - test("ARID_RenameTable_001_09", Include) { + test("RenameTable_001_09", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -148,7 +148,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for dimension column - test("ARID_DeleteCol_001_01", Include) { + test("DeleteCol_001_01", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata' TBLPROPERTIES('DICTIONARY_INCLUDE'='id') """).collect sql(s"""insert into test1 select 'xx',1""").collect @@ -164,7 +164,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for measure column - test("ARID_DeleteCol_001_02", Include) { + test("DeleteCol_001_02", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -180,7 +180,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for measure and dimension column - test("ARID_DeleteCol_001_03", Include) { + test("DeleteCol_001_03", Include) { try { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -196,7 +196,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for multiple column - test("ARID_DeleteCol_001_04", Include) { + test("DeleteCol_001_04", Include) { try { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata' TBLPROPERTIES('DICTIONARY_INCLUDE'='id')""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -212,7 +212,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for all columns - test("ARID_DeleteCol_001_05", Include) { + test("DeleteCol_001_05", Include) { try { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -226,7 +226,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for include dictionary column - test("ARID_DeleteCol_001_06", Include) { + test("DeleteCol_001_06", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata' TBLPROPERTIES('DICTIONARY_INCLUDE'='id')""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -242,7 +242,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete column for timestamp column - test("ARID_DeleteCol_001_08", Include) { + test("DeleteCol_001_08", Include) { try { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -258,19 +258,19 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check the drop of added column will remove the column from table - test("ARID_DeleteCol_001_09_1", Include) { + test("DeleteCol_001_09_1", Include) { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect sql(s"""alter table test1 add columns (name2 string)""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1,'abc'""").collect checkAnswer(s"""select count(id) from test1 where name2 = 'abc'""", - Seq(Row(1)), "AlterTableTestCase_ARID_DeleteCol_001_09_1") + Seq(Row(1)), "AlterTableTestCase_DeleteCol_001_09_1") sql(s"""drop table if exists test1""").collect } //Check the drop of added column will remove the column from table - test("ARID_DeleteCol_001_09_2", Include) { + test("DeleteCol_001_09_2", Include) { try { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -288,19 +288,19 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Drop a column and add it again with a default value - test("ARID_DeleteCol_001_10", Include) { + test("DeleteCol_001_10", Include) { sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect sql(s"""alter table test1 drop columns (id)""").collect sql(s"""alter table test1 add columns (id bigint) tblproperties('default.value.id'='999')""").collect checkAnswer(s"""select id from test1""", - Seq(Row(999)), "AlterTableTestCase_ARID_DeleteCol_001_10") + Seq(Row(999)), "AlterTableTestCase_DeleteCol_001_10") sql(s"""drop table if exists test1""").collect } //Drop a column and add it again with a default value - test("ARID_DeleteCol_001_11", Include) { + test("DeleteCol_001_11", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, country string, upd_time timestamp, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx','yy',current_timestamp,1""").collect @@ -308,148 +308,148 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test1 select 'a','china',current_timestamp""").collect sql(s"""alter table test1 add columns (id bigint) tblproperties('default.value.id'='999')""").collect checkAnswer(s"""select id from test1""", - Seq(Row(999), Row(999)), "AlterTableTestCase_ARID_DeleteCol_001_11") + Seq(Row(999), Row(999)), "AlterTableTestCase_DeleteCol_001_11") sql(s"""drop table if exists test1""").collect } //Check add column for multiple column adds - test("ARID_AddColumn_001_01", Include) { + test("AddColumn_001_01", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (upd_time timestamp, country string)""").collect checkAnswer(s"""select upd_time, country from test1""", - Seq(Row(null,null)), "AlterTableTestCase_ARID_AddColumn_001_01") + Seq(Row(null,null)), "AlterTableTestCase_AddColumn_001_01") sql(s"""drop table if exists test1""").collect } //Check add column for dimension column and add table property to set default value - test("ARID_AddColumn_001_02", Include) { + test("AddColumn_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""insert into test1 select 'xx',12""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (country string) TBLPROPERTIES('DEFAULT.VALUE.country'='China')""").collect checkAnswer(s"""select count(country) from test1""", - Seq(Row(2)), "AlterTableTestCase_ARID_AddColumn_001_02") + Seq(Row(2)), "AlterTableTestCase_AddColumn_001_02") sql(s"""drop table if exists test1""").collect } //Check add column to add a measure column - test("ARID_AddColumn_001_03", Include) { + test("AddColumn_001_03", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (id1 int)""").collect checkAnswer(s"""select id1 from test1""", - Seq(Row(null)), "AlterTableTestCase_ARID_AddColumn_001_03") + Seq(Row(null)), "AlterTableTestCase_AddColumn_001_03") sql(s"""drop table if exists test1""").collect } //Check add column to add a measure column added with dictionary include - test("ARID_AddColumn_001_04", Include) { + test("AddColumn_001_04", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""insert into test1 select 'xx',11""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (id1 int) tblproperties('dictionary_include'='id1')""").collect checkAnswer(s"""select id1 from test1""", - Seq(Row(null), Row(null)), "AlterTableTestCase_ARID_AddColumn_001_04") + Seq(Row(null), Row(null)), "AlterTableTestCase_AddColumn_001_04") sql(s"""drop table if exists test1""").collect } //Check add column to add a measure column initialized with default value - ignore("ARID_AddColumn_001_05", Include) { + ignore("AddColumn_001_05", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""insert into test1 select 'xx',11""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (price decimal(10,6)) TBLPROPERTIES('DEFAULT.VALUE.price'='11.111', 'dictionary_include'='price')""").collect checkAnswer(s"""select sum(price) from test1 where price = 11.111""", - Seq(Row(22.222000)), "AlterTableTestCase_ARID_AddColumn_001_05") + Seq(Row(22.222000)), "AlterTableTestCase_AddColumn_001_05") sql(s"""drop table if exists test1""").collect } //Check add column to add a measure column initialized with default value which does not suite the data type - test("ARID_AddColumn_001_06", Include) { + test("AddColumn_001_06", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (price bigint) TBLPROPERTIES('DEFAULT.VALUE.Price'='1.1','dictionary_include'='price')""").collect checkAnswer(s"""select price from test1""", - Seq(Row(null)), "AlterTableTestCase_ARID_AddColumn_001_06") + Seq(Row(null)), "AlterTableTestCase_AddColumn_001_06") sql(s"""drop table if exists test1""").collect } //Check add column to add a measure column initialized with default value on a empty table - test("ARID_AddColumn_001_07", Include) { + test("AddColumn_001_07", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (price bigint) TBLPROPERTIES('DEFAULT.VALUE.Price'='11','dictionary_include'='price')""").collect checkAnswer(s"""select count(id) from test1 where price = 11""", - Seq(Row(1)), "AlterTableTestCase_ARID_AddColumn_001_07") + Seq(Row(1)), "AlterTableTestCase_AddColumn_001_07") sql(s"""drop table if exists test1""").collect } //Check add column to add a dim and measure column - test("ARID_AddColumn_001_08", Include) { + test("AddColumn_001_08", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (id1 int, country string) tblproperties('dictionary_include'='id1')""").collect checkAnswer(s"""select id1, country from test1""", - Seq(Row(null,null)), "AlterTableTestCase_ARID_AddColumn_001_08") + Seq(Row(null,null)), "AlterTableTestCase_AddColumn_001_08") sql(s"""drop table if exists test1""").collect } //Check add column for measure and make it dictionary column - test("ARID_AddColumn_001_09", Include) { + test("AddColumn_001_09", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx'""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (Id int) TBLPROPERTIES('DICTIONARY_INCLUDE'='id')""").collect checkAnswer(s"""select id from test1""", - Seq(Row(null)), "AlterTableTestCase_ARID_AddColumn_001_09") + Seq(Row(null)), "AlterTableTestCase_AddColumn_001_09") sql(s"""drop table if exists test1""").collect } //Check add column to add columns and exclude the dim col from dictionary - test("ARID_AddColumn_001_10", Include) { + test("AddColumn_001_10", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx'""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (upd_time timestamp, country string) TBLPROPERTIES('DICTIONARY_EXCLUDE'='country')""").collect checkAnswer(s"""select country, upd_time from test1""", - Seq(Row(null,null)), "AlterTableTestCase_ARID_AddColumn_001_10") + Seq(Row(null,null)), "AlterTableTestCase_AddColumn_001_10") sql(s"""drop table if exists test1""").collect } //Check add column to add a timestamp column - test("ARID_AddColumn_001_11", Include) { + test("AddColumn_001_11", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (upd_time timestamp)""").collect checkAnswer(s"""select upd_time from test1""", - Seq(Row(null)), "AlterTableTestCase_ARID_AddColumn_001_11") + Seq(Row(null)), "AlterTableTestCase_AddColumn_001_11") sql(s"""drop table if exists test1""").collect } //Check add column with option default value is given for an existing column - test("ARID_AddColumn_001_14", Include) { + test("AddColumn_001_14", Include) { try { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string) stored by 'carbondata'""").collect @@ -464,20 +464,20 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check alter column for small decimal to big decimal - test("ARID_AlterData_001_02", Include) { + test("AlterData_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, price decimal(3,2)) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1.2""").collect sql(s"""alter table test1 change price price decimal(10,7)""").collect sql(s"""insert into test1 select 'xx2',999.9999999""").collect checkAnswer(s"""select name,price from test1 where price = 999.9999999""", - Seq(Row("xx2",999.9999999)), "AlterTableTestCase_ARID_AlterData_001_02") + Seq(Row("xx2",999.9999999)), "AlterTableTestCase_AlterData_001_02") sql(s"""drop table if exists test1""").collect } //check drop table after table rename using new name - test("ARID_DropTable_001_01", Include) { + test("DropTable_001_01", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, price decimal(3,2)) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1.2""").collect @@ -487,7 +487,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check drop table after table rename using old name - test("ARID_DropTable_001_02", Include) { + test("DropTable_001_02", Include) { try { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, price decimal(3,2)) stored by 'carbondata'""").collect @@ -503,7 +503,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check drop table after table rename using new name, after table load - test("ARID_DropTable_001_03", Include) { + test("DropTable_001_03", Include) { sql(s"""create table test1 (name string, price decimal(3,2)) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1.2""").collect sql(s"""alter table test1 rename to test2""").collect @@ -514,7 +514,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check drop table after alter table name, using new name when table is empty - test("ARID_DropTable_001_04", Include) { + test("DropTable_001_04", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, price decimal(3,2)) stored by 'carbondata'""").collect sql(s"""alter table test1 rename to test2""").collect @@ -524,7 +524,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check drop table when table is altered by adding columns - test("ARID_DropTable_001_05", Include) { + test("DropTable_001_05", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata' TBLPROPERTIES('DICTIONARY_INCLUDE'='id')""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -536,7 +536,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check schema changes and carbon dictionary additions for alter table when new column added - test("ARID_StorageFi_001_02", Include) { + test("StorageFi_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (country string, name string) stored by 'carbondata' """).collect sql(s"""insert into test1 select 'xx','uu'""").collect @@ -546,43 +546,43 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check dictionary cache is loaded with new added column when query is run - ignore("ARID_Dictionary_001_01", Include) { + ignore("Dictionary_001_01", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id decimal(3,2),country string) stored by 'carbondata' """).collect sql(s"""insert into test1 select 'xx',1.22,'china'""").collect sql(s"""alter table test1 add columns (price decimal(10,4)) tblproperties('dictionary_include'='price','DEFAULT.VALUE.price'='11.111')""").collect checkAnswer(s"""select * from test1""", - Seq(Row("xx",1.22,"china",11.1110)), "AlterTableTestCase_ARID_Dictionary_001_01") + Seq(Row("xx",1.22,"china",11.1110)), "AlterTableTestCase_Dictionary_001_01") sql(s"""drop table if exists test1""").collect } //Check if dropped column is removed from driver side LRU cache - test("ARID_Dictionary_001_02", Include) { + test("Dictionary_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id decimal(3,2),country string) stored by 'carbondata' """).collect sql(s"""insert into test1 select 'xx',1.22,'china'""").collect sql(s"""alter table test1 drop columns (country)""").collect checkAnswer(s"""select * from test1""", - Seq(Row("xx",1.22)), "AlterTableTestCase_ARID_Dictionary_001_02") + Seq(Row("xx",1.22)), "AlterTableTestCase_Dictionary_001_02") sql(s"""drop table if exists test1""").collect } //Check if dropped column is removed from driver side LRU cache at driver side - test("ARID_Dictionary_001_03", Include) { + test("Dictionary_001_03", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id decimal(3,2),country string) stored by 'carbondata' """).collect sql(s"""insert into test1 select 'xx',1.22,'china'""").collect sql(s"""alter table test1 drop columns(country)""").collect checkAnswer(s"""select * from test1""", - Seq(Row("xx",1.22)), "AlterTableTestCase_ARID_Dictionary_001_03") + Seq(Row("xx",1.22)), "AlterTableTestCase_Dictionary_001_03") sql(s"""drop table if exists test1""").collect } //Check table load works fine after alter table name - test("ARID_Dataload_001_01", Include) { + test("Dataload_001_01", Include) { sql(s"""drop table if exists t_carbn01t""").collect sql(s"""drop table if exists t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect @@ -594,20 +594,20 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check table load into old table after alter table name - test("ARID_Dataload_001_02", Include) { + test("Dataload_001_02", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""alter table t_carbn01 rename to t_carbn01t""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01t options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(item_name) from t_carbn01t""", - Seq(Row(20)), "AlterTableTestCase_ARID_Dataload_001_02") + Seq(Row(20)), "AlterTableTestCase_Dataload_001_02") sql(s"""drop table if exists t_carbn01t""").collect } //Check table load works fine after alter table name - test("ARID_Dataload_001_03", Include) { + test("Dataload_001_03", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -618,33 +618,33 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check table load works fine after alter table name - test("ARID_Dataload_001_04", Include) { + test("Dataload_001_04", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""alter table t_carbn01 add columns (item_code1 string, item_code2 string)""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive2.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date,item_code1, item_code2')""").collect checkAnswer(s"""select count(item_name) from t_carbn01""", - Seq(Row(20)), "AlterTableTestCase_ARID_Dataload_001_04") + Seq(Row(20)), "AlterTableTestCase_Dataload_001_04") sql(s"""drop table if exists t_carbn01""").collect } //Check table load works fine after alter table name - test("ARID_Dataload_001_05", Include) { + test("Dataload_001_05", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""alter table t_carbn01 drop columns (Update_time, create_date)""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive2.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name')""").collect checkAnswer(s"""select count(item_name) from t_carbn01""", - Seq(Row(20)), "AlterTableTestCase_ARID_Dataload_001_05") + Seq(Row(20)), "AlterTableTestCase_Dataload_001_05") sql(s"""drop table if exists t_carbn01""").collect } //Check if alter table(add column) is supported when data load is happening - test("ARID_Concurrent_alter_001_01", Include) { + test("Concurrent_alter_001_01", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -655,7 +655,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check if alter table(delete column) is supported when data load is happening - test("ARID_Concurrent_alter_001_02", Include) { + test("Concurrent_alter_001_02", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -665,7 +665,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check if alter table(change column) is supported when data load is happening - test("ARID_Concurrent_alter_001_03", Include) { + test("Concurrent_alter_001_03", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -675,7 +675,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check if alter table(rename) is supported when data load is happening - test("ARID_Concurrent_alter_001_04", Include) { + test("Concurrent_alter_001_04", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -685,7 +685,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check table insert works fine after alter table to add a column - test("ARID_Insertint_001_03", Include) { + test("Insertint_001_03", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""drop table if exists default.t_carbn02""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect @@ -701,7 +701,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check table insert works fine after alter table to add a column - test("ARID_Insertint_001_04", Include) { + test("Insertint_001_04", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""drop table if exists default.t_carbn02""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect @@ -717,7 +717,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //check table insert works fine after alter table to drop columns - test("ARID_Insertint_001_05", Include) { + test("Insertint_001_05", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test2 (country string, name string, state_id int,id int) stored by 'carbondata' """).collect sql(s"""create table test1 (country string, state_id int) stored by 'carbondata' """).collect @@ -725,14 +725,14 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test2 drop columns (name, id)""").collect sql(s"""insert into test2 select * from test1""").collect checkAnswer(s"""Select count(*) from test2""", - Seq(Row(1)), "AlterTableTestCase_ARID_Insertint_001_05") + Seq(Row(1)), "AlterTableTestCase_Insertint_001_05") sql(s"""drop table if exists test2""").collect sql(s"""drop table if exists test1""").collect } //Check show segments on old table After altering the Table name. - test("ARID_Showsegme_001_01", Include) { + test("Showsegme_001_01", Include) { try { sql(s"""create table test1 (country string, id int) stored by 'carbondata'""").collect sql(s"""alter table test1 rename to test2""").collect @@ -746,7 +746,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction on old table after altering the table name - test("ARID_Compaction_001_01", Include) { + test("Compaction_001_01", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""create table test1(name string, id int) stored by 'carbondata'""").collect @@ -760,7 +760,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction on new table when all segments are created before alter table name. - test("ARID_Compaction_001_02", Include) { + test("Compaction_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""create table test1(name string, id int) stored by 'carbondata'""").collect @@ -770,13 +770,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test1 rename to test2""").collect sql(s"""alter table test2 compact 'minor'""").collect checkAnswer(s"""select name from test2 where id =2""", - Seq(Row("xe")), "AlterTableTestCase_ARID_Compaction_001_02") + Seq(Row("xe")), "AlterTableTestCase_Compaction_001_02") sql(s"""drop table if exists test2""").collect } //Check vertical compaction on new table when some of the segments are created after altering the table name - test("ARID_Compaction_001_03", Include) { + test("Compaction_001_03", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""create table test1(name string, id int) stored by 'carbondata'""").collect @@ -786,13 +786,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test2 select 'xr',3""").collect sql(s"""alter table test2 compact 'minor'""").collect checkAnswer(s"""select name from test2 where id =2""", - Seq(Row("xe")), "AlterTableTestCase_ARID_Compaction_001_03") + Seq(Row("xe")), "AlterTableTestCase_Compaction_001_03") sql(s"""drop table if exists test2""").collect } //Check vertical compaction on new table after altering the table name multiple times and and segments created after alter - test("ARID_Compaction_001_04", Include) { + test("Compaction_001_04", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""drop table if exists test3""").collect @@ -804,13 +804,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test3 select 'xr',3""").collect sql(s"""alter table test3 compact 'minor'""").collect checkAnswer(s"""select name from test3 where id =2""", - Seq(Row("xe")), "AlterTableTestCase_ARID_Compaction_001_04") + Seq(Row("xe")), "AlterTableTestCase_Compaction_001_04") sql(s"""drop table if exists test3""").collect } //Check vertical compaction(major) on new table name when part of the segments are created before altering the table name - test("ARID_Compaction_001_05", Include) { + test("Compaction_001_05", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""create table test1(name string, id int) stored by 'carbondata'""").collect @@ -826,7 +826,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction when all segments are created before drop column, check dropped column is not used in the compation - test("ARID_Compaction_001_06", Include) { + test("Compaction_001_06", Include) { try { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect @@ -847,7 +847,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction when some of the segments are created before drop column, check dropped column is not used in the compation - test("ARID_Compaction_001_07", Include) { + test("Compaction_001_07", Include) { try { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect @@ -868,7 +868,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction for multiple drop column, check dropped column is not used in the compation - test("ARID_Compaction_001_08", Include) { + test("Compaction_001_08", Include) { try { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect @@ -890,7 +890,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check vertical compaction on altered table for column add, when all segments crreated before table alter. Ensure added column in the compacted segment - test("ARID_Compaction_001_09", Include) { + test("Compaction_001_09", Include) { sql(s"""drop table if exists test1""").collect sql(s"""drop table if exists test2""").collect sql(s"""create table test1(name string) stored by 'carbondata'""").collect @@ -900,13 +900,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test1 add columns (country string)""").collect sql(s"""alter table test1 compact 'minor'""").collect checkAnswer(s"""select country from test1 group by country""", - Seq(Row(null)), "AlterTableTestCase_ARID_Compaction_001_09") + Seq(Row(null)), "AlterTableTestCase_Compaction_001_09") sql(s"""drop table if exists test1""").collect } //Check vertical compaction on altered table for column add, when some of the segments crreated before table alter. Ensure added column in the compacted segment - test("ARID_Compaction_001_10", Include) { + test("Compaction_001_10", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1(name string) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx1'""").collect @@ -915,13 +915,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test1 select 'xx1','china'""").collect sql(s"""alter table test1 compact 'minor'""").collect checkAnswer(s"""select country from test1 group by country""", - Seq(Row(null), Row("china")), "AlterTableTestCase_ARID_Compaction_001_10") + Seq(Row(null), Row("china")), "AlterTableTestCase_Compaction_001_10") sql(s"""drop table if exists test1""").collect } //Check vertical compaction on multiple altered table for column add, when some of the segments crreated after table alter. Ensure added column in the compacted segment - test("ARID_Compaction_001_11", Include) { + test("Compaction_001_11", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1(name string) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx1'""").collect @@ -932,13 +932,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test1 select 'xx1',1, 'china'""").collect sql(s"""alter table test1 compact 'minor'""").collect checkAnswer(s"""select country from test1 group by country""", - Seq(Row(null), Row("china")), "AlterTableTestCase_ARID_Compaction_001_11") + Seq(Row(null), Row("china")), "AlterTableTestCase_Compaction_001_11") sql(s"""drop table if exists test1""").collect } //Check vertical compaction on altered table for change column datatype, when some of the segments crreated after table alter. Ensure added column in the compacted segment - test("ARID_Compaction_001_12", Include) { + test("Compaction_001_12", Include) { sql(s"""drop table if exists default.test1""").collect sql(s"""create table test1(name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx1',1""").collect @@ -947,13 +947,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into test1 select 'xx2',2999999999""").collect sql(s"""alter table test1 compact 'minor'""").collect checkAnswer(s"""select id from test1""", - Seq(Row(1),Row(2), Row(2999999999L)), "AlterTableTestCase_ARID_Compaction_001_12") + Seq(Row(1),Row(2), Row(2999999999L)), "AlterTableTestCase_Compaction_001_12") sql(s"""drop table if exists test1""").collect } //Check bad record locaion isnot changed when table name is altered - test("ARID_BadRecords_001_01", Include) { + test("BadRecords_001_01", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1_Bad.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\','BAD_RECORDS_LOGGER_ENABLE'='true', 'BAD_RECORDS_ACTION'='REDIRECT', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -964,7 +964,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check bad record locaion isnot changed when table name is altered - test("ARID_BadRecords_001_02", Include) { + test("BadRecords_001_02", Include) { sql(s"""drop table if exists default.t_carbn01""").collect sql(s"""create table default.t_carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1_Bad.csv' INTO table default.t_carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\','BAD_RECORDS_LOGGER_ENABLE'='true', 'BAD_RECORDS_ACTION'='REDIRECT', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -974,20 +974,20 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check for bad record handling while latering the table if added column is set with default value which is a bad record - test("ARID_BadRecords_001_03", Include) { + test("BadRecords_001_03", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect sql(s"""insert into test1 select 'xx',12""").collect sql(s"""ALTER TABLE test1 ADD COLUMNS (id2 int) TBLPROPERTIES('include_dictionary'='id2','DEFAULT.VALUE.id2'='China')""").collect checkAnswer(s"""select * from test1 where id = 1""", - Seq(Row("xx",1,null)), "AlterTableTestCase_ARID_BadRecords_001_03") + Seq(Row("xx",1,null)), "AlterTableTestCase_BadRecords_001_03") sql(s"""drop table if exists test1""").collect } //Check delete segment is not allowed on old table name when table name is altered - test("ARID_DeleteSeg_001_01", Include) { + test("DeleteSeg_001_01", Include) { try { sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -1003,7 +1003,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check delete segment is allowed on new table name when table name is altered - test("ARID_DeleteSeg_001_02", Include) { + test("DeleteSeg_001_02", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1 (name string, id int) stored by 'carbondata'""").collect sql(s"""insert into test1 select 'xx',1""").collect @@ -1011,13 +1011,13 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table test1 rename to test2""").collect sql(s"""delete from table test2 where segment.id in (0)""").collect checkAnswer(s"""Select * from test2""", - Seq(Row("xx",12)), "AlterTableTestCase_ARID_DeleteSeg_001_02") + Seq(Row("xx",12)), "AlterTableTestCase_DeleteSeg_001_02") sql(s"""drop table if exists test2""").collect } //Check alter the table name,alter the table name again with first name and fire Select query - test("PTS_AR-Develop-Feature-AlterTable-001-AltersameTablename-001-TC001", Include) { + test("AlterTable-001-AltersameTablename-001-TC001", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect @@ -1032,7 +1032,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check select query after alter the int to Bigint and decimal Lower Precision to higher precision - test("PTS-AR-Develop-Feature-AlterTable-007-selectquery-001-TC002", Include) { + test("AlterTable-007-selectquery-001-TC002", Include) { sql(s"""CREATE TABLE uniqdata1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""ALTER TABLE uniqdata1 CHANGE CUST_ID CUST_ID BIGINT""").collect @@ -1043,7 +1043,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check select query after alter from lower to higher precision - test("PTS-AR-Develop-Feature-AlterTable-008-selectquery-001-TC003", Include) { + test("AlterTable-008-selectquery-001-TC003", Include) { sql(s"""CREATE TABLE uniqdata1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""ALTER TABLE uniqdata1 CHANGE decimal_column1 decimal_column1 DECIMAL(31,11)""").collect @@ -1054,7 +1054,7 @@ class AlterTableTestCase extends QueryTest with BeforeAndAfterAll { //Check add column on Decimal,Timestamp,int,string,Bigint - test("PTS-AR-Develop-Feature-AlterTable-002-001-TC-004", Include) { + test("AlterTable-002-001-TC-004", Include) { sql(s"""drop table if exists uniqdata59""").collect sql(s"""CREATE TABLE uniqdata59 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""ALTER TABLE uniqdata59 ADD COLUMNS (a1 int,a2 int,a3 decimal,a4 Bigint,a5 String,a6 timestamp,a7 Bigint,a8 decimal(10,2),a9 timestamp,a10 String,a11 string,a12 string,a13 string,a14 string,a15 string,a16 string,a17 string,a18 string,a19 string,a20 string,a21 string,a22 string,a23 string,a24 string,a25 string,a26 string,a27 string,a28 string,a29 string,a30 string,a31 string,a32 string,a33 string,a34 string,a35 string,a36 string,a37 string,a38 string,a39 string,a40 string,a41 string,a42 string,a43 string,a44 string,a45 string,a46 string,a47 string,a48 string,a49 string,a50 string,a51 string,a52 string,a53 string,a54 string,a55 string,a56 string,a57 string,a58 string,a59 string,a60 string,a61 string,a62 string,a63 string,a64 string,a65 string,a66 string,a67 string,a68 string,a69 string,a70 string,a71 string,a72 string,a73 string,a74 string,a75 string,a76 string,a77 string,a78 string,a79 string,a80 string,a81 string,a82 string,a83 string,a84 string,a85 string,a86 string,a87 string,a88 string) TBLPROPERTIES('DICTIONARY_INCLUDE'='a1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BadRecordTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BadRecordTestCase.scala index ae969bcf79f..3b57ff04f3d 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BadRecordTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BadRecordTestCase.scala @@ -30,74 +30,74 @@ class BadRecordTestCase extends QueryTest with BeforeAndAfterAll { //Create table and Load history data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true from CSV without header and specify headers in command - test("AR-Develop-Feature-BadRecords-001_PTS001_TC001", Include) { + test("BadRecords-001_PTS001_TC001", Include) { sql(s"""CREATE TABLE badrecordtest1 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test2.csv' into table badrecordtest1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test2.csv' into table badrecordtest1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name')""").collect checkAnswer(s"""select count(*) from badrecordTest1""", - Seq(Row(6)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS001_TC001") + Seq(Row(6)), "BadRecordTestCase-BadRecords-001_PTS001_TC001") sql(s"""drop table if exists badrecordTest1""").collect } //Create table and Load history data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true from CSV with header and specify header in command - test("AR-Develop-Feature-BadRecords-001_PTS002_TC001", Include) { + test("BadRecords-001_PTS002_TC001", Include) { sql(s"""CREATE TABLE badrecordtest2 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordtest2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordtest2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name')""").collect checkAnswer(s"""select count(*) from badrecordtest2""", - Seq(Row(6)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS002_TC001") + Seq(Row(6)), "BadRecordTestCase-BadRecords-001_PTS002_TC001") sql(s"""drop table if exists badrecordtest2""").collect } //Create table and Load history data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true from CSV with header and without specify header in command - test("AR-Develop-Feature-BadRecords-001_PTS003_TC001", Include) { + test("BadRecords-001_PTS003_TC001", Include) { sql(s"""CREATE TABLE badrecordtest3 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordtest3 OPTIONS('FILEHEADER'='ID,CUST_ID,cust_name','DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordtest3 OPTIONS('FILEHEADER'='ID,CUST_ID,cust_name','DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordtest3""", - Seq(Row(6)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS003_TC001") + Seq(Row(6)), "BadRecordTestCase-BadRecords-001_PTS003_TC001") sql(s"""drop table if exists badrecordtest3""").collect } //Create table and load the data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true with CSV has incomplete/wrong data - test("AR-Develop-Feature-BadRecords-001_PTS004_TC001", Include) { + test("BadRecords-001_PTS004_TC001", Include) { sql(s"""CREATE TABLE badrecordtest4 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test4.csv' into table badrecordtest4 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test4.csv' into table badrecordtest4 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordtest4""", - Seq(Row(6)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS004_TC001") + Seq(Row(6)), "BadRecordTestCase-BadRecords-001_PTS004_TC001") sql(s"""drop table if exists badrecordtest4""").collect } //Create table and load data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true for data types with boundary values of data type - test("AR-Develop-Feature-BadRecords-001_PTS005_TC001", Include) { + test("BadRecords-001_PTS005_TC001", Include) { sql(s"""CREATE TABLE badrecordtest5 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test5.csv' into table badrecordtest5 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test5.csv' into table badrecordtest5 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordtest5""", - Seq(Row(4)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS005_TC001") + Seq(Row(4)), "BadRecordTestCase-BadRecords-001_PTS005_TC001") sql(s"""drop table if exists badrecordtest5""").collect } //create table and Load history data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true from CSV with' Delimiters , Quote characters ' - test("AR-Develop-Feature-BadRecords-001_PTS006_TC001", Include) { + test("BadRecords-001_PTS006_TC001", Include) { sql(s"""drop table if exists abadrecordtest1""").collect sql(s"""CREATE TABLE abadrecordtest1 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test6.csv' into table abadrecordtest1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'="'",'is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer( s"""select count(*) from abadrecordtest1""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS006_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS006_TC001") sql(s"""drop table if exists abadrecordtest1""").collect } //create the table and load the data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true column value with separator (/ , \ ,!,\001) - test("AR-Develop-Feature-BadRecords-001_PTS007_TC001", Include) { + test("BadRecords-001_PTS007_TC001", Include) { sql(s"""CREATE TABLE badrecordtest6 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/qoute1.csv' into table badrecordtest6 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='/','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE')""").collect @@ -105,14 +105,14 @@ class BadRecordTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/qoute4.csv' into table badrecordtest6 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='!','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer( s"""select count(*) from badrecordtest6""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS007_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS007_TC001") } sql(s"""drop table if exists badrecordtest6""").collect } //Create the table and Load from Hive table - test("AR-Develop-Feature-BadRecords-001_PTS008_TC001", Include) { + test("BadRecords-001_PTS008_TC001", Include) { sql(s"""drop table if exists badrecordTest7""").collect sql(s"""drop table if exists hivetable7""").collect sql(s"""CREATE TABLE badrecordtest7 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect @@ -120,14 +120,14 @@ class BadRecordTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test2.csv' into table hivetable7""").collect sql(s"""insert into table badrecordtest7 select * from hivetable7""").collect checkAnswer(s"""select count(*) from badrecordtest7""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS008_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS008_TC001") sql(s"""drop table if exists badrecordTest7""").collect sql(s"""drop table if exists hivetable7""").collect } //Create table and Insert into Select for destination carbon table from source carbon/hive/parquet table - test("AR-Develop-Feature-BadRecords-001_PTS015_TC001", Include) { + test("BadRecords-001_PTS015_TC001", Include) { sql(s"""drop table if exists badrecordTest9""").collect sql(s"""drop table if exists hivetable9""").collect sql(s"""CREATE TABLE badrecordTest9 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect @@ -135,14 +135,14 @@ class BadRecordTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test2.csv' into table hivetable9""").collect sql(s"""insert into table badrecordTest9 select * from hivetable9""").collect checkAnswer(s"""select count(*) from badrecordTest9""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS015_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS015_TC001") sql(s"""drop table if exists badrecordTest9""").collect sql(s"""drop table if exists hivetable9""").collect } //Show segments for table when data loading having parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true - test("AR-Develop-Feature-BadRecords-001_PTS020_TC001", Include) { + test("BadRecords-001_PTS020_TC001", Include) { sql(s"""CREATE TABLE badrecordTest13 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordTest13 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name')""").collect sql(s"""SHOW SEGMENTS FOR TABLE badrecordTest13""").collect @@ -151,52 +151,52 @@ class BadRecordTestCase extends QueryTest with BeforeAndAfterAll { //Create table and Load data with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true for date and char types using single pass and vectorized reader parameters - test("AR-Develop-Feature-BadRecords-001_PTS012_TC001", Include) { + test("BadRecords-001_PTS012_TC001", Include) { sql(s"""CREATE TABLE badrecordtest14 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test3.csv' into table badrecordtest14 OPTIONS('FILEHEADER'='ID,CUST_ID,cust_name','DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from badrecordTest14""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS012_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS012_TC001") sql(s"""drop table if exists badrecordTest14""").collect } //Check the data load with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true, data having ""(empty in double quote) - test("AR-Develop-Feature-BadRecords-001_PTS021_TC001", Include) { + test("BadRecords-001_PTS021_TC001", Include) { sql(s"""CREATE TABLE badrecordtest15 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/doubleqoute.csv' into table badrecordtest15 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordTest15""", - Seq(Row(1)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS021_TC001") + Seq(Row(1)), "BadRecordTestCase-BadRecords-001_PTS021_TC001") sql(s"""drop table if exists badrecordTest15""").collect } //Check the data load with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true, data having a, insufficient column - test("AR-Develop-Feature-BadRecords-001_PTS022_TC001", Include) { + test("BadRecords-001_PTS022_TC001", Include) { sql(s"""drop table if exists badrecordTest16""").collect sql(s"""CREATE TABLE badrecordtest16 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/insuffcient.csv' into table badrecordtest16 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from badrecordTest16""", - Seq(Row(2)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS022_TC001") + Seq(Row(2)), "BadRecordTestCase-BadRecords-001_PTS022_TC001") sql(s"""drop table if exists badrecordTest16""").collect } //Check the data load with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true, data having ‘’ (empty in single quote) - test("AR-Develop-Feature-BadRecords-001_PTS023_TC001", Include) { + test("BadRecords-001_PTS023_TC001", Include) { sql(s"""CREATE TABLE badrecordtest17 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/test6.csv' into table badrecordtest17 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'="'",'is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordTest17""", - Seq(Row(3)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS023_TC001") + Seq(Row(3)), "BadRecordTestCase-BadRecords-001_PTS023_TC001") sql(s"""drop table if exists badrecordTest17""").collect } //Check the data load with parameters BAD_RECORDS_ACTION=FAIL/FORCE/REDIRECT/IGNORE,BAD_RECORD_LOGGER_ENABLE=true/false and IS_EMPTY_DATA_BAD_RECORD=false/true, data having ,(empty comma) - test("AR-Develop-Feature-BadRecords-001_PTS024_TC001", Include) { + test("BadRecords-001_PTS024_TC001", Include) { sql(s"""CREATE TABLE badrecordtest18 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecord/emptyComma.csv' into table badrecordtest18 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','is_empty_data_bad_record'='false','BAD_RECORDS_ACTION'='IGNORE','BAD_RECORDS_LOGGER_ENABLE'='TRUE')""").collect checkAnswer(s"""select count(*) from badrecordTest18""", - Seq(Row(1)), "BadRecordTestCase_AR-Develop-Feature-BadRecords-001_PTS024_TC001") + Seq(Row(1)), "BadRecordTestCase-BadRecords-001_PTS024_TC001") sql(s"""drop table if exists badrecordTest18""").collect } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad1TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad1TestCase.scala index 73bca21583f..aeeab5722b6 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad1TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad1TestCase.scala @@ -32,7 +32,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_001", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_001", Include) { sql(s"""drop table if exists uniqdata11""").collect sql(s"""CREATE TABLE uniqdata11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -44,7 +44,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load 1 lac data load after setting sort scope and sort size in carbon property file - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_002", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_002", Include) { sql(s"""drop table if exists uniqdata12""").collect sql(s"""CREATE TABLE uniqdata12 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -56,7 +56,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with option file header in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_003", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_003", Include) { sql(s"""CREATE TABLE uniqdata12a(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata12a OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -67,7 +67,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file without folder path in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_004", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_004", Include) { try { sql(s"""CREATE TABLE uniqdata13 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA into table uniqdata13 OPTIONS('DELIMITER'=',' , 'FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -80,7 +80,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file without table_name in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_005", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_005", Include) { try { sql(s"""CREATE TABLE uniqdata14 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table OPTIONS('DELIMITER'=',' , 'FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -93,7 +93,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with option QUOTECHAR'='"' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_006", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_006", Include) { sql(s"""CREATE TABLE uniqdata15 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata15 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -105,7 +105,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS('COMMENTCHAR'='#') - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_007", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_007", Include) { sql(s"""CREATE TABLE uniqdata16 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata16 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -116,7 +116,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with option 'MULTILINE'='true' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_008", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_008", Include) { sql(s"""CREATE TABLE uniqdata17 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata17 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -127,7 +127,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS('ESCAPECHAR'='\') - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_009", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_009", Include) { sql(s"""CREATE TABLE uniqdata18 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata18 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -138,7 +138,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='FORCE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_010", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_010", Include) { sql(s"""CREATE TABLE uniqdata19b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19b OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -149,7 +149,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='IGNORE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_011", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_011", Include) { sql(s"""CREATE TABLE uniqdata19c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -160,7 +160,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='REDIRECT' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_012", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_012", Include) { sql(s"""CREATE TABLE uniqdata19d (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19d OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -171,7 +171,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='FALSE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_013", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_013", Include) { sql(s"""CREATE TABLE uniqdata19e (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19e OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata19e""").collect @@ -181,7 +181,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='TRUE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_014", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_014", Include) { sql(s"""CREATE TABLE uniqdata19f (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19f OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata19f""").collect @@ -191,7 +191,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS ‘SINGLE_PASS’=’true’ - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_015", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_015", Include) { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',','QUOTECHAR'='"','SINGLE_PASS'='TRUE','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20a""").collect @@ -201,7 +201,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with OPTIONS ‘SINGLE_PASS’=’false’ - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_016", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_016", Include) { sql(s"""CREATE TABLE uniqdata20b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20b OPTIONS('DELIMITER'=',','QUOTECHAR'='"','SINGLE_PASS'='FALSE','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20b""").collect @@ -211,7 +211,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with NO_INVERTED_INDEX - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_017", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_017", Include) { sql(s"""CREATE TABLE uniqdata20c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20c OPTIONS('DELIMITER'=',' ,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20c""").collect @@ -221,7 +221,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with COLUMNDICT - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_018", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_018", Include) { sql(s"""drop table if exists t3""").collect sql(s"""CREATE TABLE t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/batchsort/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -230,7 +230,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting sort scope and sort size in carbon property file with ALL_DICTIONARY_PATH - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_019", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_019", Include) { sql(s"""drop table if exists t3""").collect try { sql(s"""CREATE TABLE t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect @@ -244,7 +244,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To check incremental load one with batch_sort and others configured with different sort - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_021", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_021", Include) { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' ,'SORT_SCOPE'='LOCAL_SORT','QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' ,'SORT_SCOPE'='BATCH_SORT','QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -259,7 +259,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To check sort_scope option with a wrong value - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_023", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_023", Include) { try { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' , 'SORT_SCOPE'='ABCXYZ',‘SINGLE_PASS’=’true’,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -272,7 +272,7 @@ class BatchSortLoad1TestCase extends QueryTest with BeforeAndAfterAll { //To check sort_scope option with null value - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_024", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_024", Include) { try { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' , 'SORT_SCOPE'='null',‘SINGLE_PASS’=’true’,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad2TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad2TestCase.scala index ca2b3a20ec3..b9113310211 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad2TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortLoad2TestCase.scala @@ -32,7 +32,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_027", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_027", Include) { sql(s"""drop table if exists uniqdata11""").collect sql(s"""CREATE TABLE uniqdata11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -44,7 +44,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load 1 lac data load after setting only sort scope in carbon property file - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_028", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_028", Include) { sql(s"""drop table if exists uniqdata12""").collect sql(s"""CREATE TABLE uniqdata12 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -56,7 +56,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with option file header in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_029", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_029", Include) { sql(s"""drop table if exists uniqdata12a""").collect sql(s"""CREATE TABLE uniqdata12a(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -68,7 +68,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file without folder path in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_030", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_030", Include) { try { sql(s"""CREATE TABLE uniqdata13 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA into table uniqdata13 OPTIONS('DELIMITER'=',' , 'FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -81,7 +81,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file without table_name in load - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_031", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_031", Include) { try { sql(s"""CREATE TABLE uniqdata14 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table OPTIONS('DELIMITER'=',' , 'FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -94,7 +94,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with option QUOTECHAR'='"' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_032", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_032", Include) { sql(s"""CREATE TABLE uniqdata15 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata15 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -106,7 +106,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS('COMMENTCHAR'='#') - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_033", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_033", Include) { sql(s"""CREATE TABLE uniqdata16 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata16 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -117,7 +117,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with option 'MULTILINE'='true' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_034", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_034", Include) { sql(s"""CREATE TABLE uniqdata17 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata17 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -128,7 +128,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS('ESCAPECHAR'='\') - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_035", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_035", Include) { sql(s"""CREATE TABLE uniqdata18 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata18 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -139,7 +139,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='FORCE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_036", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_036", Include) { sql(s"""CREATE TABLE uniqdata19b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19b OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -150,7 +150,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='IGNORE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_037", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_037", Include) { sql(s"""CREATE TABLE uniqdata19c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -161,7 +161,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='REDIRECT' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_038", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_038", Include) { sql(s"""CREATE TABLE uniqdata19d (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19d OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -172,7 +172,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='FALSE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_039", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_039", Include) { sql(s"""CREATE TABLE uniqdata19e (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19e OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata19e""").collect @@ -182,7 +182,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='TRUE' - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_040", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_040", Include) { sql(s"""CREATE TABLE uniqdata19f (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata19f OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata19f""").collect @@ -192,7 +192,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS ‘SINGLE_PASS’=’true’ - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_041", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_041", Include) { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',','QUOTECHAR'='"','SINGLE_PASS'='TRUE','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20a""").collect @@ -202,7 +202,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with OPTIONS ‘SINGLE_PASS’=’false’ - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_042", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_042", Include) { sql(s"""CREATE TABLE uniqdata20b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20b OPTIONS('DELIMITER'=',','QUOTECHAR'='"','SINGLE_PASS'='FALSE','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20b""").collect @@ -212,7 +212,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with NO_INVERTED_INDEX - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_043", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_043", Include) { sql(s"""CREATE TABLE uniqdata20c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20c OPTIONS('DELIMITER'=',' ,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata20c""").collect @@ -222,7 +222,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with COLUMNDICT - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_044", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_044", Include) { sql(s"""drop table if exists t3""").collect sql(s"""CREATE TABLE t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/batchsort/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -231,7 +231,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting only sort scope in carbon property file with ALL_DICTIONARY_PATH - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_045", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_045", Include) { sql(s"""drop table if exists t3""").collect sql(s"""CREATE TABLE t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/batchsort/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect @@ -240,7 +240,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To check incremental load one with batch_sort and others configured with different sort - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_047", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_047", Include) { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' ,'SORT_SCOPE'='LOCAL_SORT','QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' ,'SORT_SCOPE'='BATCH_SORT','QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -254,7 +254,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To check sort_scope option with a wrong value - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_049", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_049", Include) { try { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' , 'SORT_SCOPE'='ABCXYZ',‘SINGLE_PASS’=’true’,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -267,7 +267,7 @@ class BatchSortLoad2TestCase extends QueryTest with BeforeAndAfterAll { //To check sort_scope option with null value - test("PTS-AR-Batch_sort_Loading_001-01-01-01_001-TC_050", Include) { + test("Batch_sort_Loading_001-01-01-01_001-TC_050", Include) { try { sql(s"""CREATE TABLE uniqdata20a (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/7000_UniqData.csv' into table uniqdata20a OPTIONS('DELIMITER'=',' , 'SORT_SCOPE'='null',‘SINGLE_PASS’=’true’,'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortQueryTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortQueryTestCase.scala index 2c7b35b0ff2..46665c7c24f 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortQueryTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/BatchSortQueryTestCase.scala @@ -32,7 +32,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select query with limit - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_001", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_001", Include) { sql(s"""drop table if exists uniqdataquery1""").collect sql(s"""CREATE TABLE uniqdataquery1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect @@ -43,7 +43,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select query with limit as string - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_002", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_002", Include) { try { sql(s"""select * from uniqdataquery1 limit """"").collect @@ -57,14 +57,14 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select query with no input given at limit - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_003", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_003", Include) { sql(s"""select * from uniqdataquery1 limit""").collect } //To check select count query with where and group by clause - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_004", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_004", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name="CUST_NAME_00000" group by cust_name""").collect @@ -73,7 +73,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by cust_name using like operator - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_005", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_005", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name like "cust_name_0%" group by cust_name""").collect @@ -82,7 +82,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by name using IN operator with empty values - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_006", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_006", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name IN("","") group by cust_name""").collect @@ -91,7 +91,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by name using IN operator with specific values - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_007", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_007", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name IN(1,2,3) group by cust_name""").collect @@ -100,7 +100,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct query - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_008", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_008", Include) { sql(s"""select distinct cust_name from uniqdataquery1 group by cust_name""").collect @@ -109,7 +109,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check where clause with OR and no operand - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_009", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_009", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 1 OR """).collect @@ -123,7 +123,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check OR clause with LHS and RHS having no arguments - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_010", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_010", Include) { try { sql(s"""select * from uniqdataquery1 where OR """).collect @@ -137,7 +137,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check OR clause with LHS having no arguments - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_011", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_011", Include) { try { sql(s"""select * from uniqdataquery1 where OR cust_id > "1"""").collect @@ -151,7 +151,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check incorrect query - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_013", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_013", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 0 OR name """).collect @@ -165,7 +165,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select query with rhs false - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_014", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_014", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 9005 OR false""").collect @@ -174,7 +174,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check count on multiple arguments - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_015", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_015", Include) { sql(s"""select count(cust_id,cust_name) from uniqdataquery1 where cust_id > 10544""").collect @@ -183,7 +183,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check count with no argument - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_016", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_016", Include) { sql(s"""select count() from uniqdataquery1 where cust_id > 10544""").collect @@ -192,7 +192,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check count with * as an argument - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_017", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_017", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_id>10544""").collect @@ -201,7 +201,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count query execution with entire column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_018", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_018", Include) { sql(s"""select count(*) from uniqdataquery1""").collect @@ -210,7 +210,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_019", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_019", Include) { sql(s"""select distinct * from uniqdataquery1""").collect @@ -219,7 +219,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select multiple column query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_020", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_020", Include) { sql(s"""select cust_name,cust_id,count(cust_name) from uniqdataquery1 group by cust_name,cust_id""").collect @@ -228,7 +228,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count and distinct query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_021", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_021", Include) { try { sql(s"""select count(cust_id),distinct(cust_name) from uniqdataquery1""").collect @@ -242,7 +242,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check sum query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_022", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_022", Include) { sql(s"""select sum(cust_id) as sum,cust_name from uniqdataquery1 group by cust_name""").collect @@ -251,7 +251,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check sum of names query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_023", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_023", Include) { sql(s"""select sum(cust_name) from uniqdataquery1""").collect @@ -260,7 +260,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct and groupby query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_024", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_024", Include) { sql(s"""select distinct(cust_name,cust_id) from uniqdataquery1 group by cust_name,cust_id""").collect @@ -269,7 +269,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select with where clause on cust_name query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_025", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_025", Include) { sql(s"""select cust_id from uniqdataquery1 where cust_name="cust_name_00000"""").collect @@ -278,7 +278,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator without paranthesis - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_027", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_027", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id IN 9000,9005""").collect @@ -292,7 +292,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator with paranthesis - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_028", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_028", Include) { sql(s"""select * from uniqdataquery1 where cust_id IN (9000,9005)""").collect @@ -301,7 +301,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator with out specifying any field. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_029", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_029", Include) { try { sql(s"""select * from uniqdataquery1 where IN(1,2)""").collect @@ -315,7 +315,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check OR with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_030", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_030", Include) { sql(s"""select * from uniqdataquery1 where cust_id>9005 or cust_id=9005""").collect @@ -324,7 +324,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check OR with boolean expression - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_031", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_031", Include) { sql(s"""select * from uniqdataquery1 where cust_id>9005 or false""").collect @@ -333,7 +333,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_032", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_032", Include) { sql(s"""select * from uniqdataquery1 where true AND true""").collect @@ -342,7 +342,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND with using booleans - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_033", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_033", Include) { sql(s"""select * from uniqdataquery1 where true AND false""").collect @@ -351,7 +351,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND with using booleans in invalid syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_034", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_034", Include) { try { sql(s"""select * from uniqdataquery1 where AND true""").collect @@ -365,7 +365,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND Passing two conditions on same input - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_035", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_035", Include) { sql(s"""select * from uniqdataquery1 where cust_id=6 and cust_id>5""").collect @@ -374,7 +374,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND changing case - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_036", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_036", Include) { sql(s"""select * from uniqdataquery1 where cust_id=6 aND cust_id>5""").collect @@ -383,7 +383,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND using 0 and 1 treated as boolean values - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_037", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_037", Include) { try { sql(s"""select * from uniqdataquery1 where true aNd 0""").collect @@ -397,7 +397,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check AND on two columns - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_038", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_038", Include) { sql(s"""select * from uniqdataquery1 where cust_id=9000 and cust_name='cust_name_00000'""").collect @@ -406,7 +406,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_039", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_039", Include) { sql(s"""select * from uniqdataquery1 where cust_id=9000 and cust_name='cust_name_00000' and ACTIVE_EMUI_VERSION='ACTIVE_EMUI_VERSION_00000'""").collect @@ -415,7 +415,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator without Passing any value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_040", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_040", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=""").collect @@ -429,7 +429,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator without Passing columnname and value. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_041", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_041", Include) { try { sql(s"""select * from uniqdataquery1 where =""").collect @@ -443,7 +443,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_042", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_042", Include) { sql(s"""select * from uniqdataquery1 where cust_id!=9000""").collect @@ -452,7 +452,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator by keeping space between them - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_043", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_043", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id ! = 9001""").collect @@ -466,7 +466,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator by Passing boolean value whereas column expects an integer - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_044", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_044", Include) { sql(s"""select * from uniqdataquery1 where cust_id != true""").collect @@ -475,7 +475,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator without providing any value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_045", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_045", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id != """).collect @@ -489,7 +489,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator without providing any column name - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_046", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_046", Include) { try { sql(s"""select * from uniqdataquery1 where != false""").collect @@ -503,7 +503,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' with valid syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_047", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_047", Include) { sql(s"""select * from uniqdataquery1 where NOT(cust_id=9000)""").collect @@ -512,7 +512,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' using boolean values - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_048", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_048", Include) { sql(s"""select * from uniqdataquery1 where NOT(false)""").collect @@ -521,7 +521,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' applying it on a value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_049", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_049", Include) { sql(s"""select * from uniqdataquery1 where cust_id = 'NOT(false)'""").collect @@ -530,7 +530,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' with between operator - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_050", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_050", Include) { sql(s"""select * from uniqdataquery1 where cust_id NOT BETWEEN 9000 and 9005""").collect @@ -539,7 +539,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator in nested way - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_051", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_051", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT (NOT(true))""").collect @@ -553,7 +553,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator with parenthesis. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_052", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_052", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT ()""").collect @@ -567,7 +567,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator without condition. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_053", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_053", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT""").collect @@ -581,7 +581,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator checking case sensitivity. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_054", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_054", Include) { sql(s"""select * from uniqdataquery1 where nOt(false)""").collect @@ -590,7 +590,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator without specifying column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_055", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_055", Include) { try { sql(s"""select * from uniqdataquery1 where > 20""").collect @@ -604,7 +604,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator without specifying value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_056", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_056", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > """).collect @@ -618,7 +618,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_057", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_057", Include) { sql(s"""select * from uniqdataquery1 where cust_id >9005""").collect @@ -627,7 +627,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator for Integer value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_058", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_058", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 9010""").collect @@ -636,7 +636,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator for String value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_059", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_059", Include) { sql(s"""select * from uniqdataquery1 where cust_name > 'cust_name_00000'""").collect @@ -645,7 +645,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator without specifying column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_060", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_060", Include) { try { sql(s"""select * from uniqdataquery1 where < 5""").collect @@ -659,7 +659,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_061", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_061", Include) { sql(s"""select * from uniqdataquery1 where cust_id < 9005""").collect @@ -668,7 +668,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator for String value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_062", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_062", Include) { sql(s"""select * from uniqdataquery1 where cust_name < "cust_name_00001"""").collect @@ -677,7 +677,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator without specifying column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_063", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_063", Include) { try { sql(s"""select * from uniqdataquery1 where <= 2""").collect @@ -691,7 +691,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator without providing value - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_064", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_064", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id <= """).collect @@ -705,7 +705,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_065", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_065", Include) { sql(s"""select * from uniqdataquery1 where cust_id <=9002""").collect @@ -714,7 +714,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator adding space between'<' and '=' - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_066", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_066", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id < = 9002""").collect @@ -728,7 +728,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator without providing range - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_067", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_067", Include) { try { sql(s"""select * from uniqdataquery1 where age between""").collect @@ -742,7 +742,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_068", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_068", Include) { sql(s"""select * from uniqdataquery1 where cust_id between 9002 and 9030""").collect @@ -751,7 +751,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator providing two same values - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_069", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_069", Include) { sql(s"""select * from uniqdataquery1 where cust_name beTWeen 'CU%' and 'CU%'""").collect @@ -760,7 +760,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT BETWEEN' operator for integer - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_070", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_070", Include) { sql(s"""select * from uniqdataquery1 where cust_id NOT between 9024 and 9030""").collect @@ -769,7 +769,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT BETWEEN' operator for string - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_071", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_071", Include) { sql(s"""select * from uniqdataquery1 where cust_name NOT beTWeen 'cust_name_00000' and 'cust_name_00001'""").collect @@ -778,7 +778,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' for case sensitiveness. - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_072", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_072", Include) { sql(s"""select * from uniqdataquery1 where cust_id Is NulL""").collect @@ -787,7 +787,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' for null field - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_073", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_073", Include) { sql(s"""select * from uniqdataquery1 where cust_name Is NulL""").collect @@ -796,7 +796,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' without providing column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_074", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_074", Include) { try { sql(s"""select * from uniqdataquery1 where Is NulL""").collect @@ -810,7 +810,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NOT NULL' without providing column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_075", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_075", Include) { try { sql(s"""select * from uniqdataquery1 where IS NOT NULL""").collect @@ -824,7 +824,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check ''IS NOT NULL' operator with correct syntax - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_076", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_076", Include) { sql(s"""select * from uniqdataquery1 where cust_id IS NOT NULL""").collect @@ -833,7 +833,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check 'Like' operator for integer - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_077", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_077", Include) { sql(s"""select * from uniqdataquery1 where cust_id Like '9%'""").collect @@ -842,7 +842,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_078", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_078", Include) { sql(s"""select * from uniqdataquery1 where cust_id>10987 limit 15""").collect @@ -851,7 +851,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition and no argument - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_079", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_079", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=10987 limit""").collect @@ -865,7 +865,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition and decimal argument - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_080", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_080", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=10987 limit 0.0""").collect @@ -879,7 +879,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check where clause with distinct and group by - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_081", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_081", Include) { sql(s"""select distinct cust_name from uniqdataquery1 where cust_name IN("CUST_NAME_01999") group by cust_name""").collect @@ -888,7 +888,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check subqueries - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_082", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_082", Include) { sql(s"""select * from (select cust_id from uniqdataquery1 where cust_id IN (10987,10988)) uniqdataquery1 where cust_id IN (10987, 10988)""").collect @@ -897,7 +897,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To count with where clause - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_083", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_083", Include) { sql(s"""select count(cust_id) from uniqdataquery1 where cust_id > 10874""").collect @@ -906,7 +906,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Join query - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_084", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_084", Include) { sql(s"""drop table if exists uniqdataquery11""").collect sql(s"""CREATE TABLE uniqdataquery11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdataquery11 OPTIONS('DELIMITER'=',' , 'SORT_SCOPE'='BATCH_SORT','QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -917,7 +917,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Left join with where clause - ignore("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_085", Include) { + ignore("Batch_sort_Querying_001-01-01-01_001-TC_085", Include) { sql(s"""select uniqdataquery1.CUST_ID from uniqdataquery1 LEFT join uniqdataquery11 where uniqdataquery1.CUST_ID > 10000""").collect @@ -926,7 +926,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Full join - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_086", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_086", Include) { try { sql(s"""select uniqdataquery1.CUST_ID from uniqdataquery1 FULL JOIN uniqdataquery11 where CUST_ID""").collect @@ -940,7 +940,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Broadcast join - ignore("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_087", Include) { + ignore("Batch_sort_Querying_001-01-01-01_001-TC_087", Include) { sql(s"""select broadcast.cust_id from uniqdataquery1 broadcast join uniqdataquery11 where broadcast.cust_id > 10900""").collect @@ -949,7 +949,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To avg function - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_088", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_088", Include) { sql(s"""select avg(cust_name) from uniqdataquery1 where cust_id > 10544 group by cust_name""").collect @@ -958,7 +958,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check subquery with aggrgate function avg - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_089", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_089", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery1 where cust_id IN (select cust_id from uniqdataquery1 where cust_id > 0) group by cust_id""").collect @@ -967,7 +967,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on Measure - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_090", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_090", Include) { sql(s"""select cust_id from uniqdataquery1 where cust_id > 10543 group by cust_id having cust_id = 10546""").collect @@ -976,7 +976,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on dimension - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_091", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_091", Include) { sql(s"""select cust_name from uniqdataquery1 where cust_id > 10544 group by cust_name having cust_name like 'C%'""").collect @@ -985,7 +985,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on multiple columns - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_092", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_092", Include) { sql(s"""select cust_id,cust_name from uniqdataquery1 where cust_id > 10544 group by cust_id,cust_name having cust_id = 10545 AND cust_name like 'C%'""").collect @@ -994,7 +994,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING with empty condition - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_094", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_094", Include) { sql(s"""select cust_name from uniqdataquery1 where cust_id > 10544 group by cust_name having """"").collect @@ -1003,7 +1003,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check SORT on measure - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_095", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_095", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_id asc""").collect @@ -1012,7 +1012,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check SORT on dimemsion - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_096", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_096", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_name desc""").collect @@ -1021,7 +1021,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check SORT using 'AND' on multiple column - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_097", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_097", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_name desc and cust_id asc""").collect @@ -1035,7 +1035,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Select average names and group by name query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_098", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_098", Include) { sql(s"""select avg(cust_name) from uniqdataquery1 group by cust_name""").collect @@ -1044,7 +1044,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Select average id and group by id query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_099", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_099", Include) { sql(s"""select avg(cust_id) from uniqdataquery1 group by cust_id""").collect @@ -1053,7 +1053,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check average aggregate function with no arguments - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_100", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_100", Include) { try { sql(s"""select cust_id,avg() from uniqdataquery1 group by cust_id""").collect @@ -1067,7 +1067,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check average aggregate function with empty string - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_101", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_101", Include) { sql(s"""select cust_id,avg("") from uniqdataquery1 group by cust_id""").collect @@ -1076,7 +1076,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check nested average aggregate function - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_102", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_102", Include) { try { sql(s"""select cust_id,avg(count(cust_id)) from uniqdataquery1 group by cust_id""").collect @@ -1090,7 +1090,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Multilevel query - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_103", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_103", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery1 where cust_id IN (select cust_id from uniqdataquery1) group by cust_id""").collect @@ -1099,7 +1099,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Using first() with group by clause - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_104", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_104", Include) { sql(s"""select first(cust_id) from uniqdataquery1 group by cust_id""").collect @@ -1108,7 +1108,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check max with groupby clause query execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_105", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_105", Include) { sql(s"""select max(cust_name) from uniqdataquery1 group by(cust_name)""").collect @@ -1117,7 +1117,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check max with groupby clause query with id execution - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_106", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_106", Include) { sql(s"""select max(cust_name) from uniqdataquery1 group by(cust_name),cust_id""").collect @@ -1126,7 +1126,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check multiple aggregate functions - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_107", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_107", Include) { sql(s"""select max(cust_name),sum(cust_name),count(cust_id) from uniqdataquery1 group by(cust_name),cust_id""").collect @@ -1135,7 +1135,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check max with empty string as argument - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_108", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_108", Include) { sql(s"""select max("") from uniqdataquery1 group by(cust_name)""").collect @@ -1144,7 +1144,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check select count of names with group by clause - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_109", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_109", Include) { sql(s"""select count(cust_name) from uniqdataquery1 group by cust_name""").collect @@ -1153,7 +1153,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Order by ASC - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_110", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_110", Include) { sql(s"""select * from uniqdataquery1 order by cust_id ASC""").collect @@ -1162,7 +1162,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Order by DESC - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_111", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_111", Include) { sql(s"""select * from uniqdataquery1 order by cust_id DESC""").collect @@ -1171,7 +1171,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Order by without column name - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_112", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_112", Include) { try { sql(s"""select * from uniqdataquery1 order by ASC""").collect @@ -1185,7 +1185,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check cast Int to String - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_113", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_113", Include) { sql(s"""select cast(bigint_column1 as STRING) from uniqdataquery1""").collect @@ -1194,7 +1194,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check cast string to int - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_114", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_114", Include) { sql(s"""select cast(cust_name as INT) from uniqdataquery1""").collect @@ -1203,7 +1203,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check cast int to decimal - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_115", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_115", Include) { sql(s"""select cast(bigint_column1 as DECIMAL(10,4)) from uniqdataquery1""").collect @@ -1212,7 +1212,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Using window with order by - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_116", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_116", Include) { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery1 WINDOW w AS (PARTITION BY bigint_column2 ORDER BY cust_id)""").collect @@ -1221,7 +1221,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Using window without partition - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_117", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_117", Include) { try { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery1 WINDOW w""").collect @@ -1235,7 +1235,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Using ROLLUP with group by - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_118", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_118", Include) { sql(s"""select cust_name from uniqdataquery1 group by cust_name with ROLLUP""").collect @@ -1244,7 +1244,7 @@ class BatchSortQueryTestCase extends QueryTest with BeforeAndAfterAll { //To check Using ROLLUP without group by clause - test("PTS-AR-Batch_sort_Querying_001-01-01-01_001-TC_119", Include) { + test("Batch_sort_Querying_001-01-01-01_001-TC_119", Include) { try { sql(s"""select cust_name from uniqdataquery1 with ROLLUP""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ColumndictTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ColumndictTestCase.scala index 3e886e94795..f7022545409 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ColumndictTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ColumndictTestCase.scala @@ -29,7 +29,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load history data from CSV with/without header and specify/dont specify headers in command using external ALL_dictionary_PATH - test("AR-Develop-Feature-columndict-001_PTS001_TC001", Include) { + test("Columndict-TC001", Include) { sql(s"""drop table if exists t3""").collect sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect @@ -38,7 +38,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load history data from CSV with/without header and specify/dont specify headers in command using external columndict - test("AR-Develop-Feature-columndict-001_PTS001_TC002", Include) { + test("Columndict-TC002", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -46,7 +46,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external All_dictionary_path for CSV having incomplete/wrong data/no data/null data - test("AR-Develop-Feature-columndict-001_PTS001_TC003", Include) { + test("Columndict-TC003", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/inValidData.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -54,7 +54,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external columndict for CSV having incomplete/wrong data/no data/null data - test("AR-Develop-Feature-columndict-001_PTS001_TC004", Include) { + test("Columndict-TC004", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/inValidData.csv', 'SINGLE_PASS'='true')""").collect @@ -67,7 +67,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load multiple CSV from folder into table , Multiple level of folders using external all_dictionary_path - test("AR-Develop-Feature-columndict-001_PTS001_TC005", Include) { + test("Columndict-TC005", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data1' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -75,7 +75,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load multiple CSV from folder into table , Multiple level of folders using external columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC006", Include) { + ignore("Columndict-TC006", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data1' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -83,7 +83,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using CSV file with different extension (.dat, .xls, .doc,.txt) and without extension from external dictionary - ignore("AR-Develop-Feature-columndict-001_PTS001_TC007", Include) { + ignore("Columndict-TC007", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.dat' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -91,7 +91,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using CSV file with different extension (.dat, .xls, .doc,.txt) and without extension from external dictionary - ignore("AR-Develop-Feature-columndict-001_PTS001_TC008", Include) { + ignore("Columndict-TC008", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.dat' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -99,7 +99,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using MAXCOLUMNS during loading with external all_dictionary_path - test("AR-Develop-Feature-columndict-001_PTS001_TC009", Include) { + test("Columndict-TC009", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.dat' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary','maxcolumns'='8', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -107,7 +107,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using MAXCOLUMNS during loading with external columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC010", Include) { + ignore("Columndict-TC010", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.dat' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv','maxcolumns'='8', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -115,7 +115,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Bad records logging after load using external all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC011", Include) { + ignore("Columndict-TC011", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='FORCE', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -123,7 +123,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Bad records logging after load using external columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC012", Include) { + ignore("Columndict-TC012", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'= 'country:$resourcesPath/Data/columndict/country.csv','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='FORCE', 'SINGLE_PASS'='true')""").collect @@ -132,7 +132,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Incremental Load using external dictionary - test("AR-Develop-Feature-columndict-001_PTS001_TC013", Include) { + test("Columndict-TC013", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect @@ -144,7 +144,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Incremental Load using external dictionary - ignore("AR-Develop-Feature-columndict-001_PTS001_TC014", Include) { + ignore("Columndict-TC014", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -156,7 +156,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external dictionary for table without table properties - ignore("AR-Develop-Feature-columndict-001_PTS001_TC015", Include) { + ignore("Columndict-TC015", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -164,7 +164,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external dictionary for table without table properties - ignore("AR-Develop-Feature-columndict-001_PTS001_TC016", Include) { + ignore("Columndict-TC016", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -172,7 +172,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external all_dictionary_path for table with table properties(DICTIONARY_EXCLUDE, DICTIONARY_INCLUDE, BLOCKSIZE) - ignore("AR-Develop-Feature-columndict-001_PTS001_TC017", Include) { + ignore("Columndict-TC017", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB','DICTIONARY_INCLUDE'='salary','DICTIONARY_EXCLUDE'='phonetype')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -180,7 +180,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external columndict for table with table properties(DICTIONARY_EXCLUDE, DICTIONARY_INCLUDE, BLOCKSIZE) - test("AR-Develop-Feature-columndict-001_PTS001_TC018", Include) { + test("Columndict-TC018", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB','DICTIONARY_INCLUDE'='salary','DICTIONARY_EXCLUDE'='phonetype')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -188,7 +188,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external all_dictionary_path for measure and table properties(DICTIONARY_EXCLUDE, DICTIONARY_INCLUDE, BLOCKSIZE) - ignore("AR-Develop-Feature-columndict-001_PTS001_TC019", Include) { + ignore("Columndict-TC019", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB','DICTIONARY_INCLUDE'='salary','DICTIONARY_EXCLUDE'='country')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='salary:$resourcesPath/Data/columndict/salary.csv', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -196,7 +196,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Load using external columndict for table with measure and tableproperties(DICTIONARY_EXCLUDE, DICTIONARY_INCLUDE, BLOCKSIZE) - test("AR-Develop-Feature-columndict-001_PTS001_TC020", Include) { + test("Columndict-TC020", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB','DICTIONARY_EXCLUDE'='country')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:'resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -209,7 +209,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Columndict parameter name validation - ignore("AR-Develop-Feature-columndict-001_PTS001_TC021", Include) { + ignore("Columndict-TC021", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB','DICTIONARY_EXCLUDE'='country')""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='countries:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -222,7 +222,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Columndict parameter value validation - test("AR-Develop-Feature-columndict-001_PTS001_TC022", Include) { + test("Columndict-TC022", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='salary:$resourcesPath/Data/columndict/country.csv', 'SINGLE_PASS'='true')""").collect @@ -235,7 +235,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for data validation in csv(empty/null/wrong data) for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC023", Include) { + ignore("Columndict-TC023", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/inValidData.dictionary', 'SINGLE_PASS'='true')""").collect @@ -248,7 +248,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for data validation in csv(empty/null/wrong data) for columndict - test("AR-Develop-Feature-columndict-001_PTS001_TC024", Include) { + test("Columndict-TC024", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('COLUMNDICT'='country:'resourcesPath/Data/columndict/inValidData.csv', 'SINGLE_PASS'='true')""").collect @@ -261,7 +261,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for validation of external all_dictionary_path folder with incorrect path - test("AR-Develop-Feature-columndict-001_PTS001_TC025", Include) { + test("Columndict-TC025", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('ALL_DICTIONARY_PATH'=''resourcesPath/Data/*.dictionary', 'SINGLE_PASS'='true')""").collect @@ -274,7 +274,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for validation of external all_dictionary_path folder with correct path - test("AR-Develop-Feature-columndict-001_PTS001_TC026", Include) { + test("Columndict-TC026", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/*.dictionary', 'SINGLE_PASS'='true')""").collect @@ -287,7 +287,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for validation of external columndict folder with correct path - test("AR-Develop-Feature-columndict-001_PTS001_TC027", Include) { + test("Columndict-TC027", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('COLUMNDICT'='country:'resourcesPath/Data/columndict/*.csv', 'SINGLE_PASS'='true')""").collect @@ -300,7 +300,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for validation of external all_dictionary_path file( missing /wrong path / wrong name) - test("AR-Develop-Feature-columndict-001_PTS001_TC028", Include) { + test("Columndict-TC028", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('ALL_DICTIONARY_PATH'=''resourcesPath/Data/columndict/wrongName.dictionary', 'SINGLE_PASS'='true')""").collect @@ -313,7 +313,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for validation of external columndict file( missing /wrong path / wrong name) - test("AR-Develop-Feature-columndict-001_PTS001_TC029", Include) { + test("Columndict-TC029", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('COLUMNDICT'='country:'resourcesPath/Data/columndict/wrongName.csv', 'SINGLE_PASS'='true')""").collect @@ -326,7 +326,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for different dictionary file extensions for all_dictionary_path - test("AR-Develop-Feature-columndict-001_PTS001_TC030", Include) { + test("Columndict-TC030", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.txt', 'SINGLE_PASS'='true')""").collect sql(s"""drop table if exists t3""").collect @@ -334,7 +334,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //Check for different dictionary file extensions for columndict - test("AR-Develop-Feature-columndict-001_PTS001_TC031", Include) { + test("Columndict-TC031", Include) { try { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/inValidData.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data/columndict/country.txt', 'SINGLE_PASS'='true')""").collect @@ -347,7 +347,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check limit for all_dictionary_path - test("AR-Develop-Feature-columndict-001_PTS001_TC032", Include) { + test("Columndict-TC032", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 limit 100""").collect @@ -357,7 +357,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check count for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC033", Include) { + ignore("Columndict-TC033", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select count(*) from t3""").collect @@ -367,7 +367,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check sum for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC034", Include) { + ignore("Columndict-TC034", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select sum(salary) from t3""").collect @@ -377,7 +377,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check >= for all_dictionary_path - test("AR-Develop-Feature-columndict-001_PTS001_TC035", Include) { + test("Columndict-TC035", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where ID >=5""").collect @@ -387,7 +387,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check != for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC036", Include) { + ignore("Columndict-TC036", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where ID != 9""").collect @@ -397,7 +397,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check between for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC037", Include) { + ignore("Columndict-TC037", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id between 2 and 9""").collect @@ -407,7 +407,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check like for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC038", Include) { + ignore("Columndict-TC038", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id Like '9%'""").collect @@ -417,7 +417,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check group by for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC039", Include) { + ignore("Columndict-TC039", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id > 3 group by id,name having id = 2""").collect @@ -427,7 +427,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check sort by for all_dictionary_path - ignore("AR-Develop-Feature-columndict-001_PTS001_TC040", Include) { + ignore("Columndict-TC040", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('ALL_DICTIONARY_PATH'='$resourcesPath/Data/columndict/data.dictionary', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id > 4 sort by name desc""").collect @@ -437,7 +437,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check limit for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC041", Include) { + ignore("Columndict-TC041", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 limit 100""").collect @@ -447,7 +447,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check count for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC042", Include) { + ignore("Columndict-TC042", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select count(*) from t3""").collect @@ -457,7 +457,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check sum for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC043", Include) { + ignore("Columndict-TC043", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select sum(salary) from t3""").collect @@ -467,7 +467,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check >= for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC044", Include) { + ignore("Columndict-TC044", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where ID >=5""").collect @@ -477,7 +477,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check != for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC045", Include) { + ignore("Columndict-TC045", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where ID != 9""").collect @@ -487,7 +487,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check between for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC046", Include) { + ignore("Columndict-TC046", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id between 2 and 9""").collect @@ -497,7 +497,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check like for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC047", Include) { + ignore("Columndict-TC047", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id Like '9%'""").collect @@ -507,7 +507,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check group by for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC048", Include) { + ignore("Columndict-TC048", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id > 3 group by id,name having id = 2""").collect @@ -517,7 +517,7 @@ class ColumndictTestCase extends QueryTest with BeforeAndAfterAll { //To check sort by for columndict - ignore("AR-Develop-Feature-columndict-001_PTS001_TC049", Include) { + ignore("Columndict-TC049", Include) { sql(s"""CREATE TABLE IF NOT EXISTS t3 (ID Int, country String, name String, phonetype String, serialname String, salary Int,floatField float) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/Data/columndict/data.csv' into table t3 options('COLUMNDICT'='country:$resourcesPath/Data//columndict/country.csv', 'SINGLE_PASS'='true')""").collect sql(s"""select ID,name from t3 where id > 4 sort by name desc""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingTestCase.scala index 3728db04ddb..f32ae10a13d 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingTestCase.scala @@ -38,92 +38,92 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Data load--->Action--->Redirect--->Logger-->True - test("DataSight_Carbon_BadRecord_Dataload_001", Include) { + test("BadRecord_Dataload_001", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_001") + Seq(Row(2013)), "DataLoadingTestCase-BadRecord_Dataload_001") sql(s"""drop table uniqdata""").collect } //Data load--->Action--->FORCE--->Logger-->True - test("DataSight_Carbon_BadRecord_Dataload_002", Include) { + test("BadRecord_Dataload_002", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_002") + Seq(Row(2013)), "DataLoadingTestCase-BadRecord_Dataload_002") sql(s"""drop table uniqdata""").collect } //Data load--->Action--->IGNORE--->Logger-->True - test("DataSight_Carbon_BadRecord_Dataload_003", Include) { + test("BadRecord_Dataload_003", Include) { sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2010)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_003") + Seq(Row(2010)), "DataLoadingTestCase-BadRecord_Dataload_003") sql(s"""drop table uniqdata""").collect } //Data load--->Action--->Ignore--->Logger-->False - test("DataSight_Carbon_BadRecord_Dataload_004", Include) { + test("BadRecord_Dataload_004", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s""" CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2010)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_004") + Seq(Row(2010)), "DataLoadingTestCase-BadRecord_Dataload_004") sql(s"""drop table if exists uniqdata""").collect } //Data load--->Action--->FORCE--->Logger-->False - test("DataSight_Carbon_BadRecord_Dataload_005", Include) { + test("BadRecord_Dataload_005", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s""" CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_005") + Seq(Row(2013)), "DataLoadingTestCase-BadRecord_Dataload_005") sql(s"""drop table uniqdata""").collect } //Data load--->Action--->Redirect--->Logger-->False - test("DataSight_Carbon_BadRecord_Dataload_006", Include) { + test("BadRecord_Dataload_006", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s""" CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2010)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_006") + Seq(Row(2010)), "DataLoadingTestCase-BadRecord_Dataload_006") sql(s"""drop table uniqdata""").collect } //Data load-->Dictionary_Exclude - test("DataSight_Carbon_BadRecord_Dataload_007", Include) { + test("BadRecord_Dataload_007", Include) { sql(s"""CREATE TABLE uniq_exclude (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='CUST_NAME,ACTIVE_EMUI_VERSION')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniq_exclude OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniq_exclude""", - Seq(Row(2010)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_007") + Seq(Row(2010)), "DataLoadingTestCase-BadRecord_Dataload_007") sql(s"""drop table uniq_exclude""").collect } //Data load-->Extra_Column_in table - test("DataSight_Carbon_BadRecord_Dataload_010", Include) { + test("BadRecord_Dataload_010", Include) { sql(s"""CREATE TABLE exceed_column_in_table (cust_id int ,CUST_NAME String,date timestamp,date2 timestamp) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/extra_column.csv' into table exceed_column_in_table OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='cust_id,CUST_NAME,date,date2')""").collect checkAnswer(s"""select count(*) from exceed_column_in_table""", - Seq(Row(2)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_010") + Seq(Row(2)), "DataLoadingTestCase-BadRecord_Dataload_010") sql(s"""drop table exceed_column_in_table""").collect } //Data load-->Empty BadRecords Parameters - test("DataSight_Carbon_BadRecord_Dataload_011", Include) { + test("BadRecord_Dataload_011", Include) { try { sql(s"""CREATE TABLE badrecords_test1 (ID int,CUST_ID int,sal int,cust_name string) STORED BY 'org.apache.carbondata.format'""") @@ -132,7 +132,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { .collect checkAnswer( s"""select count(*) from badrecords_test1""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_011") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_011") assert(false) } catch { case _ => assert(true) @@ -142,65 +142,65 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Data load-->Range Exceed - test("DataSight_Carbon_BadRecord_Dataload_012", Include) { + test("BadRecord_Dataload_012", Include) { sql(s"""CREATE TABLE all_data_types_range (integer_column int,string_column string,double_Column double,decimal_column decimal,bigint_Column bigint) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/all_data_types_range.csv' into table all_data_types_range OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='integer_column,string_column,double_Column,decimal_column,bigint_Column')""").collect checkAnswer(s"""select count(*) from all_data_types_range""", - Seq(Row(2)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_012") + Seq(Row(2)), "DataLoadingTestCase-BadRecord_Dataload_012") sql(s"""drop table all_data_types_range""").collect } //Data load-->Escape_Character - test("DataSight_Carbon_BadRecord_Dataload_013", Include) { + test("BadRecord_Dataload_013", Include) { sql(s"""CREATE TABLE Escape_test(integer_col int,String_col String,Integer_column2 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/EScape_Test.csv' into table Escape_test OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='integer_col,String_col,Integer_column2')""").collect checkAnswer(s"""select count(*) from Escape_test""", - Seq(Row(3)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_013") + Seq(Row(3)), "DataLoadingTestCase-BadRecord_Dataload_013") sql(s"""drop table Escape_test""").collect } //Data load-->All_Bad_Records_IN CSV - test("DataSight_Carbon_BadRecord_Dataload_014", Include) { + test("BadRecord_Dataload_014", Include) { sql(s"""CREATE TABLE test25(integer_col int,integer_col2 int,String_col String,decimal_col decimal,double_col double,date timestamp) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_test6.csv' into table test25 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='\','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='integer_col,integer_col2,String_col,decimal_col,double_col,date')""").collect checkAnswer(s"""select count(*) from test25""", - Seq(Row(1)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_014") + Seq(Row(1)), "DataLoadingTestCase-BadRecord_Dataload_014") sql(s"""drop table test25""").collect } //Data load-->CSV_Contain_Single_Space - test("DataSight_Carbon_BadRecord_Dataload_015", Include) { + test("BadRecord_Dataload_015", Include) { sql(s"""CREATE TABLE test3 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/test3.csv' into table test3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='ID,CUST_ID,Cust_name')""").collect checkAnswer(s"""select count(*) from test3""", - Seq(Row(4)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_015") + Seq(Row(4)), "DataLoadingTestCase-BadRecord_Dataload_015") sql(s"""drop table test3""").collect } //Data load-->Multiple_Csv - test("DataSight_Carbon_BadRecord_Dataload_016", Include) { + test("BadRecord_Dataload_016", Include) { sql(s"""CREATE TABLE multicsv_check(integer_col int,integer_col2 int,String_col String,decimal_col decimal,double_col double,date timestamp) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Test' into table multicsv_check OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='\','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='integer_col,integer_col2,String_col,decimal_col,double_col,date')""").collect checkAnswer(s"""select count(*) from multicsv_check""", - Seq(Row(2)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_016") + Seq(Row(2)), "DataLoadingTestCase-BadRecord_Dataload_016") sql(s"""drop table multicsv_check""").collect } //Data load-->Empty csv - test("DataSight_Carbon_BadRecord_Dataload_017", Include) { + test("BadRecord_Dataload_017", Include) { intercept[Exception] { sql(s"""CREATE TABLE emptycsv_check(integer_col int,integer_col2 int,String_col String,decimal_col decimal,double_col double,date timestamp) STORED BY 'org.apache.carbondata.format'""").collect @@ -208,87 +208,87 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { .collect } checkAnswer(s"""select count(*) from emptycsv_check """, - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_017") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_017") sql(s"""drop table emptycsv_check """).collect } //Data load-->Datatype contain value of Other Datatype - test("DataSight_Carbon_BadRecord_Dataload_018", Include) { + test("BadRecord_Dataload_018", Include) { sql(s"""CREATE TABLE datatype_check(integer_col int,integer_col2 int,String_col String) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/datatype.csv' into table datatype_check OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='\','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='integer_col,integer_col2,String_col')""").collect checkAnswer( s"""select count(*) from datatype_check""", - Seq(Row(1)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_018") + Seq(Row(1)), "DataLoadingTestCase-BadRecord_Dataload_018") sql(s"""drop table datatype_check""").collect } //Data load-->Extra_Column_incsv - test("DataSight_Carbon_BadRecord_Dataload_019", Include) { + test("BadRecord_Dataload_019", Include) { sql(s"""CREATE TABLE exceed_column_in_Csv (CUST_NAME String,date timestamp) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/extra_column.csv' into table exceed_column_in_Csv OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_NAME,date')""").collect checkAnswer( s"""select count(*) from exceed_column_in_Csv """, - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_019") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_019") } sql(s"""drop table exceed_column_in_Csv """).collect } //Data load-->Timestamp Exceed Range - test("DataSight_Carbon_BadRecord_Dataload_020", Include) { + test("BadRecord_Dataload_020", Include) { sql(s"""CREATE TABLE timestamp_range (date timestamp) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/timetsmap.csv' into table timestamp_range OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='date')""").collect } checkAnswer(s"""select count(*) from timestamp_range""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_020") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_020") sql(s"""drop table timestamp_range""").collect } //Show loads-->Delimeter_check - test("DataSight_Carbon_BadRecord_Dataload_021", Include) { + test("BadRecord_Dataload_021", Include) { sql(s"""CREATE TABLE bad_records_test5 (String_col string,integer_col int,decimal_column decimal,date timestamp,double_col double) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_test5.csv' into table bad_records_test5 OPTIONS('DELIMITER'='*' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='String_col,integer_col,decimal_column,date,double_col') """).collect } checkAnswer(s"""select count(*) from bad_records_test5""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_021") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_021") sql(s"""drop table bad_records_test5 """).collect } //Data load--->Action--->FAIL--->Logger-->True - test("DataSight_Carbon_BadRecord_Dataload_022", Include) { + test("BadRecord_Dataload_022", Include) { dropTable("bad_records_test5") sql(s"""CREATE TABLE bad_records_test5 (String_col string,integer_col int,decimal_column decimal,date timestamp,double_col double) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_test5.csv' into table bad_records_test5 OPTIONS('DELIMITER'='*' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='String_col,integer_col,decimal_column,date,double_col') """).collect } checkAnswer(s"""select count(*) from bad_records_test5""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_022") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_022") sql(s"""drop table bad_records_test5 """).collect } //Data load without any any action parameter - test("DataSight_Carbon_BadRecord_Dataload_023", Include) { + test("BadRecord_Dataload_023", Include) { dropTable("bad_records_test5") sql(s"""CREATE TABLE bad_records_test5 (String_col string,integer_col int,decimal_column decimal,date timestamp,double_col double) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_test5.csv' into table bad_records_test5 OPTIONS('DELIMITER'='*' , 'QUOTECHAR'='"','FILEHEADER'='String_col,integer_col,decimal_column,date,double_col') """).collect checkAnswer(s"""select count(*) from bad_records_test5""", - Seq(Row(1)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_023") + Seq(Row(1)), "DataLoadingTestCase-BadRecord_Dataload_023") sql(s"""drop table bad_records_test5 """).collect } //Check for insert into carbon table with all columns selected from Hive table where both tables having same number of columns - test("DataSight_Carbon_Insert_Func_005", Include) { + test("Insert_Func_005", Include) { sql(s"""drop table IF EXISTS T_Hive1""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect @@ -296,13 +296,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""load data INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' overwrite into table T_Hive1""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_005") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_005") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Parquet table where both tables having same number of columns - ignore("DataSight_Carbon_Insert_Func_006", Include) { + ignore("Insert_Func_006", Include) { sql(s"""drop table IF EXISTS T_Parq1""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Parq1(Active_status BOOLEAN, Item_type_cd TINYINT, Qty_day_avg SMALLINT, Qty_total INT, Sell_price BIGINT, Sell_pricep FLOAT, Discount_price DOUBLE , Profit DECIMAL(3,2), Item_code STRING, Item_name VARCHAR(50), Outlet_name CHAR(100), Update_time TIMESTAMP, Create_date DATE) stored as 'parquet'""").collect @@ -310,13 +310,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""Insert into T_Parq1 select * from T_hive1""").collect sql(s"""insert into T_Carbn01 select * from T_Parq1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_006") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_006") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Carbon table where both tables having same number of columns - test("DataSight_Carbon_Insert_Func_007", Include) { + test("Insert_Func_007", Include) { sql(s"""drop table IF EXISTS T_Carbn1""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect @@ -324,38 +324,38 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn1 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""insert into T_Carbn01 select * from T_Carbn1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - Seq(Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_007") + Seq(Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase-Insert_Func_007") sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""drop table IF EXISTS T_Carbn1""").collect } //Check for insert into table providing values in the query - test("DataSight_Carbon_Insert_Func_001", Include) { + test("Insert_Func_001", Include) { sql(s"""drop table IF EXISTS T_Carbn04""").collect sql(s"""create table T_Carbn04(Item_code STRING, Item_name STRING)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn04 values('abc',1)""").collect checkAnswer(s"""select * from T_Carbn04""", - Seq(Row("abc","1")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_001") + Seq(Row("abc","1")), "DataLoadingTestCase-Insert_Func_001") sql(s"""drop table IF EXISTS T_Carbn04""").collect } //Check for insert into carbon table with all columns selected from Hive table where selected query is having more columns and the additional columns come after the equivalent columns - test("DataSight_Carbon_Insert_Func_008", Include) { + test("Insert_Func_008", Include) { sql(s"""drop table IF EXISTS t_hive2""").collect sql(s"""create table T_Hive2(Active_status String, Item_type_cd INT, Qty_day_avg SMALLINT, Qty_total INT, Sell_price BIGINT, Sell_pricep DOUBLE, Discount_price DOUBLE , Profit DECIMAL(3,2), Item_code STRING, Item_name VARCHAR(50), Outlet_name CHAR(100), Update_time TIMESTAMP, Create_date String,Profit_perc DECIMAL(4,3),name string)row format delimited fields terminated by ',' collection items terminated by '$DOLLAR'""").collect sql(s"""load data INPATH '$resourcesPath/Data/InsertData/T_Hive2.csv' overwrite into table T_Hive2""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg SMALLINT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive2""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive2 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_008") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive2 order by update_time""", "DataLoadingTestCase-Insert_Func_008") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Parquet table where selected query is having more columns - ignore("DataSight_Carbon_Insert_Func_010", Include) { + ignore("Insert_Func_010", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""drop table IF EXISTS T_Parq2""").collect sql(s"""create table T_Parq2(Active_status String, Item_type_cd INT, Qty_day_avg SMALLINT, Qty_total INT, Sell_price BIGINT, Sell_pricep DOUBLE, Discount_price DOUBLE , Profit DECIMAL(3,2), Item_code STRING, Item_name VARCHAR(50), Outlet_name CHAR(100), Update_time TIMESTAMP, Create_date String,Profit_perc DECIMAL(4,3),name string) stored as 'parquet'""").collect @@ -364,13 +364,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table if not exists T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Parq2""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive2 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_010") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive2 order by update_time""", "DataLoadingTestCase-Insert_Func_010") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Carbon table where selected query is having more columns - test("DataSight_Carbon_Insert_Func_011", Include) { + test("Insert_Func_011", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""drop table IF EXISTS t_carbn2""").collect sql(s"""create table T_Carbn2(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String,Profit_perc DECIMAL(4,3), name string)STORED BY 'org.apache.carbondata.format'""").collect @@ -378,46 +378,46 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Carbn2""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn2 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_011") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn2 order by update_time""", "DataLoadingTestCase-Insert_Func_011") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on hive when hiveis having TINYINT, SMALLINT data types - test("DataSight_Carbon_Insert_Func_015", Include) { + test("Insert_Func_015", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_015") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_015") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on Hive table where selected query is having multiple values associated with DATE and TIMESTAMP data type - test("DataSight_Carbon_Insert_Func_016", Include) { + test("Insert_Func_016", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_016") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_016") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Hive table where data transformations done in the selected query on DATE - test("DataSight_Carbon_Insert_Func_018", Include) { + test("Insert_Func_018", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,date_sub(Create_date, 200) from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,date_sub(Create_date, 200) from T_Hive1) t1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_018") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,date_sub(Create_date, 200) from T_Hive1) t1 order by update_time""", "DataLoadingTestCase-Insert_Func_018") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Hive table where multiple tables are joined - ignore("DataSight_Carbon_Insert_Func_019", Include) { + ignore("Insert_Func_019", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""drop table IF EXISTS T_hive4""").collect @@ -430,13 +430,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_carbn01 select x.Active_status,x.Item_type_cd,x.Qty_day_avg,x.Qty_total,x.Sell_price,x.Sell_pricep,x.Discount_price,z.Profit,x.Item_code,y.Item_name,x.Outlet_name,x.Update_time,x.Create_date from T_Hive1 x,T_Hive4 y, T_Hive5 z where x.Item_code = y.Item_code and x.Item_code = z.Item_code""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select x.Active_status,x.Item_type_cd,x.Qty_day_avg,x.Qty_total,x.Sell_price,x.Sell_pricep,x.Discount_price,z.Profit,x.Item_code,y.Item_name,x.Outlet_name,x.Update_time,x.Create_date from T_Hive1 x,T_Hive4 y, T_Hive5 z where x.Item_code = y.Item_code and x.Item_code = z.Item_code) t1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_019") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select x.Active_status,x.Item_type_cd,x.Qty_day_avg,x.Qty_total,x.Sell_price,x.Sell_pricep,x.Discount_price,z.Profit,x.Item_code,y.Item_name,x.Outlet_name,x.Update_time,x.Create_date from T_Hive1 x,T_Hive4 y, T_Hive5 z where x.Item_code = y.Item_code and x.Item_code = z.Item_code) t1 order by update_time""", "DataLoadingTestCase-Insert_Func_019") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with all columns selected from Hive table where table is having the columns in different name - test("DataSight_Carbon_Insert_Func_020", Include) { + test("Insert_Func_020", Include) { sql(s"""drop table IF EXISTS t_hive7""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Hive7(Active_status1 BOOLEAN, Item_type_cd1 TINYINT, Qty_day_avg1 SMALLINT, Qty_total1 INT, Sell_price1 BIGINT, Sell_pricep1 FLOAT, Discount_price1 DOUBLE , Profit1 DECIMAL(3,2), Item_code1 STRING, Item_name1 VARCHAR(50), Outlet_name1 CHAR(100), Update_time TIMESTAMP, Create_date DATE)row format delimited fields terminated by ',' collection items terminated by '$DOLLAR'""").collect @@ -445,39 +445,39 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive7""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - Seq(Row("true",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("true",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("false",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("false",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("true",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("true",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("true",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("true",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("false",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("false",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("true",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg"),Row("true",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_020") + Seq(Row("true",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("true",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("true",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("false",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("false",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("true",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("true",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("true",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("true",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("false",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("false",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("true",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg"),Row("true",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase-Insert_Func_020") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all column from a Hive table where table has no records - test("DataSight_Carbon_Insert_Func_021", Include) { + test("Insert_Func_021", Include) { sql(s"""drop table IF EXISTS T_Hive8""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Hive8(Active_status BOOLEAN, Item_type_cd TINYINT, Qty_day_avg SMALLINT, Qty_total INT, Sell_price BIGINT, Sell_pricep FLOAT, Discount_price DOUBLE , Profit DECIMAL(3,2), Item_code STRING, Item_name VARCHAR(50), Outlet_name CHAR(100), Update_time TIMESTAMP, Create_date DATE)row format delimited fields terminated by ',' collection items terminated by '$DOLLAR'""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive8""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_021") + Seq(Row(0)), "DataLoadingTestCase-Insert_Func_021") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all column from a Carbon table where table has no records - test("DataSight_Carbon_Insert_Func_023", Include) { + test("Insert_Func_023", Include) { sql(s"""drop table IF EXISTS T_Carbn02""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn02(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Carbn02""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_023") + Seq(Row(0)), "DataLoadingTestCase-Insert_Func_023") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all column from a Hive table where already records already present in the Carbon table from Load - test("DataSight_Carbon_Insert_Func_027", Include) { + test("Insert_Func_027", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -485,36 +485,36 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Hive_1""").collect sql(s"""insert into T_Carbn01 select * from T_Hive_1""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(20)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_027") + Seq(Row(20)), "DataLoadingTestCase-Insert_Func_027") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all column from the same carbon table - test("DataSight_Carbon_Insert_Func_028", Include) { + test("Insert_Func_028", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""insert into T_Carbn01 select * from T_Carbn01""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - Seq(Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_028") + Seq(Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",1,450,304034400,200000343430000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",2,423,3046340,200000000003454300L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",3,453,3003445,200000000000003450L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",4,4350,3044364,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("TRUE",114,4520,30000430,200000000004300000L,121.5,4.99,2.44,"RE3423ee","asfdsffdfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("FALSE",123,454,30000040,200000000000000000L,121.5,4.99,2.44,"RE3423ee","asfrewerfg"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",11,4530,3000040,200000000000000000L,121.5,4.99,2.44,"SE3423ee","asfdsffder"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("TRUE",14,4590,3000400,200000000000000000L,121.5,4.99,2.44,"ASD423ee","asfertfdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("FALSE",41,4250,0,200000000000000000L,121.5,4.99,2.44,"SAD423ee","asrtsffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg"),Row("TRUE",13,4510,30400,200000000000000000L,121.5,4.99,2.44,"DE3423ee","asfrtffdfg")), "DataLoadingTestCase-Insert_Func_028") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all column from a hive table limiting the records selected - test("DataSight_Carbon_Insert_Func_038", Include) { + test("Insert_Func_038", Include) { sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1 limit 10""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 limit 10) order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_038") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 limit 10) order by update_time""", "DataLoadingTestCase-Insert_Func_038") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select statement having subquery and join - test("DataSight_Carbon_Insert_Func_039", Include) { + test("Insert_Func_039", Include) { sql(s"""drop table IF EXISTS t_hive5""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Hive5(Item_code STRING, Profit DECIMAL(3,2))row format delimited fields terminated by ',' collection items terminated by '$DOLLAR'""").collect @@ -522,13 +522,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1 x where exists (select * from T_Hive5 y where x.Item_code= y.Item_code) """).collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 x where exists (select * from T_Hive5 y where x.Item_code= y.Item_code)) t1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_039") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 x where exists (select * from T_Hive5 y where x.Item_code= y.Item_code)) t1 order by update_time""", "DataLoadingTestCase-Insert_Func_039") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select statement having filter - test("DataSight_Carbon_Insert_Func_044", Include) { + test("Insert_Func_044", Include) { sql(s"""drop table if exists t_hive4""").collect sql(s"""drop table IF EXISTS T_Carbn01""").collect sql(s"""create table T_Hive4(Item_code STRING, Item_name VARCHAR(50))row format delimited fields terminated by ','""").collect @@ -536,79 +536,79 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_Hive1 a where a.Item_code in (select b.item_code from T_Hive4 b)""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 a where a.Item_code in (select b.item_code from T_Hive4 b)) t1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_044") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from (select * from T_Hive1 a where a.Item_code in (select b.item_code from T_Hive4 b)) t1 order by update_time""", "DataLoadingTestCase-Insert_Func_044") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check for insert into carbon table with select on all columns from Hive table where Carbon table is created with block size of 1 mb - test("DataSight_Carbon_Insert_Func_045", Include) { + test("Insert_Func_045", Include) { sql(s"""drop table IF EXISTS T_Carbn011""").collect sql(s"""create table T_Carbn011(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""insert into T_Carbn011 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn011 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_045") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_045") sql(s"""drop table IF EXISTS T_Carbn011""").collect } //Check for insert into carbon table with select on all columns from Hive table where Carbon table is created with block size of 100 mb - test("DataSight_Carbon_Insert_Func_046", Include) { + test("Insert_Func_046", Include) { sql(s"""drop table IF EXISTS t_carbn011""").collect sql(s"""create table T_Carbn011(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='100')""").collect sql(s"""insert into T_Carbn011 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn011 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_046") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_046") sql(s"""drop table IF EXISTS T_Carbn011""").collect } //Check for insert into carbon table with select on all columns from Hive table where Carbon table is created with block size of 500 mb - test("DataSight_Carbon_Insert_Func_047", Include) { + test("Insert_Func_047", Include) { sql(s"""drop table IF EXISTS t_carbn011""").collect sql(s"""create table T_Carbn011(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1024')""").collect sql(s"""insert into T_Carbn011 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn011 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_047") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_047") sql(s"""drop table IF EXISTS T_Carbn011""").collect } //Check for insert into carbon table with select on all columns from Hive table where Carbon table is created with block size of 2gb mb - test("DataSight_Carbon_Insert_Func_048", Include) { + test("Insert_Func_048", Include) { sql(s"""drop table IF EXISTS t_carbn011""").collect sql(s"""create table T_Carbn011(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='2048')""").collect sql(s"""insert into T_Carbn011 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn011 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_048") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_048") sql(s"""drop table IF EXISTS T_Carbn011""").collect } //Check for insert into carbon table with select on Hive and applying cast on the selected columns to suite the target table data type before inserting - test("DataSight_Carbon_Insert_Func_050", Include) { + test("Insert_Func_050", Include) { sql(s"""drop table IF EXISTS t_carbn04""").collect sql(s"""create table T_Carbn04(Item_code STRING, Item_name STRING)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn04 select Item_code, cast(Profit as STRING) from T_Hive5""").collect checkAnswer(s"""select * from T_Carbn04""", - Seq(Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("RE3423ee","4.99"),Row("RE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("ASD423ee","4.99"),Row("DE3423ee","4.99"),Row("DE3423ee","4.99"),Row("FE3423ee","4.99"),Row("FE3423ee","4.99"),Row("FE3423ee","4.99"),Row("RE3423ee","4.99"),Row("RE3423ee","4.99"),Row("SAD423ee","4.99"),Row("SE3423ee","4.99")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_050") + Seq(Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("BE3423ee","4.99"),Row("RE3423ee","4.99"),Row("RE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("SE3423ee","4.99"),Row("ASD423ee","4.99"),Row("DE3423ee","4.99"),Row("DE3423ee","4.99"),Row("FE3423ee","4.99"),Row("FE3423ee","4.99"),Row("FE3423ee","4.99"),Row("RE3423ee","4.99"),Row("RE3423ee","4.99"),Row("SAD423ee","4.99"),Row("SE3423ee","4.99")), "DataLoadingTestCase-Insert_Func_050") sql(s"""drop table IF EXISTS T_Carbn04""").collect } //Check for insert into carbon table with select on Hive table and inserted carbon table created with one dimension excluded from dictionary. - test("DataSight_Carbon_Insert_Func_060", Include) { + test("Insert_Func_060", Include) { sql(s"""drop table IF EXISTS t_carbn020""").collect sql(s"""create table T_Carbn020(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='Item_code')""").collect sql(s"""Insert into T_Carbn020 select * from T_Hive1""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn020 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_060") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_060") sql(s"""drop table IF EXISTS T_Carbn020""").collect } //Check for insert into carbon table with select on a Carbon table and inserted carbon table created with one dimension excluded from dictionary. - test("DataSight_Carbon_Insert_Func_061", Include) { + test("Insert_Func_061", Include) { sql(s"""drop table IF EXISTS t_carbn020""").collect dropTable("T_Carbn01") sql(s"""create table T_Carbn020(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='Item_code')""").collect @@ -616,26 +616,26 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""Insert into T_Carbn020 select * from T_Carbn01""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn020 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_061") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", "DataLoadingTestCase-Insert_Func_061") sql(s"""drop table IF EXISTS T_Carbn020""").collect } //Check that Segment deletion for the inserted data in to Carbon table clears all the data - test("DataSight_Carbon_Insert_Func_074", Include) { + test("Insert_Func_074", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""Insert into T_Carbn01 select * from T_Hive1""").collect sql(s"""delete from table T_Carbn01 where segment.id in (0)""").collect sql(s"""select count(*) from T_Carbn01""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_074") + Seq(Row(0)), "DataLoadingTestCase-Insert_Func_074") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check that when load and insert is made, deletion of segments associated with load should not delete inserted records - test("DataSight_Carbon_Insert_Func_075", Include) { + test("Insert_Func_075", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -643,13 +643,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""delete from table T_Carbn01 where segment.id in (0)""").collect sql(s"""select count(*) from T_Carbn01""").collect checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""", - s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_075") + s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_075") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check that when load and insert is made, deletion of segments associated with insert operation should not delete loaded records - test("DataSight_Carbon_Insert_Func_076", Include) { + test("Insert_Func_076", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect @@ -659,37 +659,37 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""Insert into T_Carbn01 select * from T_Hive1""").collect sql(s"""delete from table T_Carbn01 where segment.id in (0)""").collect sql(s"""select count(*) from T_Carbn01""").collect - checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""",s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase_DataSight_Carbon_Insert_Func_076") + checkAnswer(s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Carbn01 order by update_time""",s"""select active_status,item_type_cd,qty_day_avg,qty_total,sell_price,sell_pricep,discount_price, profit,item_code,item_name from T_Hive1 order by update_time""", "DataLoadingTestCase-Insert_Func_076") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check insert into Carbon table with select from Hive , repeat this query multiple times in the same terminal - test("DataSight_Carbon_Insert_Func_082", Include) { + test("Insert_Func_082", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""Insert into T_Carbn01 select * from T_Hive1""").collect sql(s"""Insert into T_Carbn01 select * from T_Hive1""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(20)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_082") + Seq(Row(20)), "DataLoadingTestCase-Insert_Func_082") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check insert into Carbon table with select from Hive , and Load table done sequentially - test("DataSight_Carbon_Insert_Func_083", Include) { + test("Insert_Func_083", Include) { sql(s"""drop table IF EXISTS t_carbn01""").collect sql(s"""create table T_Carbn01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""insert into T_Carbn01 select * from T_hive1""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table T_Carbn01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from T_Carbn01""", - Seq(Row(20)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_083") + Seq(Row(20)), "DataLoadingTestCase-Insert_Func_083") sql(s"""drop table IF EXISTS T_Carbn01""").collect } //Check insert into Carbon table with select done on a Hive partitioned table - test("DataSight_Carbon_Insert_Func_109", Include) { + test("Insert_Func_109", Include) { sql(s"""drop table IF EXISTS t_hive14""").collect sql(s"""create table T_Hive14(Item_code STRING, Profit DECIMAL(3,2)) partitioned by (Qty_total INT, Item_type_cd TINYINT) row format delimited fields terminated by ',' collection items terminated by '$DOLLAR'""").collect sql(s"""drop table IF EXISTS T_Carbn014""").collect @@ -697,46 +697,46 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""load data INPATH '$resourcesPath/Data/InsertData/T_Hive14.csv' overwrite into table T_Hive14 partition(Qty_total=100, Item_type_cd=2)""").collect sql(s"""insert into T_carbn014 select * from T_Hive14 where Qty_total =100""").collect checkAnswer(s"""select item_code, profit from T_Carbn014 order by item_code, profit""", - Seq(Row("BE3423ee",4.99),Row("BE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_109") + Seq(Row("BE3423ee",4.99),Row("BE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99),Row("SE3423ee",4.99)), "DataLoadingTestCase-Insert_Func_109") sql(s"""drop table IF EXISTS T_Carbn014""").collect } //Check for select column from 2 tables joined using alias names for columns of both tables. - test("DataSight_Carbon_Insert_Func_110", Include) { + test("Insert_Func_110", Include) { sql(s"""create table employees(name string, empid string, mgrid string, mobileno bigint) stored by 'carbondata'""").collect sql(s"""create table managers(name string, empid string, mgrid string, mobileno bigint) stored by 'carbondata'""").collect sql(s"""insert into managers select 'harry','h2399','v788232',99823230205""").collect sql(s"""insert into employees select 'tom','t23717','h2399',99780207526""").collect checkAnswer(s"""select e.empid from employees e join managers m on e.mgrid=m.empid""", - Seq(Row("t23717")), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_110") + Seq(Row("t23717")), "DataLoadingTestCase-Insert_Func_110") sql(s"""drop table employees""").collect sql(s"""drop table managers""").collect } //Show loads--->Action=Fail--->Logger=True - test("DataSight_Carbon_BadRecord_Dataload_024", Include) { + test("BadRecord_Dataload_024", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect } checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_024") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_024") sql(s"""drop table uniqdata""").collect } //Show loads--->Action=Fail--->Logger=False - test("DataSight_Carbon_BadRecord_Dataload_025", Include) { + test("BadRecord_Dataload_025", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect intercept[Exception] { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer( s"""select count(*) from uniqdata""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_BadRecord_Dataload_025") + Seq(Row(0)), "DataLoadingTestCase-BadRecord_Dataload_025") } sql(s"""drop table uniqdata""").collect } @@ -758,7 +758,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Check insert into T_Carbn01 with select from T_Carbn02 from diff database - test("DataSight_Carbon_Insert_Func_112", Include) { + test("Insert_Func_112", Include) { sql(s"""drop database if exists Insert1 cascade""").collect sql(s"""create database Insert1""").collect sql(s"""create table Insert1.Carbon_Insert_Func_1 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect @@ -768,40 +768,40 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table Insert2.Carbon_Insert_Func_2 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""insert into Insert2.Carbon_Insert_Func_2 select * from Insert1.Carbon_Insert_Func_1""").collect checkAnswer(s"""select count(*) from Insert2.Carbon_Insert_Func_2""", - Seq(Row(99)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_112") + Seq(Row(99)), "DataLoadingTestCase-Insert_Func_112") sql(s"""drop database Insert1 cascade""").collect sql(s"""drop database Insert2 cascade""").collect } //Check for Data insert into select for table with blocksize configured. - test("TC-PTS-TOR-AR-DataSight_Carbon_TableBlockSize-05-09-01", Include) { + test("TableBlockSize-05-09-01", Include) { sql(s"""CREATE TABLE BlockSize_Dataload_1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='2')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table BlockSize_Dataload_1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""CREATE TABLE BlockSize_Dataload_2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='2')""").collect sql(s"""insert into BlockSize_Dataload_2 select * from BlockSize_Dataload_1""").collect checkAnswer(s"""select count(*) from BlockSize_Dataload_2""", - Seq(Row(16)), "DataLoadingTestCase_TC-PTS-TOR-AR-DataSight_Carbon_TableBlockSize-05-09-01") + Seq(Row(16)), "DataLoadingTestCase_TableBlockSize-05-09-01") sql(s"""drop table BlockSize_Dataload_1""").collect sql(s"""drop table BlockSize_Dataload_2""").collect } //Check for insert into carbon table with select from Hive table where only Measures columns are present. - test("DataSight_Carbon_Insert_Func_066", Include) { + test("Insert_Func_066", Include) { sql(s"""create table Measures_Dataload_H (Item_code STRING, Qty int)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Measures_Dataload_H""").collect sql(s"""create table Measures_Dataload_C (Item_code STRING, Qty int)stored by 'org.apache.carbondata.format'""").collect sql(s"""insert into Measures_Dataload_C select * from Measures_Dataload_H""").collect checkAnswer(s"""select count(*) from Measures_Dataload_C""", - Seq(Row(99)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_066") + Seq(Row(99)), "DataLoadingTestCase-Insert_Func_066") sql(s"""drop table Measures_Dataload_H""").collect sql(s"""drop table Measures_Dataload_C""").collect } //Check insert into carbon table with select when mulitple tables are joined through union. - ignore("DataSight_Carbon_Insert_Func_097", Include) { + ignore("Insert_Func_097", Include) { sql(s"""CREATE TABLE Table_Union_1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table Table_Union_1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME, ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""CREATE TABLE Table_Union_2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect @@ -809,7 +809,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""CREATE TABLE Table_Union_3 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""insert into Table_Union_3 select * from Table_Union_1 union select * from Table_Union_2""").collect checkAnswer(s"""select count(*) from Table_Union_3""", - Seq(Row(16)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_097") + Seq(Row(16)), "DataLoadingTestCase-Insert_Func_097") sql(s"""drop table Table_Union_1""").collect sql(s"""drop table Table_Union_2""").collect sql(s"""drop table Table_Union_3""").collect @@ -817,21 +817,21 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Check for insert into carbon table with select statement having logical operators - test("DataSight_Carbon_Insert_Func_043", Include) { + test("Insert_Func_043", Include) { sql(s"""create table Logical_Dataload_H (Item_code STRING, Qty int)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Measures.csv' INTO TABLE Logical_Dataload_H""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Measures.csv' INTO TABLE Logical_Dataload_H""").collect sql(s"""create table Logical_Dataload_C (Item_code STRING, Qty int)stored by 'org.apache.carbondata.format'""").collect sql(s"""insert into Logical_Dataload_C select * from Logical_Dataload_H where Item_Code != 'D' and Qty < 40""").collect checkAnswer(s"""select count(*) from Logical_Dataload_C""", - Seq(Row(6)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_043") + Seq(Row(6)), "DataLoadingTestCase-Insert_Func_043") sql(s"""drop table Logical_Dataload_H""").collect sql(s"""drop table Logical_Dataload_C""").collect } //Check that select query fetches the correct data after doing insert and load . - test("DataSight_Carbon_Insert_Func_073", Include) { + test("Insert_Func_073", Include) { sql(s"""create table Dataload_H (Item_code STRING, Qty int)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Measures.csv' INTO TABLE Dataload_H""").collect sql(s"""create table Dataload_C (Item_code STRING, Qty int)stored by 'org.apache.carbondata.format'""").collect @@ -839,14 +839,14 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""insert into Dataload_C select * from Dataload_H""").collect checkAnswer(s"""select count(*) from Dataload_C""", - Seq(Row(6)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_073") + Seq(Row(6)), "DataLoadingTestCase-Insert_Func_073") sql(s"""drop table Dataload_H""").collect sql(s"""drop table Dataload_C""").collect } //Check insert into T_Carbn01 with select from T_Hive1 from diff database - test("DataSight_Carbon_Insert_Func_111", Include) { + test("Insert_Func_111", Include) { sql(s"""create database insert1""").collect sql(s"""create table insert1.DiffDB_Dataload_H(Item_code STRING, Qty int)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Measures.csv' INTO TABLE insert1.DiffDB_Dataload_H""").collect @@ -854,27 +854,27 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table insert2.DiffDB_Dataload_C(Item_code STRING, Qty int)stored by 'org.apache.carbondata.format'""").collect sql(s"""insert into insert2.DiffDB_Dataload_C select * from insert1.DiffDB_Dataload_H""").collect checkAnswer(s"""select count(*) from insert2.DiffDB_Dataload_C""", - Seq(Row(6)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_111") + Seq(Row(6)), "DataLoadingTestCase-Insert_Func_111") sql(s"""drop database insert1 cascade""").collect sql(s"""drop database insert2 cascade""").collect } //Check for insert into carbon table with select from Hive table where only Dimension columns are present. - ignore("DataSight_Carbon_Insert_Func_065", Include) { + ignore("Insert_Func_065", Include) { sql(s"""create table Dimension_Dataload_H (Item_code STRING)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/Measures.csv' INTO TABLE Dimension_Dataload_H""").collect sql(s"""create table Dimension_Dataload_C (Item_code STRING)stored by 'org.apache.carbondata.format'""").collect sql(s"""insert into Dimension_Dataload_C select * from Dimension_Dataload_H""").collect checkAnswer(s"""select count(*) from Dimension_Dataload_C""", - Seq(Row(6)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_065") + Seq(Row(6)), "DataLoadingTestCase-Insert_Func_065") sql(s"""drop table Dimension_Dataload_H""").collect sql(s"""drop table Dimension_Dataload_C""").collect } //Check data load after retension. - ignore("PTS-TOR_AR-DataSight_Carbon-LCM_002_001-001-TC-006_827", Include) { + ignore("LCM_002_001-001-TC-006_827", Include) { sql(s"""create table DL_RETENCTION (Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_RETENCTION options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect val dateFormat = new SimpleDateFormat(CarbonCommonConstants.CARBON_TIMESTAMP_DEFAULT_FORMAT) @@ -883,127 +883,127 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""delete from table DL_RETENCTION where segment.STARTTIME BEFORE '${date}'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_RETENCTION options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_RETENCTION""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-LCM_002_001-001-TC-006_827") + Seq(Row(10)), "DataLoadingTestCase_LCM_002_001-001-TC-006_827") sql(s"""drop table DL_RETENCTION""").collect } //Check for the incremental load data DML without "DELIMITER" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-09_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-09_840", Include) { sql(s"""create table DL_WithOutDELIMITER(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_WithOutDELIMITER options ('QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_WithOutDELIMITER options ('QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_WithOutDELIMITER""", - Seq(Row(20)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-09_840") + Seq(Row(20)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-09_840") sql(s"""drop table DL_WithOutDELIMITER""").collect } //Check for correct result set displayed for query execution after historical data loading. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-002-TC-01_749", Include) { + test("History_Data_Load_001_001-002-TC-01_749", Include) { sql(s"""CREATE TABLE DL_HistoricalData( CUST_ID String,CUST_COUNTRY String,CUST_STATE String,CUST_CITY String,CUST_JOB_TITLE String,CUST_BUY_POTENTIAL String,PROD_UNQ_MDL_ID String,PROD_BRAND_NAME String,PRODUCT_NAME String,PRODUCT_MODEL String,PROD_MODEL_ID String,PROD_COLOR String,ITM_ID String,ITM_NAME String,PRMTION_ID String,PRMTION_NAME String,SHP_MODE_ID String,SHP_MODE String,DELIVERY_COUNTRY String,DELIVERY_STATE String,DELIVERY_CITY String,DELIVERY_DISTRICT String,TRACKING_NO String,ACTIVE_EMUI_VERSION String,WH_NAME String,STR_ORDER_NO String,STR_ORDER_DATE String,OL_ORDER_NO String,OL_ORDER_DATE String,OL_SITE String,CUST_NICK_NAME String,CUST_FIRST_NAME String,CUST_LAST_NAME String,CUST_PRFRD_FLG String,CUST_BIRTH_DY String,CUST_BIRTH_MM String,CUST_BIRTH_YR String,CUST_BIRTH_COUNTRY String,CUST_LOGIN String,CUST_EMAIL_ADDR String,CUST_LAST_RVW_DATE String,CUST_SEX String,CUST_ADDRESS_ID String,CUST_STREET_NO String,CUST_STREET_NAME String,CUST_AGE String,CUST_SUITE_NO String,CUST_ZIP String,CUST_COUNTY String,PRODUCT_ID String,PROD_UNQ_DEVICE_ADDR String,PROD_UQ_UUID String,PROD_SHELL_COLOR String,DEVICE_NAME String,PROD_SHORT_DESC String,PROD_LONG_DESC String,PROD_THUMB String,PROD_IMAGE String,PROD_UPDATE_DATE String,PROD_BAR_CODE String,PROD_LIVE String,PROD_LOC String,PROD_RAM String,PROD_ROM String,PROD_CPU_CLOCK String,PROD_SERIES String,ITM_REC_START_DATE String,ITM_REC_END_DATE String,ITM_BRAND_ID String,ITM_BRAND String,ITM_CLASS_ID String,ITM_CLASS String,ITM_CATEGORY_ID String,ITM_CATEGORY String,ITM_MANUFACT_ID String,ITM_MANUFACT String,ITM_FORMULATION String,ITM_COLOR String,ITM_CONTAINER String,ITM_MANAGER_ID String,PRM_START_DATE String,PRM_END_DATE String,PRM_CHANNEL_DMAIL String,PRM_CHANNEL_EMAIL String,PRM_CHANNEL_CAT String,PRM_CHANNEL_TV String,PRM_CHANNEL_RADIO String,PRM_CHANNEL_PRESS String,PRM_CHANNEL_EVENT String,PRM_CHANNEL_DEMO String,PRM_CHANNEL_DETAILS String,PRM_PURPOSE String,PRM_DSCNT_ACTIVE String,SHP_CODE String,SHP_CARRIER String,SHP_CONTRACT String,CHECK_DATE String,CHECK_YR String,CHECK_MM String,CHECK_DY String,CHECK_HOUR String,BOM String,INSIDE_NAME String,PACKING_DATE String,PACKING_YR String,PACKING_MM String,PACKING_DY String,PACKING_HOUR String,DELIVERY_PROVINCE String,PACKING_LIST_NO String,ACTIVE_CHECK_TIME String,ACTIVE_CHECK_YR String,ACTIVE_CHECK_MM String,ACTIVE_CHECK_DY String,ACTIVE_CHECK_HOUR String,ACTIVE_AREA_ID String,ACTIVE_COUNTRY String,ACTIVE_PROVINCE String,ACTIVE_CITY String,ACTIVE_DISTRICT String,ACTIVE_NETWORK String,ACTIVE_FIRMWARE_VER String,ACTIVE_OS_VERSION String,LATEST_CHECK_TIME String,LATEST_CHECK_YR String,LATEST_CHECK_MM String,LATEST_CHECK_DY String,LATEST_CHECK_HOUR String,LATEST_AREAID String,LATEST_COUNTRY String,LATEST_PROVINCE String,LATEST_CITY String,LATEST_DISTRICT String,LATEST_FIRMWARE_VER String,LATEST_EMUI_VERSION String,LATEST_OS_VERSION String,LATEST_NETWORK String,WH_ID String,WH_STREET_NO String,WH_STREET_NAME String,WH_STREET_TYPE String,WH_SUITE_NO String,WH_CITY String,WH_COUNTY String,WH_STATE String,WH_ZIP String,WH_COUNTRY String,OL_SITE_DESC String,OL_RET_ORDER_NO String,OL_RET_DATE String,CUST_DEP_COUNT double,CUST_VEHICLE_COUNT double,CUST_ADDRESS_CNT double,CUST_CRNT_CDEMO_CNT double,CUST_CRNT_HDEMO_CNT double,CUST_CRNT_ADDR_DM double,CUST_FIRST_SHIPTO_CNT double,CUST_FIRST_SALES_CNT double,CUST_GMT_OFFSET double,CUST_DEMO_CNT double,CUST_INCOME double,PROD_UNLIMITED double,PROD_OFF_PRICE double,PROD_UNITS double,TOTAL_PRD_COST double,TOTAL_PRD_DISC double,PROD_WEIGHT double,REG_UNIT_PRICE double,EXTENDED_AMT double,UNIT_PRICE_DSCNT_PCT double,DSCNT_AMT double,PROD_STD_CST double,TOTAL_TX_AMT double,FREIGHT_CHRG double,WAITING_PERIOD double,DELIVERY_PERIOD double,ITM_CRNT_PRICE double,ITM_UNITS double,ITM_WSLE_CST double,ITM_SIZE double,PRM_CST double,PRM_RESPONSE_TARGET double,PRM_ITM_DM double,SHP_MODE_CNT double,WH_GMT_OFFSET double,WH_SQ_FT double,STR_ORD_QTY double,STR_WSLE_CST double,STR_LIST_PRICE double,STR_SALES_PRICE double,STR_EXT_DSCNT_AMT double,STR_EXT_SALES_PRICE double,STR_EXT_WSLE_CST double,STR_EXT_LIST_PRICE double,STR_EXT_TX double,STR_COUPON_AMT double,STR_NET_PAID double,STR_NET_PAID_INC_TX double,STR_NET_PRFT double,STR_SOLD_YR_CNT double,STR_SOLD_MM_CNT double,STR_SOLD_ITM_CNT double,STR_TOTAL_CUST_CNT double,STR_AREA_CNT double,STR_DEMO_CNT double,STR_OFFER_CNT double,STR_PRM_CNT double,STR_TICKET_CNT double,STR_NET_PRFT_DM_A double,STR_NET_PRFT_DM_B double,STR_NET_PRFT_DM_C double,STR_NET_PRFT_DM_D double,STR_NET_PRFT_DM_E double,STR_RET_STR_ID double,STR_RET_REASON_CNT double,STR_RET_TICKET_NO double,STR_RTRN_QTY double,STR_RTRN_AMT double,STR_RTRN_TX double,STR_RTRN_AMT_INC_TX double,STR_RET_FEE double,STR_RTRN_SHIP_CST double,STR_RFNDD_CSH double,STR_REVERSED_CHRG double,STR_STR_CREDIT double,STR_RET_NET_LOSS double,STR_RTRNED_YR_CNT double,STR_RTRN_MM_CNT double,STR_RET_ITM_CNT double,STR_RET_CUST_CNT double,STR_RET_AREA_CNT double,STR_RET_OFFER_CNT double,STR_RET_PRM_CNT double,STR_RET_NET_LOSS_DM_A double,STR_RET_NET_LOSS_DM_B double,STR_RET_NET_LOSS_DM_C double,STR_RET_NET_LOSS_DM_D double,OL_ORD_QTY double,OL_WSLE_CST double,OL_LIST_PRICE double,OL_SALES_PRICE double,OL_EXT_DSCNT_AMT double,OL_EXT_SALES_PRICE double,OL_EXT_WSLE_CST double,OL_EXT_LIST_PRICE double,OL_EXT_TX double,OL_COUPON_AMT double,OL_EXT_SHIP_CST double,OL_NET_PAID double,OL_NET_PAID_INC_TX double,OL_NET_PAID_INC_SHIP double,OL_NET_PAID_INC_SHIP_TX double,OL_NET_PRFT double,OL_SOLD_YR_CNT double,OL_SOLD_MM_CNT double,OL_SHIP_DATE_CNT double,OL_ITM_CNT double,OL_BILL_CUST_CNT double,OL_BILL_AREA_CNT double,OL_BILL_DEMO_CNT double,OL_BILL_OFFER_CNT double,OL_SHIP_CUST_CNT double,OL_SHIP_AREA_CNT double,OL_SHIP_DEMO_CNT double,OL_SHIP_OFFER_CNT double,OL_WEB_PAGE_CNT double,OL_WEB_SITE_CNT double,OL_SHIP_MODE_CNT double,OL_WH_CNT double,OL_PRM_CNT double,OL_NET_PRFT_DM_A double,OL_NET_PRFT_DM_B double,OL_NET_PRFT_DM_C double,OL_NET_PRFT_DM_D double,OL_RET_RTRN_QTY double,OL_RTRN_AMT double,OL_RTRN_TX double,OL_RTRN_AMT_INC_TX double,OL_RET_FEE double,OL_RTRN_SHIP_CST double,OL_RFNDD_CSH double,OL_REVERSED_CHRG double,OL_ACCOUNT_CREDIT double,OL_RTRNED_YR_CNT double,OL_RTRNED_MM_CNT double,OL_RTRITM_CNT double,OL_RFNDD_CUST_CNT double,OL_RFNDD_AREA_CNT double,OL_RFNDD_DEMO_CNT double,OL_RFNDD_OFFER_CNT double,OL_RTRNING_CUST_CNT double,OL_RTRNING_AREA_CNT double,OL_RTRNING_DEMO_CNT double,OL_RTRNING_OFFER_CNT double,OL_RTRWEB_PAGE_CNT double,OL_REASON_CNT double,OL_NET_LOSS double,OL_NET_LOSS_DM_A double,OL_NET_LOSS_DM_B double,OL_NET_LOSS_DM_C double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_EXCLUDE'='CUST_STATE','DICTIONARY_INCLUDE'='LATEST_OS_VERSION')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/OSCON.csv' INTO TABLE DL_HistoricalData OPTIONS('FILEHEADER'='CUST_ID,CUST_COUNTRY,CUST_STATE,CUST_CITY,ACTIVE_AREA_ID,ACTIVE_COUNTRY,ACTIVE_PROVINCE,ACTIVE_CITY,ACTIVE_DISTRICT,LATEST_AREAID,LATEST_COUNTRY,LATEST_PROVINCE,LATEST_CITY,LATEST_DISTRICT,WH_COUNTRY,WH_STATE,WH_CITY,WH_COUNTY,CUST_JOB_TITLE,CUST_BUY_POTENTIAL,PROD_UNQ_MDL_ID,PROD_BRAND_NAME,PRODUCT_NAME,PRODUCT_MODEL,PROD_MODEL_ID,PROD_STD_CST,REG_UNIT_PRICE,TOTAL_PRD_COST,TOTAL_PRD_DISC,PROD_OFF_PRICE,TOTAL_TX_AMT,PROD_UNITS,PROD_WEIGHT,UNIT_PRICE_DSCNT_PCT,DSCNT_AMT,OL_SALES_PRICE,PROD_COLOR,ITM_ID,ITM_NAME,PRMTION_ID,PRMTION_NAME,SHP_MODE_ID,SHP_MODE,DELIVERY_COUNTRY,DELIVERY_STATE,DELIVERY_CITY,DELIVERY_DISTRICT,TRACKING_NO,ACTIVE_EMUI_VERSION,WH_NAME,STR_ORDER_NO,STR_ORDER_DATE,OL_ORDER_NO,OL_ORDER_DATE,OL_SITE,CUST_NICK_NAME,CUST_FIRST_NAME,CUST_LAST_NAME,CUST_PRFRD_FLG,CUST_BIRTH_DY,CUST_BIRTH_MM,CUST_BIRTH_YR,CUST_BIRTH_COUNTRY,CUST_LOGIN,CUST_EMAIL_ADDR,CUST_LAST_RVW_DATE,CUST_SEX,CUST_ADDRESS_ID,CUST_STREET_NO,CUST_STREET_NAME,CUST_AGE,CUST_SUITE_NO,CUST_ZIP,CUST_COUNTY,PRODUCT_ID,PROD_UNQ_DEVICE_ADDR,PROD_UQ_UUID,PROD_SHELL_COLOR,DEVICE_NAME,PROD_SHORT_DESC,PROD_LONG_DESC,PROD_THUMB,PROD_IMAGE,PROD_UPDATE_DATE,PROD_BAR_CODE,PROD_LIVE,PROD_LOC,PROD_RAM,PROD_ROM,PROD_CPU_CLOCK,PROD_SERIES,ITM_REC_START_DATE,ITM_REC_END_DATE,ITM_BRAND_ID,ITM_BRAND,ITM_CLASS_ID,ITM_CLASS,ITM_CATEGORY_ID,ITM_CATEGORY,ITM_MANUFACT_ID,ITM_MANUFACT,ITM_FORMULATION,ITM_COLOR,ITM_CONTAINER,ITM_MANAGER_ID,PRM_START_DATE,PRM_END_DATE,PRM_CHANNEL_DMAIL,PRM_CHANNEL_EMAIL,PRM_CHANNEL_CAT,PRM_CHANNEL_TV,PRM_CHANNEL_RADIO,PRM_CHANNEL_PRESS,PRM_CHANNEL_EVENT,PRM_CHANNEL_DEMO,PRM_CHANNEL_DETAILS,PRM_PURPOSE,PRM_DSCNT_ACTIVE,SHP_CODE,SHP_CARRIER,SHP_CONTRACT,CHECK_DATE,CHECK_YR,CHECK_MM,CHECK_DY,CHECK_HOUR,BOM,INSIDE_NAME,PACKING_DATE,PACKING_YR,PACKING_MM,PACKING_DY,PACKING_HOUR,DELIVERY_PROVINCE,PACKING_LIST_NO,ACTIVE_CHECK_TIME,ACTIVE_CHECK_YR,ACTIVE_CHECK_MM,ACTIVE_CHECK_DY,ACTIVE_CHECK_HOUR,ACTIVE_NETWORK,ACTIVE_FIRMWARE_VER,ACTIVE_OS_VERSION,LATEST_CHECK_TIME,LATEST_CHECK_YR,LATEST_CHECK_MM,LATEST_CHECK_DY,LATEST_CHECK_HOUR,LATEST_FIRMWARE_VER,LATEST_EMUI_VERSION,LATEST_OS_VERSION,LATEST_NETWORK,WH_ID,WH_STREET_NO,WH_STREET_NAME,WH_STREET_TYPE,WH_SUITE_NO,WH_ZIP,OL_SITE_DESC,OL_RET_ORDER_NO,OL_RET_DATE,CUST_DEP_COUNT,CUST_VEHICLE_COUNT,CUST_ADDRESS_CNT,CUST_CRNT_CDEMO_CNT,CUST_CRNT_HDEMO_CNT,CUST_CRNT_ADDR_DM,CUST_FIRST_SHIPTO_CNT,CUST_FIRST_SALES_CNT,CUST_GMT_OFFSET,CUST_DEMO_CNT,CUST_INCOME,PROD_UNLIMITED,EXTENDED_AMT,FREIGHT_CHRG,WAITING_PERIOD,DELIVERY_PERIOD,ITM_CRNT_PRICE,ITM_UNITS,ITM_WSLE_CST,ITM_SIZE,PRM_CST,PRM_RESPONSE_TARGET,PRM_ITM_DM,SHP_MODE_CNT,WH_GMT_OFFSET,WH_SQ_FT,STR_ORD_QTY,STR_WSLE_CST,STR_LIST_PRICE,STR_SALES_PRICE,STR_EXT_DSCNT_AMT,STR_EXT_SALES_PRICE,STR_EXT_WSLE_CST,STR_EXT_LIST_PRICE,STR_EXT_TX,STR_COUPON_AMT,STR_NET_PAID,STR_NET_PAID_INC_TX,STR_NET_PRFT,STR_SOLD_YR_CNT,STR_SOLD_MM_CNT,STR_SOLD_ITM_CNT,STR_TOTAL_CUST_CNT,STR_AREA_CNT,STR_DEMO_CNT,STR_OFFER_CNT,STR_PRM_CNT,STR_TICKET_CNT,STR_NET_PRFT_DM_A,STR_NET_PRFT_DM_B,STR_NET_PRFT_DM_C,STR_NET_PRFT_DM_D,STR_NET_PRFT_DM_E,STR_RET_STR_ID,STR_RET_REASON_CNT,STR_RET_TICKET_NO,STR_RTRN_QTY,STR_RTRN_AMT,STR_RTRN_TX,STR_RTRN_AMT_INC_TX,STR_RET_FEE,STR_RTRN_SHIP_CST,STR_RFNDD_CSH,STR_REVERSED_CHRG,STR_STR_CREDIT,STR_RET_NET_LOSS,STR_RTRNED_YR_CNT,STR_RTRN_MM_CNT,STR_RET_ITM_CNT,STR_RET_CUST_CNT,STR_RET_AREA_CNT,STR_RET_OFFER_CNT,STR_RET_PRM_CNT,STR_RET_NET_LOSS_DM_A,STR_RET_NET_LOSS_DM_B,STR_RET_NET_LOSS_DM_C,STR_RET_NET_LOSS_DM_D,OL_ORD_QTY,OL_WSLE_CST,OL_LIST_PRICE,OL_EXT_DSCNT_AMT,OL_EXT_SALES_PRICE,OL_EXT_WSLE_CST,OL_EXT_LIST_PRICE,OL_EXT_TX,OL_COUPON_AMT,OL_EXT_SHIP_CST,OL_NET_PAID,OL_NET_PAID_INC_TX,OL_NET_PAID_INC_SHIP,OL_NET_PAID_INC_SHIP_TX,OL_NET_PRFT,OL_SOLD_YR_CNT,OL_SOLD_MM_CNT,OL_SHIP_DATE_CNT,OL_ITM_CNT,OL_BILL_CUST_CNT,OL_BILL_AREA_CNT,OL_BILL_DEMO_CNT,OL_BILL_OFFER_CNT,OL_SHIP_CUST_CNT,OL_SHIP_AREA_CNT,OL_SHIP_DEMO_CNT,OL_SHIP_OFFER_CNT,OL_WEB_PAGE_CNT,OL_WEB_SITE_CNT,OL_SHIP_MODE_CNT,OL_WH_CNT,OL_PRM_CNT,OL_NET_PRFT_DM_A,OL_NET_PRFT_DM_B,OL_NET_PRFT_DM_C,OL_NET_PRFT_DM_D,OL_RET_RTRN_QTY,OL_RTRN_AMT,OL_RTRN_TX,OL_RTRN_AMT_INC_TX,OL_RET_FEE,OL_RTRN_SHIP_CST,OL_RFNDD_CSH,OL_REVERSED_CHRG,OL_ACCOUNT_CREDIT,OL_RTRNED_YR_CNT,OL_RTRNED_MM_CNT,OL_RTRITM_CNT,OL_RFNDD_CUST_CNT,OL_RFNDD_AREA_CNT,OL_RFNDD_DEMO_CNT,OL_RFNDD_OFFER_CNT,OL_RTRNING_CUST_CNT,OL_RTRNING_AREA_CNT,OL_RTRNING_DEMO_CNT,OL_RTRNING_OFFER_CNT,OL_RTRWEB_PAGE_CNT,OL_REASON_CNT,OL_NET_LOSS,OL_NET_LOSS_DM_A,OL_NET_LOSS_DM_B,OL_NET_LOSS_DM_C')""").collect checkAnswer(s"""select count(*) from DL_HistoricalData""", - Seq(Row(10000)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-002-TC-01_749") + Seq(Row(10000)), "DataLoadingTestCase_History_Data_Load_001_001-002-TC-01_749") sql(s"""drop table DL_HistoricalData""").collect } //Verify data laoding with Special Character - test("AR-V1R2C20-SparkCarbon-Details-Loading-FileFormat-003_TC_01_126", Include) { + test("Details-Loading-FileFormat-003_TC_01_126", Include) { sql(s"""CREATE TABLE DL_SPL_CHAR_Load(imei string,specialchar string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/splchar.csv' INTO table DL_SPL_CHAR_Load options ('DELIMITER'=',','QUOTECHAR'='"','FILEHEADER'= 'imei,specialchar')""").collect checkAnswer(s"""select count(*) from DL_SPL_CHAR_Load""", - Seq(Row(5)), "DataLoadingTestCase_AR-V1R2C20-SparkCarbon-Details-Loading-FileFormat-003_TC_01_126") + Seq(Row(5)), "DataLoadingTestCase_Details-Loading-FileFormat-003_TC_01_126") sql(s"""drop table DL_SPL_CHAR_Load""").collect } //Verify data loading in default HDFS path. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-008-TC-01_749", Include) { + test("History_Data_Load_001_001-008-TC-01_749", Include) { sql(s"""create table DL_HDFSLoads(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_HDFSLoads options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_HDFSLoads""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-008-TC-01_749") + Seq(Row(10)), "DataLoadingTestCase_History_Data_Load_001_001-008-TC-01_749") sql(s"""drop table DL_HDFSLoads""").collect } //Check for the incremental load data DML without "PARTITIONDATA" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-08_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-08_840", Include) { sql(s"""create table DL_Without_Partitiondata(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Without_Partitiondata options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_Without_Partitiondata""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-08_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-08_840") sql(s"""drop table DL_Without_Partitiondata""").collect } //Check for the incremental load data DML without "ESCAPERCHAR" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-14_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-14_840", Include) { sql(s"""create table DL_Without_ESCAPERCHAR(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Without_ESCAPERCHAR options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_Without_ESCAPERCHAR""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-14_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-14_840") sql(s"""drop table DL_Without_ESCAPERCHAR""").collect } //Check for the incremental load data DML with invalid ESCAPERCHAR specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-19_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-19_840", Include) { sql(s"""create table DL_Wrong_ESCAPERCHAR(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Wrong_ESCAPERCHAR options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date','ESCAPECHAR'='\\n')""").collect checkAnswer(s"""select count(*) from DL_Wrong_ESCAPERCHAR""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-19_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-19_840") sql(s"""drop table DL_Wrong_ESCAPERCHAR""").collect } //Check for the incremental load data DML without "MULTILINE" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-15_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-15_840", Include) { sql(s"""create table DL_Without_MULTILINE(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Without_MULTILINE options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Without_MULTILINE options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_Without_MULTILINE""", - Seq(Row(20)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-15_840") + Seq(Row(20)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-15_840") sql(s"""drop table DL_Without_MULTILINE""").collect } //Check for the initial load data DML with invalid MULTILINE specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-20_749", Include) { + test("History_Data_Load_001_001-001-TC-20_749", Include) { sql(s"""create table DL_Invalid_MULTILINE(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Invalid_MULTILINE options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date','MULTILINE'='asdf')""").collect checkAnswer(s"""select count(*) from DL_Invalid_MULTILINE""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-20_749") + Seq(Row(10)), "DataLoadingTestCase_History_Data_Load_001_001-001-TC-20_749") sql(s"""drop table DL_Invalid_MULTILINE""").collect } //Check for the incremental load data DML with invalid MULTILINE specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-20_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-20_840", Include) { sql(s"""create table DL_With_MULTILINE(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_With_MULTILINE options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date','MULTILINE'='true')""").collect checkAnswer(s"""select count(*) from DL_With_MULTILINE""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-20_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-20_840") sql(s"""drop table DL_With_MULTILINE""").collect } //Check for the incremental load data DML loading the data successfully with correct syntax - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-01_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-01_840", Include) { sql(s""" CREATE TABLE DL_IncrementalLoad (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_IncrementalLoad options ('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_IncrementalLoad options ('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*)from DL_IncrementalLoad""", - Seq(Row(32)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-01_840") + Seq(Row(32)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-01_840") sql(s"""drop table DL_IncrementalLoad""").collect } //Check data loaded in same table with different block size after drop and recreation - test("TC-PTS-TOR-AR-DataSight_Carbon_TableBlockSize-07-07-01", Include) { + test("TableBlockSize-07-07-01", Include) { sql(s""" CREATE TABLE DL_DiffTBLPROPERTIES (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_DiffTBLPROPERTIES OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""drop table DL_DiffTBLPROPERTIES""").collect @@ -1011,123 +1011,123 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_DiffTBLPROPERTIES OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s""" select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from DL_DiffTBLPROPERTIES""").collect checkAnswer(s"""select count(*)from DL_DiffTBLPROPERTIES""", - Seq(Row(16)), "DataLoadingTestCase_TC-PTS-TOR-AR-DataSight_Carbon_TableBlockSize-07-07-01") + Seq(Row(16)), "DataLoadingTestCase_TableBlockSize-07-07-01") sql(s"""drop table DL_DiffTBLPROPERTIES""").collect } //Verify data loading when coloumn in table is not in order as CSV coloumn. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-043-TC-01_749", Include) { + test("History_Data_Load_001_001-043-TC-01_749", Include) { sql(s"""CREATE TABLE DL_NoOrderColumn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,DOJ timestamp,DOB timestamp,BIGINT_COLUMN2 bigint,BIGINT_COLUMN1 bigint, DECIMAL_COLUMN2 decimal(36,10),DECIMAL_COLUMN1 decimal(30,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_NoOrderColumn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOJ,DOB,BIGINT_COLUMN2,BIGINT_COLUMN1,DECIMAL_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*)from DL_NoOrderColumn""", - Seq(Row(16)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-043-TC-01_749") + Seq(Row(16)), "DataLoadingTestCase_History_Data_Load_001_001-043-TC-01_749") sql(s"""drop table DL_NoOrderColumn""").collect } //Check data load with Column dictionary for int column - test("PTS_AR-V1R2C20-SparkCarbon-Details-Loading-StreamLoad-002-002", Include) { + test("Details-Loading-StreamLoad-002-002", Include) { sql(s"""CREATE TABLE DL_NoIntInclude (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_NoIntInclude OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOJ,DOB,BIGINT_COLUMN2,BIGINT_COLUMN1,DECIMAL_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*)from DL_NoIntInclude""", - Seq(Row(16)), "DataLoadingTestCase_PTS_AR-V1R2C20-SparkCarbon-Details-Loading-StreamLoad-002-002") + Seq(Row(16)), "DataLoadingTestCase_Details-Loading-StreamLoad-002-002") sql(s"""drop table DL_NoIntInclude""").collect } //Check for correct result set displayed for query execution after incremental data loading. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-002-TC-01_840", Include) { + test("Incremental_Data_Load_001_001-002-TC-01_840", Include) { sql(s"""CREATE TABLE DL_Result (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_Result OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOJ,DOB,BIGINT_COLUMN2,BIGINT_COLUMN1,DECIMAL_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_Result OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOJ,DOB,BIGINT_COLUMN2,BIGINT_COLUMN1,DECIMAL_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from DL_Result""").collect checkAnswer(s"""select count(*)from DL_Result""", - Seq(Row(32)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-002-TC-01_840") + Seq(Row(32)), "DataLoadingTestCase_Incremental_Data_Load_001_001-002-TC-01_840") sql(s"""drop table DL_Result""").collect } //Check for Decimal Datatype with maximum boundary values. - test("PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-031", Include) { + test("Decimal_002_001-001-TC-031", Include) { sql(s"""CREATE TABLE DL_MaxDecimal (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(38,38), Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_MaxDecimal OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from DL_MaxDecimal""", - Seq(Row(16)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-031") + Seq(Row(16)), "DataLoadingTestCase_Decimal_002_001-001-TC-031") sql(s"""drop table DL_MaxDecimal""").collect } //Check for Decimal Datatype with minimum boundary values. - test("PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-030", Include) { + test("Decimal_002_001-001-TC-030", Include) { sql(s"""CREATE TABLE DL_MinDecimal (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(1,0), Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_MinDecimal OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from DL_MinDecimal""", - Seq(Row(16)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-030") + Seq(Row(16)), "DataLoadingTestCase_Decimal_002_001-001-TC-030") sql(s"""drop table DL_MinDecimal""").collect } //Check for Decimal Datatype with dataload functionality - test("PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-028", Include) { + test("Decimal_002_001-001-TC-028", Include) { sql(s"""CREATE TABLE DL_Decimal (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_Decimal OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from DL_Decimal""", - Seq(Row(16)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-028") + Seq(Row(16)), "DataLoadingTestCase_Decimal_002_001-001-TC-028") sql(s"""drop table DL_Decimal""").collect } //Test empty values in Data loading - test("AR-V1R2C20-SparkCarbon-Details-Query-ColStore-001-TC-016_126", Include) { + test("Details-Query-ColStore-001-TC-016_126", Include) { sql(s"""create table DL_EmptyDataLoad(empid String,empname String,city String,country String,gender String,salary double) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/emptyLoad.csv' INTO table DL_EmptyDataLoad OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='empid, empname, city, country, gender, salary', 'BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from DL_EmptyDataLoad""", - Seq(Row(6)), "DataLoadingTestCase_AR-V1R2C20-SparkCarbon-Details-Query-ColStore-001-TC-016_126") + Seq(Row(6)), "DataLoadingTestCase_Details-Query-ColStore-001-TC-016_126") sql(s"""drop table DL_EmptyDataLoad""").collect } //Check for the incremental load data DML without "local" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-02_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-02_840", Include) { sql(s"""create table DL_Without_LOCAL(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table DL_Without_LOCAL options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_Without_LOCAL""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-02_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-02_840") sql(s"""drop table DL_Without_LOCAL""").collect } //Check for the incremental load data DML with different inputs of "DELIMITER" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-10_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-10_840", Include) { sql(s"""create table DL_Different_DELIMITER(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/DiffDilimiter.csv' INTO table DL_Different_DELIMITER options ('DELIMITER'='&', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from DL_Different_DELIMITER""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-10_840") + Seq(Row(10)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-10_840") sql(s"""drop table DL_Different_DELIMITER""").collect } //Load data fails for table name having data type - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-83", Include) { + test("History_Data_Load_001_001-001-TC-83", Include) { sql(s"""create table bigint(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table bigint options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from bigint""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-83") + Seq(Row(10)), "DataLoadingTestCase_History_Data_Load_001_001-001-TC-83") sql(s"""drop table bigint""").collect } //Verify escape character behaviour while dataloading - test("AR-V1R2C20-SparkCarbon-Details-Loading-FileFormat-003_TC_02_126", Include) { + test("Details-Loading-FileFormat-003_TC_02_126", Include) { sql(s"""CREATE TABLE DL_EscapeChar_Behave_1(imei string,specialchar string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""CREATE TABLE DL_EscapeChar_Behave_2(imei string,specialchar string) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/splchar.csv' INTO table DL_EscapeChar_Behave_1 options ('DELIMITER'=',','QUOTECHAR'='"','FILEHEADER'= 'imei,specialchar', 'ESCAPECHAR'='\')""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/splchar.csv' INTO table DL_EscapeChar_Behave_2 options ('DELIMITER'=',','QUOTECHAR'='"','FILEHEADER'= 'imei,specialchar', 'ESCAPECHAR'='@')""").collect checkAnswer(s"""select count(*) from DL_EscapeChar_Behave_2""", - Seq(Row(5)), "DataLoadingTestCase_AR-V1R2C20-SparkCarbon-Details-Loading-FileFormat-003_TC_02_126") + Seq(Row(5)), "DataLoadingTestCase_Details-Loading-FileFormat-003_TC_02_126") sql(s"""drop table DL_EscapeChar_Behave_1""").collect sql(s"""drop table DL_EscapeChar_Behave_2""").collect } @@ -1144,27 +1144,27 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Check whether the bad records are logged when user load the data through CSV having invalid data at bottom/Middle/Top of CSV - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-002", Include) { + test("Bad_Records_Logger_Implementation-001-TC-002", Include) { sql(s"""CREATE TABLE DL_WithBadRecords(sVal1 string, iVal int, sVal2 string, tsVal timestamp) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords.csv' INTO TABLE DL_WithBadRecords OPTIONS('DELIMITER'=',','QUOTECHAR'='\','FILEHEADER'='sVal1, iVal, sVal2, tsVal')""").collect checkAnswer(s"""select count(*) from DL_WithBadRecords""", - Seq(Row(5)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-002") + Seq(Row(5)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-002") sql(s"""drop table DL_WithBadRecords""").collect } //Check for the incremental load data DML with long "table name" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-07_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-07_840", Include) { sql(s"""CREATE TABLE DL_ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table DL_ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from DL_ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789""", - Seq(Row(16)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-07_840") + Seq(Row(16)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-07_840") sql(s"""drop table DL_ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789""").collect } //Failed to delete merged segment - test("PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_016_851", Include) { + test("Details-Loading-Incremental-001-01_TC_016_851", Include) { sql(s"""create table DL_T_Merge (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE DL_T_Merge OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE DL_T_Merge OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1174,13 +1174,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table DL_T_Merge compact 'minor'""").collect sql(s"""delete from table DL_T_Merge where segment.id in (0.1)""").collect checkAnswer(s"""select count(*) from DL_T_Merge""", - Seq(Row(99)), "DataLoadingTestCase_PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_016_851") + Seq(Row(99)), "DataLoadingTestCase_Details-Loading-Incremental-001-01_TC_016_851") sql(s"""drop table DL_T_Merge""").collect } //DDL for merge - test("PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_870", Include) { + test("Details-Loading-Incremental-001-01_TC_037_870", Include) { sql(s"""create table DL_T_Alter (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE DL_T_Alter OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE DL_T_Alter OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1189,156 +1189,156 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE DL_T_Alter OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""alter table DL_T_Alter compact 'minor'""").collect checkAnswer(s"""select count(*) from DL_T_Alter""", - Seq(Row(495)), "DataLoadingTestCase_PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_870") + Seq(Row(495)), "DataLoadingTestCase_Details-Loading-Incremental-001-01_TC_037_870") sql(s"""drop table DL_T_Alter""").collect } //Check for the initial load data DML without "MULTILINE" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-15_749", Include) { + test("History_Data_Load_001_001-001-TC-15_749", Include) { sql(s"""create table BR_Without_MULTILINE(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/T_Hive1.csv' INTO table BR_Without_MULTILINE options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')""").collect checkAnswer(s"""select count(*) from BR_Without_MULTILINE""", - Seq(Row(10)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_History_Data_Load_001_001-001-TC-15_749") + Seq(Row(10)), "DataLoadingTestCase_History_Data_Load_001_001-001-TC-15_749") sql(s"""drop table BR_Without_MULTILINE""").collect } //Validate the count and data with respect to String when data has bad records - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-038", Include) { + test("Bad_Records_Logger_Implementation-001-TC-038", Include) { sql(s"""create table BR_StringValidations(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_StringValidations OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_StringValidations""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-038") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-038") sql(s"""drop table BR_StringValidations""").collect } //Check whether the bad records are logging when user configure BAD_RECORDS_LOGGER_ENABLE as True - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-007", Include) { + test("Bad_Records_Logger_Implementation-001-TC-007", Include) { sql(s"""create table BR_Logger_TRUE(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_TRUE OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_Logger_TRUE""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-007") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-007") sql(s"""drop table BR_Logger_TRUE""").collect } //Check when csv contains all bad records and BAD_RECORDS_LOGGER_ACTION'='REDIRECT' - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-067", Include) { + test("Bad_Records_Logger_Implementation-001-TC-067", Include) { sql(s"""create table BR_Logger_REDIRECT(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_REDIRECT OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_ACTION'='REDIRECT')""").collect checkAnswer(s"""select count(*) from BR_Logger_REDIRECT""", - Seq(Row(2)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-067") + Seq(Row(2)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-067") sql(s"""drop table BR_Logger_REDIRECT""").collect } //Check whether bad records csv can be loaded with force. - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-029", Include) { + test("Bad_Records_Logger_Implementation-001-TC-029", Include) { sql(s"""create table BR_Logger_Force(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_Force OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_Logger_Force""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-029") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-029") sql(s"""drop table BR_Logger_Force""").collect } //Check when csv contains all bad records and BAD_RECORDS_LOGGER_ACTION'=IGNORE' - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-068", Include) { + test("Bad_Records_Logger_Implementation-001-TC-068", Include) { sql(s"""create table BR_Logger_IGNORE(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format' """).collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_IGNORE OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from BR_Logger_IGNORE""", - Seq(Row(2)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-068") + Seq(Row(2)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-068") sql(s"""drop table BR_Logger_IGNORE""").collect } //Check whether the bad records are logged when user load the data through carbon table having invalid data at bottom/Middle/Top of CSV - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-004", Include) { + test("Bad_Records_Logger_Implementation-001-TC-004", Include) { sql(s""" create table BR_Logger_Invalid_Data(val1 string,val2 string,val3 string,val4 string,val5 int,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_3.csv' INTO TABLE BR_Logger_Invalid_Data OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from BR_Logger_Invalid_Data""", - Seq(Row(2)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-004") + Seq(Row(2)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-004") sql(s"""drop table BR_Logger_Invalid_Data""").collect } //Check for Decimal Datatype with bad records functionality. - test("PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-038", Include) { + test("Decimal_002_001-001-TC-038", Include) { sql(s"""create table BR_Logger_Invalid_Decimal(val1 string,val2 decimal(3,2),val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_4.csv' INTO TABLE BR_Logger_Invalid_Decimal OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from BR_Logger_Invalid_Decimal""", - Seq(Row(5)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Decimal_002_001-001-TC-038") + Seq(Row(5)), "DataLoadingTestCase_Decimal_002_001-001-TC-038") sql(s"""drop table BR_Logger_Invalid_Decimal""").collect } //Check with multiple csv, different folders, check which csv file has bad records issue when BAD_RECORDS_LOGGER_ACTION as REDIRECT and BAD_RECORDS_LOGGER_ENABLE as False - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-032", Include) { + test("Bad_Records_Logger_Implementation-001-TC-032", Include) { sql(s"""create table BR_Logger_MultiCSV(val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_MultiCSV OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='FALSE','BAD_RECORDS_ACTION'='REDIRECT')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_3.csv' INTO TABLE BR_Logger_MultiCSV OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='FALSE','BAD_RECORDS_ACTION'='REDIRECT')""").collect checkAnswer(s"""select count(*) from BR_Logger_MultiCSV""", - Seq(Row(5)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-032") + Seq(Row(5)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-032") sql(s"""drop table BR_Logger_MultiCSV""").collect } //Check whether the bad records are logging when user BAD_RECORDS_LOGGER_ACTION as FORCE and BAD_RECORDS_LOGGER_ENABLE as False and loading the data through csv - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-012", Include) { + test("Bad_Records_Logger_Implementation-001-TC-012", Include) { dropTable("BR_Logger_FORCE") sql(s"""create table BR_Logger_FORCE(val1 string,val2 string,val3 string,val4 string,val5 int,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_2.csv' INTO TABLE BR_Logger_FORCE OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='FALSE','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_Logger_FORCE""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-012") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-012") sql(s"""drop table BR_Logger_FORCE""").collect } //Check whether the bad records are logging when user configure BAD_RECORDS_LOGGER_ENABLE as False - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-006", Include) { + test("Bad_Records_Logger_Implementation-001-TC-006", Include) { sql(s"""create table BR_Logger_FALSE (val1 string,val2 string,val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_2.csv' INTO TABLE BR_Logger_FALSE OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='FALSE','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_Logger_FALSE""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-006") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-006") sql(s"""drop table BR_Logger_FALSE""").collect } //Check whether the bad records are logged when user load the data through CSV having invalid data in different column/rows - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-001", Include) { + test("Bad_Records_Logger_Implementation-001-TC-001", Include) { sql(s"""drop table if exists BR_Logger_Invalid_Data""").collect sql(s"""create table BR_Logger_Invalid_Data (val1 string,val2 decimal(3,2),val3 string,val4 string,val5 string,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_4.csv' INTO TABLE BR_Logger_Invalid_Data OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from BR_Logger_Invalid_Data""", - Seq(Row(5)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-001") + Seq(Row(5)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-001") sql(s"""drop table BR_Logger_Invalid_Data""").collect } //Check whether the bad records are logged when user load the data through carbon table having invalid data in different column/rows - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-003", Include) { + test("Bad_Records_Logger_Implementation-001-TC-003", Include) { sql(s"""create table BR_Logger_Invalid_Data_2 (val1 string,val2 string,val3 string,val4 string,val5 int,dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/badrecords_3.csv' INTO TABLE BR_Logger_Invalid_Data_2 OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, val4, val5, dt','BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='FORCE')""").collect checkAnswer(s"""select count(*) from BR_Logger_Invalid_Data_2""", - Seq(Row(5)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-003") + Seq(Row(5)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-003") sql(s"""drop table BR_Logger_Invalid_Data_2""").collect } //Validate the count and data with respect to integer,decimal and double when data has bad records - test("PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-037", Include) { + test("Bad_Records_Logger_Implementation-001-TC-037", Include) { sql(s"""create table BR_Logger_COUNT_DATA(val1 string,val2 int,val3 decimal(3,2),dt timestamp) stored by 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/badrecords_5.csv' INTO TABLE BR_Logger_COUNT_DATA OPTIONS('DELIMITER'=',', 'QUOTECHAR'='\','FILEHEADER'='val1, val2, val3, dt', 'BAD_RECORDS_LOGGER_ENABLE'='TRUE','BAD_RECORDS_ACTION'='IGNORE')""").collect checkAnswer(s"""select count(*) from BR_Logger_COUNT_DATA""", - Seq(Row(3)), "DataLoadingTestCase_PTS-AR-DataSight_Carbon-Bad_Records_Logger_Implementation-001-TC-037") + Seq(Row(3)), "DataLoadingTestCase_Bad_Records_Logger_Implementation-001-TC-037") sql(s"""drop table BR_Logger_COUNT_DATA""").collect } //Data validation after compaction and cleanup - test("PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_869", Include) { + test("Details-Loading-Incremental-001-01_TC_037_869", Include) { sql(s"""create table Compaction_ShowSegment (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_ShowSegment OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_ShowSegment OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1349,13 +1349,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""CLEAN FILES FOR TABLE Compaction_ShowSegment""").collect sql(s"""show segments for table Compaction_ShowSegment""").collect checkAnswer(s"""select count(*) from Compaction_ShowSegment""", - Seq(Row(495)), "DataLoadingTestCase_PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_869") + Seq(Row(495)), "DataLoadingTestCase_Details-Loading-Incremental-001-01_TC_037_869") sql(s"""drop table Compaction_ShowSegment""").collect } //Check segment status after compaction - test("PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_874", Include) { + test("Details-Loading-Incremental-001-01_TC_037_874", Include) { sql(s"""create table Compaction_T_minor (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_minor OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_minor OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1365,13 +1365,13 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table Compaction_T_minor compact 'minor'""").collect sql(s"""show segments for table Compaction_T_minor""").collect checkAnswer(s"""select count(*) from Compaction_T_minor""", - Seq(Row(495)), "DataLoadingTestCase_PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_874") + Seq(Row(495)), "DataLoadingTestCase_Details-Loading-Incremental-001-01_TC_037_874") sql(s"""drop table Compaction_T_minor""").collect } //Include compaction folder - test("PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_871", Include) { + test("Details-Loading-Incremental-001-01_TC_037_871", Include) { sql(s"""create table Compaction_T_C (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_C OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_C OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1380,14 +1380,14 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_C OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect sql(s"""alter table Compaction_T_C compact 'minor'""").collect checkAnswer(s"""select count(*) from Compaction_T_C""", - Seq(Row(495)), "DataLoadingTestCase_PTS-TOR-AR-V1R2C20-SparkCarbon-Details-Loading-Incremental-001-01_TC_037_871") + Seq(Row(495)), "DataLoadingTestCase_Details-Loading-Incremental-001-01_TC_037_871") sql(s"""show segments for table Compaction_T_C""").collect sql(s"""drop table Compaction_T_C""").collect } //Check the segments after compaction - test("PTS-TOR_AR-DataSight_Carbon-LCM_002_001-001-TC-013", Include) { + test("LCM_002_001-001-TC-013", Include) { dropTable("Compaction_T_Delete") sql(s"""create table Compaction_T_Delete (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compaction_T_Delete OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -1399,23 +1399,23 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""show segments for table Compaction_T_Delete""").collect sql(s"""delete from table Compaction_T_Delete where segment.id in (0.1)""").collect checkAnswer(s"""select count(*) from Compaction_T_Delete""", - Seq(Row(0)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-LCM_002_001-001-TC-013") + Seq(Row(0)), "DataLoadingTestCase_LCM_002_001-001-TC-013") sql(s"""drop table Compaction_T_Delete""").collect } //Check for the incremental load data DML without "QUOTECHAR" specified loading the data successfully. - test("PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-11_840", Include) { + test("Incremental_Data_Load_001_001-001-TC-11_840", Include) { sql(s"""CREATE TABLE DL_without_QUOTECHAR (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/2000_UniqData.csv' into table DL_without_QUOTECHAR OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from DL_without_QUOTECHAR""", - Seq(Row(2010)), "DataLoadingTestCase_PTS-TOR_AR-DataSight_Carbon-Maintenance_Incremental_Data_Load_001_001-001-TC-11_840") + Seq(Row(2010)), "DataLoadingTestCase_Incremental_Data_Load_001_001-001-TC-11_840") sql(s"""drop table DL_without_QUOTECHAR""").collect } //Check for insert into carbon table with select on all column from a Carbon table where table has no records due to segmnet deletion - test("DataSight_Carbon_Insert_Func_023_01", Include) { + test("Insert_Func_023_01", Include) { dropTable("Norecords_Dataload_C") dropTable("Norecords_Dataload_H") intercept[Exception] { @@ -1426,7 +1426,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""delete from table Norecords_Dataload_H where segment.id in (0,1)""").collect sql(s"""insert into Norecords_Dataload_C select * from Norecords_Dataload_H""").collect checkAnswer(s"""select count(*) from Norecords_Dataload_C""", - Seq(Row(0)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_023_01") + Seq(Row(0)), "DataLoadingTestCase-Insert_Func_023_01") } dropTable("Norecords_Dataload_C") dropTable("Norecords_Dataload_H") @@ -1434,7 +1434,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Check that minor compaction done after 2 minor compaction and ensure data consistency is not impacted. - ignore("DataSight_Carbon_Insert_Func_071", Include) { + ignore("Insert_Func_071", Include) { sql(s"""DROP database IF EXISTS Compact_1 cascade""").collect sql(s"""create database Compact_1""").collect sql(s"""use Compact_1""").collect @@ -1446,7 +1446,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table Compact_1.Compaction_T_1 compact 'minor'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/vardhandaterestruct.csv' INTO TABLE Compact_1.Compaction_T_1 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from Compact_1.Compaction_T_1""", - Seq(Row(297)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_071") + Seq(Row(297)), "DataLoadingTestCase-Insert_Func_071") sql(s"""show segments for table Compact_1.Compaction_T_1""").collect sql(s"""show segments for table Compact_1.Compaction_T_2""").collect sql(s"""drop database if exists Compact_1 cascade""").collect @@ -1454,7 +1454,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { //Check insert into Carbon table with select from Hive where one of the column is having Null values - ignore("DataSight_Carbon_Insert_Func_080", Include) { + ignore("Insert_Func_080", Include) { sql(s"""drop database if exists insertInto CASCADE""").collect sql(s"""create database insertInto""").collect sql(s"""create table insertInto.Norecords_Dataload_H (Item_code STRING, Qty int)row format delimited fields terminated by ',' LINES TERMINATED BY '\n'""").collect @@ -1464,7 +1464,7 @@ class DataLoadingTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""create table Norecords_Dataload_Carbon (Item_code STRING, Qty int)stored by 'org.apache.carbondata.format'""").collect sql(s"""insert into insertInto.Norecords_Dataload_Carbon select * from insertInto.Norecords_Dataload_H""").collect checkAnswer(s"""select count(*) from insertInto.Norecords_Dataload_Carbon""", - Seq(Row(99)), "DataLoadingTestCase_DataSight_Carbon_Insert_Func_080") + Seq(Row(99)), "DataLoadingTestCase-Insert_Func_080") sql(s"""drop database if exists insertInto cascade""").collect } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingV3TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingV3TestCase.scala index 16b5806b058..3389c2ed551 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingV3TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/DataLoadingV3TestCase.scala @@ -33,318 +33,318 @@ class DataLoadingV3TestCase extends QueryTest with BeforeAndAfterAll { //Check query reponse for select * query with no filters - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_001", Include) { + test("V3_01_Query_01_001", Include) { sql(s"""CREATE TABLE 3lakh_uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql( s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""".stripMargin).collect checkAnswer(s"""select count(*) from 3lakh_uniqdata""", - Seq(Row(300635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_001") + Seq(Row(300635)), "DataLoadingV3TestCase_V3_01_Query_01_001") } //Check query reponse where table is having > 10 columns as dimensions and all the columns are selected in the query - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_002", Include) { + test("V3_01_Query_01_002", Include) { checkAnswer(s"""select count(*) from (select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from 3lakh_uniqdata)c""", - Seq(Row(300635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_002") + Seq(Row(300635)), "DataLoadingV3TestCase_V3_01_Query_01_002") } //Check query reponse when filter is having eq condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_003", Include) { + test("V3_01_Query_01_003", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id = 35000""", - Seq(Row(35000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_003") + Seq(Row(35000)), "DataLoadingV3TestCase_V3_01_Query_01_003") } //Check query reponse when filter is having in condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_004", Include) { + test("V3_01_Query_01_004", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id in (30000, 35000 ,37000)""", - Seq(Row(30000),Row(35000),Row(37000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_004") + Seq(Row(30000),Row(35000),Row(37000)), "DataLoadingV3TestCase_V3_01_Query_01_004") } //Check query reponse when filter is having range condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_005", Include) { + test("V3_01_Query_01_005", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id between 59000 and 60000)c""", - Seq(Row(1001)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_005") + Seq(Row(1001)), "DataLoadingV3TestCase_V3_01_Query_01_005") } //Check query reponse when filter is having range condition on 1st coluumn and data is selected within a pages - values just in the boundary of the page upper llimit - without offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_009", Include) { + test("V3_01_Query_01_009", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id between 59000 and 61000)c""", - Seq(Row(2001)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_009") + Seq(Row(2001)), "DataLoadingV3TestCase_V3_01_Query_01_009") } //Check query reponse when filter is having in condition 1st column and data is selected across multiple pages - with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_010", Include) { + test("V3_01_Query_01_010", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id in (30000, 35000 ,37000, 69000,101000,133000,165000,197000,229000,261000,293000, 329622)""", - Seq(Row(133000),Row(165000),Row(197000),Row(30000),Row(229000),Row(261000),Row(35000),Row(37000),Row(293000),Row(329622),Row(69000),Row(101000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_010") + Seq(Row(133000),Row(165000),Row(197000),Row(30000),Row(229000),Row(261000),Row(35000),Row(37000),Row(293000),Row(329622),Row(69000),Row(101000)), "DataLoadingV3TestCase_V3_01_Query_01_010") } //Check query reponse when filter is having not between condition 1st column and data is selected across all pages - with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_011", Include) { + test("V3_01_Query_01_011", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id not between 29001 and 329621)c""", - Seq(Row(3)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_011") + Seq(Row(3)), "DataLoadingV3TestCase_V3_01_Query_01_011") } //Check query reponse when filter is applied on on the 2nd column and data is selected across all pages -with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_012", Include) { + test("V3_01_Query_01_012", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_name like 'CUST_NAME_2%')c""", - Seq(Row(110000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_012") + Seq(Row(110000)), "DataLoadingV3TestCase_V3_01_Query_01_012") } //Check query reponse when filter is having not like condition set on the 2nd columns and data is selected across all pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_013", Include) { + test("V3_01_Query_01_013", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_name not like 'CUST_NAME_2%')c""", - Seq(Row(190635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_013") + Seq(Row(190635)), "DataLoadingV3TestCase_V3_01_Query_01_013") } //Check query reponse when filter is having > operator set on the 10th columns and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_014", Include) { + test("V3_01_Query_01_014", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where Double_COLUMN1 > 42000)b""", - Seq(Row(300624)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_014") + Seq(Row(300624)), "DataLoadingV3TestCase_V3_01_Query_01_014") } //Check query reponse when filter is having like operator set on the 3rd columns and data is selected across all pages - with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_015", Include) { + test("V3_01_Query_01_015", Include) { checkAnswer(s"""select count(*) from (select ACTIVE_EMUI_VERSION from 3lakh_uniqdata where ACTIVE_EMUI_VERSION like 'ACTIVE_EMUI_VERSION_20%')c""", - Seq(Row(11000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_015") + Seq(Row(11000)), "DataLoadingV3TestCase_V3_01_Query_01_015") } //Check query reponse when filter condtion is put on all collumns connected through and operator and data is selected across from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_016", Include) { + test("V3_01_Query_01_016", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where CUST_ID = 29000 and CUST_NAME = 'CUST_NAME_20000' and ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20000' and DOB = '04-10-2010 01:00' and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 and DECIMAL_COLUMN2 = 22345698901 and Double_COLUMN1 = 11234567490 and Double_COLUMN2 = -11234567490 and INTEGER_COLUMN1 = 20001)c""", - Seq(Row(0)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_016") + Seq(Row(0)), "DataLoadingV3TestCase_V3_01_Query_01_016") } //Check query reponse when filter condtion is put on all collumns connected through and and grouping operator and data is selected across from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_018", Include) { + test("V3_01_Query_01_018", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where CUST_ID = 29000 and CUST_NAME = 'CUST_NAME_20000' and (ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20001' or DOB = '04-10-2010 01:00') and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 and DECIMAL_COLUMN2 = 22345698901 or Double_COLUMN1 = 11234567490 and ( Double_COLUMN2 = -11234567490 or INTEGER_COLUMN1 = 20003))c""", - Seq(Row(300623)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_018") + Seq(Row(300623)), "DataLoadingV3TestCase_V3_01_Query_01_018") } //Check query reponse when filter condtion is 1st column and connected through OR condition and data is selected across multiple pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_019", Include) { + test("V3_01_Query_01_019", Include) { checkAnswer(s"""select CUST_NAME from 3lakh_uniqdata where CUST_ID = 29000 or CUST_ID = 60000 or CUST_ID = 100000 or CUST_ID = 130000""", - Seq(Row("CUST_NAME_121000"),Row("CUST_NAME_20000"),Row("CUST_NAME_51000"),Row("CUST_NAME_91000")), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_019") + Seq(Row("CUST_NAME_121000"),Row("CUST_NAME_20000"),Row("CUST_NAME_51000"),Row("CUST_NAME_91000")), "DataLoadingV3TestCase_V3_01_Query_01_019") } //Check query reponse when filter condtion is put on all collumns connected through and/or operator and range is used and data is selected across multiple pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_020", Include) { + test("V3_01_Query_01_020", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where (CUST_ID >= 29000 and CUST_ID <= 60000) and CUST_NAME like 'CUST_NAME_20%' and ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20000' and DOB = '04-10-2010 01:00' and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 or DECIMAL_COLUMN2 = 22345698901 and Double_COLUMN1 = 11234567490 and (Double_COLUMN2 = -11234567490 or INTEGER_COLUMN1 = 20001))c""", - Seq(Row(1)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_020") + Seq(Row(1)), "DataLoadingV3TestCase_V3_01_Query_01_020") } //Check query reponse when 1st column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_022", Include) { + test("V3_01_Query_01_022", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata limit 10""", - Seq(Row(8999),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_022") + Seq(Row(8999),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null)), "DataLoadingV3TestCase_V3_01_Query_01_022") } //Check query reponse when 2nd column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_023", Include) { + test("V3_01_Query_01_023", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata limit 30000)c""", - Seq(Row(30000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_023") + Seq(Row(30000)), "DataLoadingV3TestCase_V3_01_Query_01_023") } //Check query reponse when 4th column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_024", Include) { + test("V3_01_Query_01_024", Include) { checkAnswer(s"""select count(*) from (select DOB from 3lakh_uniqdata limit 30000)c""", - Seq(Row(30000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_024") + Seq(Row(30000)), "DataLoadingV3TestCase_V3_01_Query_01_024") } //Check query reponse when 1st column select ed nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_025", Include) { + test("V3_01_Query_01_025", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_025") + Seq(Row(60000)), "DataLoadingV3TestCase_V3_01_Query_01_025") } //Check query reponse when 2nd column select ed nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_026", Include) { + test("V3_01_Query_01_026", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_026") + Seq(Row(60000)), "DataLoadingV3TestCase_V3_01_Query_01_026") } //Check query reponse when 4th column selected nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_027", Include) { + test("V3_01_Query_01_027", Include) { checkAnswer(s"""select count(*) from (select DOB from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_027") + Seq(Row(60000)), "DataLoadingV3TestCase_V3_01_Query_01_027") } //Check query reponse when 2nd column select ed nd with order by and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_028", Include) { + test("V3_01_Query_01_028", Include) { checkAnswer(s"""select cust_id from 3lakh_uniqdata order by CUST_NAME desc limit 10""", - Seq(Row(108999),Row(108998),Row(108997),Row(108996),Row(108995),Row(108994),Row(108993),Row(108992),Row(108991),Row(108990)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_028") + Seq(Row(108999),Row(108998),Row(108997),Row(108996),Row(108995),Row(108994),Row(108993),Row(108992),Row(108991),Row(108990)), "DataLoadingV3TestCase_V3_01_Query_01_028") } //Check query reponse when temp table is used and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_029", Include) { + test("V3_01_Query_01_029", Include) { checkAnswer(s"""select count(*) from ( select a.cust_id from 3lakh_uniqdata a where a.cust_id in (select c.cust_id from 3lakh_uniqdata c where c.cust_name like 'CUST_NAME_2000%') and a.cust_id between 29000 and 60000)d""", - Seq(Row(10)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_029") + Seq(Row(10)), "DataLoadingV3TestCase_V3_01_Query_01_029") } //Check query reponse when aggregate table is used and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_030", Include) { + test("V3_01_Query_01_030", Include) { checkAnswer(s"""select substring(CUST_NAME,1,11),count(*) from 3lakh_uniqdata group by substring(CUST_NAME,1,11) having count(*) > 1""", Seq(Row("CUST_NAME_4",10000),Row("CUST_NAME_1",100000),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_2", 110000), - Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000),Row("",11),Row("CUST_NAME_3",30623)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_030") + Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000),Row("",11),Row("CUST_NAME_3",30623)), "DataLoadingV3TestCase_V3_01_Query_01_030") } //Check query reponse when aggregate table is used along with filter condition and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_031", Include) { + test("V3_01_Query_01_031", Include) { checkAnswer(s"""select substring(CUST_NAME,1,11),count(*) from 3lakh_uniqdata where cust_id between 59000 and 160000 group by substring(CUST_NAME,1,11) having count(*) > 1""", Seq(Row("CUST_NAME_1",51001),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_5",10000), - Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_031") + Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000)), "DataLoadingV3TestCase_V3_01_Query_01_031") } //Check join query when the table is having v3 format - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_032", Include) { + test("V3_01_Query_01_032", Include) { sql(s"""CREATE TABLE 3lakh_uniqdata2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select a.cust_id, b.cust_name from 3lakh_uniqdata a, 3lakh_uniqdata2 b where a.cust_id = b.cust_id and a.cust_name = b.cust_name and a.cust_id in (29000, 59000, 69000,15000,250000, 310000)""", Seq(Row(29000,"CUST_NAME_20000"),Row(250000,"CUST_NAME_241000"),Row(310000,"CUST_NAME_301000"), - Row(59000,"CUST_NAME_50000"),Row(69000,"CUST_NAME_60000")), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_032") + Row(59000,"CUST_NAME_50000"),Row(69000,"CUST_NAME_60000")), "DataLoadingV3TestCase_V3_01_Query_01_032") } //Check query when table is having single column so that the records count per blocklet is > 120000, where query scan is done on single page - test("PTS_TOR-Productize-New-Features-V3_01_Param_01_005", Include) { + test("V3_01_Param_01_005", Include) { sql(s"""CREATE TABLE 3lakh_uniqdata1 (CUST_NAME String) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128')""").collect sql(s"""insert into 3lakh_uniqdata1 select cust_name from 3lakh_uniqdata""").collect checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata where cust_name like 'CUST_NAME_2000%')c""", - Seq(Row(110)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Param_01_005") + Seq(Row(110)), "DataLoadingV3TestCase_V3_01_Param_01_005") } //Check query when table is having single column so that the records count per blocklet is > 120000, where query scan is done across the pages in the blocklet - test("PTS_TOR-Productize-New-Features-V3_01_Load_01_006", Include) { + test("V3_01_Load_01_006", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata where cust_name like 'CUST_NAME_20%')c""", - Seq(Row(11000)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Load_01_006") + Seq(Row(11000)), "DataLoadingV3TestCase_V3_01_Load_01_006") } //Check impact on load and query reading when larger value (1 lakh length) present in the column - ignore("PTS_TOR-Productize-New-Features-V3_01_Stress_01_001", Include) { + ignore("V3_01_Stress_01_001", Include) { sql(s"""create table t_carbn1c (name string) stored by 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='name')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/1lakh.csv' into table t_carbn1c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='name')""").collect checkAnswer(s"""select count(*) from t_carbn1c""", - Seq(Row(1)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Stress_01_001") + Seq(Row(1)), "DataLoadingV3TestCase_V3_01_Stress_01_001") } //Check impact on load and query reading when larger value (1 lakh length) present in the column when the column is measure - ignore("PTS_TOR-Productize-New-Features-V3_01_Stress_01_007", Include) { + ignore("V3_01_Stress_01_007", Include) { checkAnswer(s"""select substring(name,1,10) from t_carbn1c""", - Seq(Row("hellohowar")), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Stress_01_007") + Seq(Row("hellohowar")), "DataLoadingV3TestCase_V3_01_Stress_01_007") } //Check vertical compaction on V3 format, for minor compaction 1st level - test("PTS_TOR-Productize-New-Features-V3_01_Compaction_01_001", Include) { + test("V3_01_Compaction_01_001", Include) { sql(s"""CREATE TABLE 3lakh_uniqdata3 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from (select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from 3lakh_uniqdata)c""", - Seq(Row(300635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Compaction_01_001") + Seq(Row(300635)), "DataLoadingV3TestCase_V3_01_Compaction_01_001") } //Check vertical compaction on V3 format, for minor compaction 2nd level - test("PTS_TOR-Productize-New-Features-V3_01_Compaction_01_002", Include) { + test("V3_01_Compaction_01_002", Include) { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from (select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from 3lakh_uniqdata)c""", - Seq(Row(300635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Compaction_01_002") + Seq(Row(300635)), "DataLoadingV3TestCase_V3_01_Compaction_01_002") } //Check vertical compaction on V3 format, for major compaction - test("PTS_TOR-Productize-New-Features-V3_01_Compaction_01_003", Include) { + test("V3_01_Compaction_01_003", Include) { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata3 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from (select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from 3lakh_uniqdata)c""", - Seq(Row(300635)), "DataLoadingV3TestCase_PTS_TOR-Productize-New-Features-V3_01_Compaction_01_003") + Seq(Row(300635)), "DataLoadingV3TestCase_V3_01_Compaction_01_003") } val prop = CarbonProperties.getInstance() diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/InvertedindexTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/InvertedindexTestCase.scala index 93235248abd..bae01246a4e 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/InvertedindexTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/InvertedindexTestCase.scala @@ -30,7 +30,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dimension - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC001", Include) { + test("NoInvertedindex-TC001", Include) { sql("drop table if exists uniqdata1") sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -39,7 +39,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC002", Include) { + test("NoInvertedindex-TC002", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -47,7 +47,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include and measure - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC003", Include) { + test("NoInvertedindex-TC003", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -55,7 +55,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC004", Include) { + test("NoInvertedindex-TC004", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -63,7 +63,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude and dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC005", Include) { + test("NoInvertedindex-TC005", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -71,7 +71,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC007", Include) { + test("NoInvertedindex-TC007", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -79,7 +79,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dimension - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC008", Include) { + test("NoInvertedindex-TC008", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -88,7 +88,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC009", Include) { + test("NoInvertedindex-TC009", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -97,7 +97,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC010", Include) { + test("NoInvertedindex-TC010", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -106,7 +106,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude and dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC011", Include) { + test("NoInvertedindex-TC011", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -115,7 +115,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC013", Include) { + test("NoInvertedindex-TC013", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -124,7 +124,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include and measure - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC014", Include) { + test("NoInvertedindex-TC014", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -133,83 +133,83 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dimension and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC015", Include) { + test("NoInvertedindex-TC015", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC015") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC015") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC016", Include) { + test("NoInvertedindex-TC016", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC016") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC016") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC017", Include) { + test("NoInvertedindex-TC017", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC017") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC017") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC018", Include) { + test("NoInvertedindex-TC018", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC018") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC018") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC019", Include) { + test("NoInvertedindex-TC019", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC019") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC019") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC020", Include) { + test("NoInvertedindex-TC020", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC020") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC020") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC021", Include) { + test("NoInvertedindex-TC021", Include) { sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC021") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC021") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC022", Include) { + test("NoInvertedindex-TC022", Include) { sql("drop table if exists uniqdata") sql("drop table if exists uniqdata1") sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -223,119 +223,119 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dimension and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC023", Include) { + test("NoInvertedindex-TC023", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC023") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC023") sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect } //To check no_inverted_index with dimension and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC024", Include) { + test("NoInvertedindex-TC024", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC024") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC024") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dimension and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC025", Include) { + test("NoInvertedindex-TC025", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(CUST_ID) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC025") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC025") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC026", Include) { + test("NoInvertedindex-TC026", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC026") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC026") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC027", Include) { + test("NoInvertedindex-TC027", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC027") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC027") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC028", Include) { + test("NoInvertedindex-TC028", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC028") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC028") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC029", Include) { + test("NoInvertedindex-TC029", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC029") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC029") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC030", Include) { + test("NoInvertedindex-TC030", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC030") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC030") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC031", Include) { + test("NoInvertedindex-TC031", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC031") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC031") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC032", Include) { + test("NoInvertedindex-TC032", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC032") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC032") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC033", Include) { + test("NoInvertedindex-TC033", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -349,117 +349,117 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC034", Include) { + test("NoInvertedindex-TC034", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC034") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC034") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC035", Include) { + test("NoInvertedindex-TC035", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC035") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC035") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC036", Include) { + test("NoInvertedindex-TC036", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(CUST_ID) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC036") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC036") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC037", Include) { + test("NoInvertedindex-TC037", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC037") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC037") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC038", Include) { + test("NoInvertedindex-TC038", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC038") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC038") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC039", Include) { + test("NoInvertedindex-TC039", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC039") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC039") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC040", Include) { + test("NoInvertedindex-TC040", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC040") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC040") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC041", Include) { + test("NoInvertedindex-TC041", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC041") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC041") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC042", Include) { + test("NoInvertedindex-TC042", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC042") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC042") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC043", Include) { + test("NoInvertedindex-TC043", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC043") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC043") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC044", Include) { + test("NoInvertedindex-TC044", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect @@ -473,117 +473,117 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_include and measure and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC045", Include) { + test("NoInvertedindex-TC045", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC045") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC045") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include and measure and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC046", Include) { + test("NoInvertedindex-TC046", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC046") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC046") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_include measure and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC047", Include) { + test("NoInvertedindex-TC047", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(cust_id) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC047") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC047") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC048", Include) { + test("NoInvertedindex-TC048", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC048") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC048") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC049", Include) { + test("NoInvertedindex-TC049", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC049") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC049") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC050", Include) { + test("NoInvertedindex-TC050", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC050") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC050") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC051", Include) { + test("NoInvertedindex-TC051", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC051") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC051") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC052", Include) { + test("NoInvertedindex-TC052", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC052") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC052") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC053", Include) { + test("NoInvertedindex-TC053", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC053") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC053") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC054", Include) { + test("NoInvertedindex-TC054", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC054") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC054") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC055", Include) { + test("NoInvertedindex-TC055", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -597,116 +597,116 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC056", Include) { + test("NoInvertedindex-TC056", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC056") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC056") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC057", Include) { + test("NoInvertedindex-TC057", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC057") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC057") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC058", Include) { + test("NoInvertedindex-TC058", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(cust_id) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC058") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC058") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC059", Include) { + test("NoInvertedindex-TC059", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC059") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC059") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC060", Include) { + test("NoInvertedindex-TC060", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC060") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC060") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC061", Include) { + test("NoInvertedindex-TC061", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC061") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC061") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC062", Include) { + test("NoInvertedindex-TC062", Include) { sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC062") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC062") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC063", Include) { + test("NoInvertedindex-TC063", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC063") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC063") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC064", Include) { + test("NoInvertedindex-TC064", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC064") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC064") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC065", Include) { + test("NoInvertedindex-TC065", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC065") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC065") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC066", Include) { + test("NoInvertedindex-TC066", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -720,116 +720,116 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index with dictionary_exclude and dictionary_include and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC067", Include) { + test("NoInvertedindex-TC067", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC067") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC067") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC068", Include) { + test("NoInvertedindex-TC068", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC068") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC068") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with dictionary_exclude and dictionary_include and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC069", Include) { + test("NoInvertedindex-TC069", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(cust_id) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC069") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC069") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and limit - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC081", Include) { + test("NoInvertedindex-TC081", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata limit 100""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC081") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC081") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and count() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC082", Include) { + test("NoInvertedindex-TC082", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(7)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC082") + Seq(Row(7)), "invertedindexTestCase_NoInvertedindex-TC082") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and sum() - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC083", Include) { + test("NoInvertedindex-TC083", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(INTEGER_COLUMN1) from uniqdata""", - Seq(Row(28)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC083") + Seq(Row(28)), "invertedindexTestCase_NoInvertedindex-TC083") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and >= operator - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC084", Include) { + test("NoInvertedindex-TC084", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID >= 9001""", - Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC084") + Seq(Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC084") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and != - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC085", Include) { + test("NoInvertedindex-TC085", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where CUST_ID != 9001""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC085") + Seq(Row(9000,"CUST_NAME_00000"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC085") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and between - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC086", Include) { + test("NoInvertedindex-TC086", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id between 9002 and 9030""", - Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC086") + Seq(Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC086") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and like - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC087", Include) { + test("NoInvertedindex-TC087", Include) { sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id Like '9%'""", - Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC087") + Seq(Row(9000,"CUST_NAME_00000"),Row(9001,"CUST_NAME_00001"),Row(9002,"CUST_NAME_00002"),Row(9003,"CUST_NAME_00003"),Row(9004,"CUST_NAME_00004"),Row(9005,"CUST_NAME_00005"),Row(9006,"CUST_NAME_00006")), "invertedindexTestCase_NoInvertedindex-TC087") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and join - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC088", Include) { + test("NoInvertedindex-TC088", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""drop table if exists uniqdata1""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect @@ -843,40 +843,40 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and having - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC089", Include) { + test("NoInvertedindex-TC089", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id from uniqdata where cust_id > 9000 group by cust_id having cust_id = 9002""", - Seq(Row(9002)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC089") + Seq(Row(9002)), "invertedindexTestCase_NoInvertedindex-TC089") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and sortby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC090", Include) { + test("NoInvertedindex-TC090", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select cust_id,cust_name from uniqdata where cust_id > 9004 sort by cust_name desc""", - Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC090") + Seq(Row(9006,"CUST_NAME_00006"),Row(9005,"CUST_NAME_00005")), "invertedindexTestCase_NoInvertedindex-TC090") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index for timestamp with dictionary_exclude and dictionary_include and groupby - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC091", Include) { + test("NoInvertedindex-TC091", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','DICTIONARY_EXCLUDE'='ACTIVE_EMUI_VERSION','NO_INVERTED_INDEX'='DOB')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select sum(cust_id) from uniqdata group by cust_id""", - Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_AR-Develop-Feature-NoInvertedindex-001_PTS001_TC091") + Seq(Row(9006),Row(9001),Row(9004),Row(9002),Row(9005),Row(9003),Row(9000)), "invertedindexTestCase_NoInvertedindex-TC091") sql(s"""drop table if exists uniqdata""").collect } //To check no_inverted_index with measure - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC092", Include) { + test("NoInvertedindex-TC092", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -884,7 +884,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //to check alter drop column for no_inverted - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC097", Include) { + test("NoInvertedindex-TC097", Include) { sql(s"""drop table if exists uniqdata""").collect try { sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('COLUMN_GROUPS'='(CUST_NAME,ACTIVE_EMUI_VERSION)','DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_NAME')""").collect @@ -901,7 +901,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //to check measure in no_inverted_index - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC101", Include) { + test("NoInvertedindex-TC101", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -909,7 +909,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //to check dictionary exclude with no_inverted_index - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC102", Include) { + test("NoInvertedindex-TC102", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='CUST_NAME','NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -917,7 +917,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after Inserting the data - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC103", Include) { + test("NoInvertedindex-TC103", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""insert into uniqdata select '2','customerName','ACTIVE_EMUI_VERSION','2015-4-23 11:01:01','2015-4-23 11:01:01','45','56','4.5','6.5','3.2','2.5','36'""").collect @@ -928,7 +928,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after minor Compaction - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC104", Include) { + test("NoInvertedindex-TC104", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -943,7 +943,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after major Compaction - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC105", Include) { + test("NoInvertedindex-TC105", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -958,7 +958,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index on High Cardinality Column - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC106", Include) { + test("NoInvertedindex-TC106", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -969,7 +969,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index on Low Cardinality Column - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC107", Include) { + test("NoInvertedindex-TC107", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='Double_COLUMN1','NO_INVERTED_INDEX'='Double_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -980,7 +980,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after Inserting the data - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC108", Include) { + test("NoInvertedindex-TC108", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""insert into uniqdata select '2','customerName','ACTIVE_EMUI_VERSION','2015-4-23 11:01:01','2015-4-23 11:01:01','45','56','4.5','6.5','3.2','2.5','36'""").collect @@ -991,7 +991,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after minor Compaction - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC109", Include) { + test("NoInvertedindex-TC109", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -1006,7 +1006,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index after major Compaction - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC110", Include) { + test("NoInvertedindex-TC110", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -1021,7 +1021,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index on High Cardinality Column - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC111", Include) { + test("NoInvertedindex-TC111", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -1032,7 +1032,7 @@ class InvertedindexTestCase extends QueryTest with BeforeAndAfterAll { //To validate No Inverted Index on Low Cardinality Column - test("AR-Develop-Feature-NoInvertedindex-001_PTS001_TC112", Include) { + test("NoInvertedindex-TC112", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='Double_COLUMN1','NO_INVERTED_INDEX'='Double_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/noinverted.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery1TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery1TestCase.scala index 9bd4f1f60ad..d93b2ee7335 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery1TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery1TestCase.scala @@ -32,7 +32,7 @@ class OffheapQuery1TestCase extends QueryTest with BeforeAndAfterAll { //To check select query with limit -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_001", Include) { +test("OffHeapQuery-001-TC_001", Include) { sql(s"""CREATE TABLE uniqdataquery1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdataquery1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -43,7 +43,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_001", I //To check select query with limit as string -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_002", Include) { +test("OffHeapQuery-001-TC_002", Include) { try { sql(s"""select * from uniqdataquery1 limit """"").collect @@ -57,7 +57,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_002", I //To check select query with no input given at limit -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_003", Include) { +test("OffHeapQuery-001-TC_003", Include) { sql(s"""select * from uniqdataquery1 limit""").collect @@ -66,7 +66,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_003", I //To check select count query with where and group by clause -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_004", Include) { +test("OffHeapQuery-001-TC_004", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name="CUST_NAME_00000" group by cust_name""").collect @@ -75,7 +75,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_004", I //To check select count query and group by cust_name using like operator -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_005", Include) { +test("OffHeapQuery-001-TC_005", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name like "cust_name_0%" group by cust_name""").collect @@ -84,7 +84,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_005", I //To check select count query and group by name using IN operator with empty values -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_006", Include) { +test("OffHeapQuery-001-TC_006", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name IN("","") group by cust_name""").collect @@ -93,7 +93,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_006", I //To check select count query and group by name using IN operator with specific values -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_007", Include) { +test("OffHeapQuery-001-TC_007", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_name IN(1,2,3) group by cust_name""").collect @@ -102,7 +102,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_007", I //To check select distinct query -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_008", Include) { +test("OffHeapQuery-001-TC_008", Include) { sql(s"""select distinct cust_name from uniqdataquery1 group by cust_name""").collect @@ -111,7 +111,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_008", I //To check where clause with OR and no operand -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_009", Include) { +test("OffHeapQuery-001-TC_009", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 1 OR """).collect @@ -125,7 +125,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_009", I //To check OR clause with LHS and RHS having no arguments -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_010", Include) { +test("OffHeapQuery-001-TC_010", Include) { try { sql(s"""select * from uniqdataquery1 where OR """).collect @@ -139,7 +139,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_010", I //To check OR clause with LHS having no arguments -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_011", Include) { +test("OffHeapQuery-001-TC_011", Include) { try { sql(s"""select * from uniqdataquery1 where OR cust_id > "1"""").collect @@ -153,7 +153,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_011", I //To check incorrect query -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_013", Include) { +test("OffHeapQuery-001-TC_013", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 0 OR name """).collect @@ -167,7 +167,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_013", I //To check select query with rhs false -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_014", Include) { +test("OffHeapQuery-001-TC_014", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 9005 OR false""").collect @@ -176,7 +176,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_014", I //To check count on multiple arguments -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_015", Include) { +test("OffHeapQuery-001-TC_015", Include) { sql(s"""select count(cust_id,cust_name) from uniqdataquery1 where cust_id > 10544""").collect @@ -185,7 +185,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_015", I //To check count with no argument -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_016", Include) { +test("OffHeapQuery-001-TC_016", Include) { sql(s"""select count() from uniqdataquery1 where cust_id > 10544""").collect @@ -194,7 +194,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_016", I //To check count with * as an argument -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_017", Include) { +test("OffHeapQuery-001-TC_017", Include) { sql(s"""select count(*) from uniqdataquery1 where cust_id>10544""").collect @@ -203,7 +203,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_017", I //To check select count query execution with entire column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_018", Include) { +test("OffHeapQuery-001-TC_018", Include) { sql(s"""select count(*) from uniqdataquery1""").collect @@ -212,7 +212,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_018", I //To check select distinct query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_019", Include) { +test("OffHeapQuery-001-TC_019", Include) { sql(s"""select distinct * from uniqdataquery1""").collect @@ -221,7 +221,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_019", I //To check select multiple column query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_020", Include) { +test("OffHeapQuery-001-TC_020", Include) { sql(s"""select cust_name,cust_id,count(cust_name) from uniqdataquery1 group by cust_name,cust_id""").collect @@ -230,7 +230,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_020", I //To check select count and distinct query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_021", Include) { +test("OffHeapQuery-001-TC_021", Include) { try { sql(s"""select count(cust_id),distinct(cust_name) from uniqdataquery1""").collect @@ -244,7 +244,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_021", I //To check sum query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_022", Include) { +test("OffHeapQuery-001-TC_022", Include) { sql(s"""select sum(cust_id) as sum,cust_name from uniqdataquery1 group by cust_name""").collect @@ -253,7 +253,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_022", I //To check sum of names query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_023", Include) { +test("OffHeapQuery-001-TC_023", Include) { sql(s"""select sum(cust_name) from uniqdataquery1""").collect @@ -262,7 +262,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_023", I //To check select distinct and groupby query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_024", Include) { +test("OffHeapQuery-001-TC_024", Include) { sql(s"""select distinct(cust_name,cust_id) from uniqdataquery1 group by cust_name,cust_id""").collect @@ -271,7 +271,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_024", I //To check select with where clause on cust_name query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_025", Include) { +test("OffHeapQuery-001-TC_025", Include) { sql(s"""select cust_id from uniqdataquery1 where cust_name="cust_name_00000"""").collect @@ -280,7 +280,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_025", I //To check query execution with IN operator without paranthesis -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_027", Include) { +test("OffHeapQuery-001-TC_027", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id IN 9000,9005""").collect @@ -294,7 +294,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_027", I //To check query execution with IN operator with paranthesis -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_028", Include) { +test("OffHeapQuery-001-TC_028", Include) { sql(s"""select * from uniqdataquery1 where cust_id IN (9000,9005)""").collect @@ -303,7 +303,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_028", I //To check query execution with IN operator with out specifying any field. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_029", Include) { +test("OffHeapQuery-001-TC_029", Include) { try { sql(s"""select * from uniqdataquery1 where IN(1,2)""").collect @@ -317,7 +317,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_029", I //To check OR with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_030", Include) { +test("OffHeapQuery-001-TC_030", Include) { sql(s"""select * from uniqdataquery1 where cust_id>9005 or cust_id=9005""").collect @@ -326,7 +326,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_030", I //To check OR with boolean expression -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_031", Include) { +test("OffHeapQuery-001-TC_031", Include) { sql(s"""select * from uniqdataquery1 where cust_id>9005 or false""").collect @@ -335,7 +335,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_031", I //To check AND with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_032", Include) { +test("OffHeapQuery-001-TC_032", Include) { sql(s"""select * from uniqdataquery1 where true AND true""").collect @@ -344,7 +344,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_032", I //To check AND with using booleans -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_033", Include) { +test("OffHeapQuery-001-TC_033", Include) { sql(s"""select * from uniqdataquery1 where true AND false""").collect @@ -353,7 +353,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_033", I //To check AND with using booleans in invalid syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_034", Include) { +test("OffHeapQuery-001-TC_034", Include) { try { sql(s"""select * from uniqdataquery1 where AND true""").collect @@ -367,7 +367,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_034", I //To check AND Passing two conditions on same input -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_035", Include) { +test("OffHeapQuery-001-TC_035", Include) { sql(s"""select * from uniqdataquery1 where cust_id=6 and cust_id>5""").collect @@ -376,7 +376,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_035", I //To check AND changing case -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_036", Include) { +test("OffHeapQuery-001-TC_036", Include) { sql(s"""select * from uniqdataquery1 where cust_id=6 aND cust_id>5""").collect @@ -385,7 +385,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_036", I //To check AND using 0 and 1 treated as boolean values -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_037", Include) { +test("OffHeapQuery-001-TC_037", Include) { try { sql(s"""select * from uniqdataquery1 where true aNd 0""").collect @@ -399,7 +399,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_037", I //To check AND on two columns -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_038", Include) { +test("OffHeapQuery-001-TC_038", Include) { sql(s"""select * from uniqdataquery1 where cust_id=9000 and cust_name='cust_name_00000'""").collect @@ -408,7 +408,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_038", I //To check '='operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_039", Include) { +test("OffHeapQuery-001-TC_039", Include) { sql(s"""select * from uniqdataquery1 where cust_id=9000 and cust_name='cust_name_00000' and ACTIVE_EMUI_VERSION='ACTIVE_EMUI_VERSION_00000'""").collect @@ -417,7 +417,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_039", I //To check '='operator without Passing any value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_040", Include) { +test("OffHeapQuery-001-TC_040", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=""").collect @@ -431,7 +431,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_040", I //To check '='operator without Passing columnname and value. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_041", Include) { +test("OffHeapQuery-001-TC_041", Include) { try { sql(s"""select * from uniqdataquery1 where =""").collect @@ -445,7 +445,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_041", I //To check '!='operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_042", Include) { +test("OffHeapQuery-001-TC_042", Include) { sql(s"""select * from uniqdataquery1 where cust_id!=9000""").collect @@ -454,7 +454,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_042", I //To check '!='operator by keeping space between them -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_043", Include) { +test("OffHeapQuery-001-TC_043", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id ! = 9001""").collect @@ -468,7 +468,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_043", I //To check '!='operator by Passing boolean value whereas column expects an integer -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_044", Include) { +test("OffHeapQuery-001-TC_044", Include) { sql(s"""select * from uniqdataquery1 where cust_id != true""").collect @@ -477,7 +477,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_044", I //To check '!='operator without providing any value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_045", Include) { +test("OffHeapQuery-001-TC_045", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id != """).collect @@ -491,7 +491,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_045", I //To check '!='operator without providing any column name -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_046", Include) { +test("OffHeapQuery-001-TC_046", Include) { try { sql(s"""select * from uniqdataquery1 where != false""").collect @@ -505,7 +505,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_046", I //To check 'NOT' with valid syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_047", Include) { +test("OffHeapQuery-001-TC_047", Include) { sql(s"""select * from uniqdataquery1 where NOT(cust_id=9000)""").collect @@ -514,7 +514,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_047", I //To check 'NOT' using boolean values -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_048", Include) { +test("OffHeapQuery-001-TC_048", Include) { sql(s"""select * from uniqdataquery1 where NOT(false)""").collect @@ -523,7 +523,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_048", I //To check 'NOT' applying it on a value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_049", Include) { +test("OffHeapQuery-001-TC_049", Include) { sql(s"""select * from uniqdataquery1 where cust_id = 'NOT(false)'""").collect @@ -532,7 +532,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_049", I //To check 'NOT' with between operator -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_050", Include) { +test("OffHeapQuery-001-TC_050", Include) { sql(s"""select * from uniqdataquery1 where cust_id NOT BETWEEN 9000 and 9005""").collect @@ -541,7 +541,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_050", I //To check 'NOT' operator in nested way -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_051", Include) { +test("OffHeapQuery-001-TC_051", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT (NOT(true))""").collect @@ -555,7 +555,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_051", I //To check 'NOT' operator with parenthesis. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_052", Include) { +test("OffHeapQuery-001-TC_052", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT ()""").collect @@ -569,7 +569,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_052", I //To check 'NOT' operator without condition. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_053", Include) { +test("OffHeapQuery-001-TC_053", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id NOT""").collect @@ -583,7 +583,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_053", I //To check 'NOT' operator checking case sensitivity. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_054", Include) { +test("OffHeapQuery-001-TC_054", Include) { sql(s"""select * from uniqdataquery1 where nOt(false)""").collect @@ -592,7 +592,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_054", I //To check '>' operator without specifying column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_055", Include) { +test("OffHeapQuery-001-TC_055", Include) { try { sql(s"""select * from uniqdataquery1 where > 20""").collect @@ -606,7 +606,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_055", I //To check '>' operator without specifying value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_056", Include) { +test("OffHeapQuery-001-TC_056", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > """).collect @@ -620,7 +620,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_056", I //To check '>' operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_057", Include) { +test("OffHeapQuery-001-TC_057", Include) { sql(s"""select * from uniqdataquery1 where cust_id >9005""").collect @@ -629,7 +629,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_057", I //To check '>' operator for Integer value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_058", Include) { +test("OffHeapQuery-001-TC_058", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 9010""").collect @@ -638,7 +638,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_058", I //To check '>' operator for String value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_059", Include) { +test("OffHeapQuery-001-TC_059", Include) { sql(s"""select * from uniqdataquery1 where cust_name > 'cust_name_00000'""").collect @@ -647,7 +647,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_059", I //To check '<' operator without specifying column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_060", Include) { +test("OffHeapQuery-001-TC_060", Include) { try { sql(s"""select * from uniqdataquery1 where < 5""").collect @@ -661,7 +661,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_060", I //To check '<' operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_061", Include) { +test("OffHeapQuery-001-TC_061", Include) { sql(s"""select * from uniqdataquery1 where cust_id < 9005""").collect @@ -670,7 +670,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_061", I //To check '<' operator for String value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_062", Include) { +test("OffHeapQuery-001-TC_062", Include) { sql(s"""select * from uniqdataquery1 where cust_name < "cust_name_00001"""").collect @@ -679,7 +679,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_062", I //To check '<=' operator without specifying column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_063", Include) { +test("OffHeapQuery-001-TC_063", Include) { try { sql(s"""select * from uniqdataquery1 where <= 2""").collect @@ -693,7 +693,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_063", I //To check '<=' operator without providing value -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_064", Include) { +test("OffHeapQuery-001-TC_064", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id <= """).collect @@ -707,7 +707,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_064", I //To check '<=' operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_065", Include) { +test("OffHeapQuery-001-TC_065", Include) { sql(s"""select * from uniqdataquery1 where cust_id <=9002""").collect @@ -716,7 +716,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_065", I //To check '<=' operator adding space between'<' and '=' -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_066", Include) { +test("OffHeapQuery-001-TC_066", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id < = 9002""").collect @@ -730,7 +730,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_066", I //To check 'BETWEEN' operator without providing range -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_067", Include) { +test("OffHeapQuery-001-TC_067", Include) { try { sql(s"""select * from uniqdataquery1 where age between""").collect @@ -744,7 +744,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_067", I //To check 'BETWEEN' operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_068", Include) { +test("OffHeapQuery-001-TC_068", Include) { sql(s"""select * from uniqdataquery1 where cust_id between 9002 and 9030""").collect @@ -753,7 +753,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_068", I //To check 'BETWEEN' operator providing two same values -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_069", Include) { +test("OffHeapQuery-001-TC_069", Include) { sql(s"""select * from uniqdataquery1 where cust_name beTWeen 'CU%' and 'CU%'""").collect @@ -762,7 +762,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_069", I //To check 'NOT BETWEEN' operator for integer -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_070", Include) { +test("OffHeapQuery-001-TC_070", Include) { sql(s"""select * from uniqdataquery1 where cust_id NOT between 9024 and 9030""").collect @@ -771,7 +771,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_070", I //To check 'NOT BETWEEN' operator for string -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_071", Include) { +test("OffHeapQuery-001-TC_071", Include) { sql(s"""select * from uniqdataquery1 where cust_name NOT beTWeen 'cust_name_00000' and 'cust_name_00001'""").collect @@ -780,7 +780,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_071", I //To check 'IS NULL' for case sensitiveness. -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_072", Include) { +test("OffHeapQuery-001-TC_072", Include) { sql(s"""select * from uniqdataquery1 where cust_id Is NulL""").collect @@ -789,7 +789,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_072", I //To check 'IS NULL' for null field -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_073", Include) { +test("OffHeapQuery-001-TC_073", Include) { sql(s"""select * from uniqdataquery1 where cust_name Is NulL""").collect @@ -798,7 +798,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_073", I //To check 'IS NULL' without providing column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_074", Include) { +test("OffHeapQuery-001-TC_074", Include) { try { sql(s"""select * from uniqdataquery1 where Is NulL""").collect @@ -812,7 +812,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_074", I //To check 'IS NOT NULL' without providing column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_075", Include) { +test("OffHeapQuery-001-TC_075", Include) { try { sql(s"""select * from uniqdataquery1 where IS NOT NULL""").collect @@ -826,7 +826,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_075", I //To check ''IS NOT NULL' operator with correct syntax -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_076", Include) { +test("OffHeapQuery-001-TC_076", Include) { sql(s"""select * from uniqdataquery1 where cust_id IS NOT NULL""").collect @@ -835,7 +835,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_076", I //To check 'Like' operator for integer -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_077", Include) { +test("OffHeapQuery-001-TC_077", Include) { sql(s"""select * from uniqdataquery1 where cust_id Like '9%'""").collect @@ -844,7 +844,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_077", I //To check Limit clause with where condition -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_078", Include) { +test("OffHeapQuery-001-TC_078", Include) { sql(s"""select * from uniqdataquery1 where cust_id>10987 limit 15""").collect @@ -853,7 +853,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_078", I //To check Limit clause with where condition and no argument -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_079", Include) { +test("OffHeapQuery-001-TC_079", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=10987 limit""").collect @@ -867,7 +867,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_079", I //To check Limit clause with where condition and decimal argument -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_080", Include) { +test("OffHeapQuery-001-TC_080", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id=10987 limit 0.0""").collect @@ -881,7 +881,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_080", I //To check where clause with distinct and group by -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_081", Include) { +test("OffHeapQuery-001-TC_081", Include) { sql(s"""select distinct cust_name from uniqdataquery1 where cust_name IN("CUST_NAME_01999") group by cust_name""").collect @@ -890,7 +890,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_081", I //To check subqueries -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_082", Include) { +test("OffHeapQuery-001-TC_082", Include) { sql(s"""select * from (select cust_id from uniqdataquery1 where cust_id IN (10987,10988)) uniqdataquery1 where cust_id IN (10987, 10988)""").collect @@ -899,7 +899,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_082", I //To count with where clause -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_083", Include) { +test("OffHeapQuery-001-TC_083", Include) { sql(s"""select count(cust_id) from uniqdataquery1 where cust_id > 10874""").collect @@ -908,7 +908,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_083", I //To check Join query -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_084", Include) { +test("OffHeapQuery-001-TC_084", Include) { dropTable("uniqdataquery11") sql(s"""CREATE TABLE uniqdataquery11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdataquery11 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -917,7 +917,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_084", I //To check Left join with where clause -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_085", Include) { +test("OffHeapQuery-001-TC_085", Include) { sql(s"""select uniqdataquery1.CUST_ID from uniqdataquery1 LEFT join uniqdataquery11 where uniqdataquery1.CUST_ID > 10000""").collect @@ -926,7 +926,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_085", I //To check Full join -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_086", Include) { +test("OffHeapQuery-001-TC_086", Include) { try { sql(s"""select uniqdataquery1.CUST_ID from uniqdataquery1 FULL JOIN uniqdataquery11 where CUST_ID""").collect @@ -940,7 +940,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_086", I //To check Broadcast join -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_087", Include) { +test("OffHeapQuery-001-TC_087", Include) { sql(s"""select broadcast.cust_id from uniqdataquery1 broadcast join uniqdataquery11 where broadcast.cust_id > 10900""").collect @@ -949,7 +949,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_087", I //To avg function -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_088", Include) { +test("OffHeapQuery-001-TC_088", Include) { sql(s"""select avg(cust_name) from uniqdataquery1 where cust_id > 10544 group by cust_name""").collect @@ -958,7 +958,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_088", I //To check subquery with aggrgate function avg -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_089", Include) { +test("OffHeapQuery-001-TC_089", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery1 where cust_id IN (select cust_id from uniqdataquery1 where cust_id > 0) group by cust_id""").collect @@ -967,7 +967,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_089", I //To check HAVING on Measure -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_090", Include) { +test("OffHeapQuery-001-TC_090", Include) { sql(s"""select cust_id from uniqdataquery1 where cust_id > 10543 group by cust_id having cust_id = 10546""").collect @@ -976,7 +976,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_090", I //To check HAVING on dimension -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_091", Include) { +test("OffHeapQuery-001-TC_091", Include) { sql(s"""select cust_name from uniqdataquery1 where cust_id > 10544 group by cust_name having cust_name like 'C%'""").collect @@ -985,7 +985,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_091", I //To check HAVING on multiple columns -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_092", Include) { +test("OffHeapQuery-001-TC_092", Include) { sql(s"""select cust_id,cust_name from uniqdataquery1 where cust_id > 10544 group by cust_id,cust_name having cust_id = 10545 AND cust_name like 'C%'""").collect @@ -994,7 +994,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_092", I //To check HAVING with empty condition -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_094", Include) { +test("OffHeapQuery-001-TC_094", Include) { sql(s"""select cust_name from uniqdataquery1 where cust_id > 10544 group by cust_name having """"").collect @@ -1003,7 +1003,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_094", I //To check SORT on measure -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_095", Include) { +test("OffHeapQuery-001-TC_095", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_id asc""").collect @@ -1012,7 +1012,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_095", I //To check SORT on dimemsion -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_096", Include) { +test("OffHeapQuery-001-TC_096", Include) { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_name desc""").collect @@ -1021,7 +1021,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_096", I //To check SORT using 'AND' on multiple column -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_097", Include) { +test("OffHeapQuery-001-TC_097", Include) { try { sql(s"""select * from uniqdataquery1 where cust_id > 10544 sort by cust_name desc and cust_id asc""").collect @@ -1035,7 +1035,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_097", I //To check Select average names and group by name query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_098", Include) { +test("OffHeapQuery-001-TC_098", Include) { sql(s"""select avg(cust_name) from uniqdataquery1 group by cust_name""").collect @@ -1044,7 +1044,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_098", I //To check Select average id and group by id query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_099", Include) { +test("OffHeapQuery-001-TC_099", Include) { sql(s"""select avg(cust_id) from uniqdataquery1 group by cust_id""").collect @@ -1053,7 +1053,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_099", I //To check average aggregate function with no arguments -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_100", Include) { +test("OffHeapQuery-001-TC_100", Include) { try { sql(s"""select cust_id,avg() from uniqdataquery1 group by cust_id""").collect @@ -1067,7 +1067,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_100", I //To check average aggregate function with empty string -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_101", Include) { +test("OffHeapQuery-001-TC_101", Include) { sql(s"""select cust_id,avg("") from uniqdataquery1 group by cust_id""").collect @@ -1076,7 +1076,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_101", I //To check nested average aggregate function -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_102", Include) { +test("OffHeapQuery-001-TC_102", Include) { try { sql(s"""select cust_id,avg(count(cust_id)) from uniqdataquery1 group by cust_id""").collect @@ -1090,7 +1090,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_102", I //To check Multilevel query -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_103", Include) { +test("OffHeapQuery-001-TC_103", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery1 where cust_id IN (select cust_id from uniqdataquery1) group by cust_id""").collect @@ -1099,7 +1099,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_103", I //To check Using first() with group by clause -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_104", Include) { +test("OffHeapQuery-001-TC_104", Include) { sql(s"""select first(cust_id) from uniqdataquery1 group by cust_id""").collect @@ -1108,7 +1108,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_104", I //To check max with groupby clause query execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_105", Include) { +test("OffHeapQuery-001-TC_105", Include) { sql(s"""select max(cust_name) from uniqdataquery1 group by(cust_name)""").collect @@ -1117,7 +1117,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_105", I //To check max with groupby clause query with id execution -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_106", Include) { +test("OffHeapQuery-001-TC_106", Include) { sql(s"""select max(cust_name) from uniqdataquery1 group by(cust_name),cust_id""").collect @@ -1126,7 +1126,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_106", I //To check multiple aggregate functions -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_107", Include) { +test("OffHeapQuery-001-TC_107", Include) { sql(s"""select max(cust_name),sum(cust_name),count(cust_id) from uniqdataquery1 group by(cust_name),cust_id""").collect @@ -1135,7 +1135,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_107", I //To check max with empty string as argument -test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", Include) { +test("OffHeapQuery-001-TC_108", Include) { sql(s"""select max("") from uniqdataquery1 group by(cust_name)""").collect @@ -1144,7 +1144,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check select count of names with group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_109", Include) { + test("OffHeapQuery-001-TC_109", Include) { sql(s"""select count(cust_name) from uniqdataquery1 group by cust_name""").collect @@ -1153,7 +1153,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Order by ASC - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_110", Include) { + test("OffHeapQuery-001-TC_110", Include) { sql(s"""select * from uniqdataquery1 order by cust_id ASC""").collect @@ -1162,7 +1162,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Order by DESC - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_111", Include) { + test("OffHeapQuery-001-TC_111", Include) { sql(s"""select * from uniqdataquery1 order by cust_id DESC""").collect @@ -1171,7 +1171,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Order by without column name - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_112", Include) { + test("OffHeapQuery-001-TC_112", Include) { try { sql(s"""select * from uniqdataquery1 order by ASC""").collect @@ -1185,7 +1185,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check cast Int to String - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_113", Include) { + test("OffHeapQuery-001-TC_113", Include) { sql(s"""select cast(bigint_column1 as STRING) from uniqdataquery1""").collect @@ -1194,7 +1194,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check cast string to int - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_114", Include) { + test("OffHeapQuery-001-TC_114", Include) { sql(s"""select cast(cust_name as INT) from uniqdataquery1""").collect @@ -1203,7 +1203,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check cast int to decimal - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_115", Include) { + test("OffHeapQuery-001-TC_115", Include) { sql(s"""select cast(bigint_column1 as DECIMAL(10,4)) from uniqdataquery1""").collect @@ -1212,7 +1212,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Using window with order by - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_116", Include) { + test("OffHeapQuery-001-TC_116", Include) { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery1 WINDOW w AS (PARTITION BY bigint_column2 ORDER BY cust_id)""").collect @@ -1221,7 +1221,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Using window without partition - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_117", Include) { + test("OffHeapQuery-001-TC_117", Include) { try { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery1 WINDOW w""").collect @@ -1235,7 +1235,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Using ROLLUP with group by - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_118", Include) { + test("OffHeapQuery-001-TC_118", Include) { sql(s"""select cust_name from uniqdataquery1 group by cust_name with ROLLUP""").collect @@ -1244,7 +1244,7 @@ test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_108", I //To check Using ROLLUP without group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_119", Include) { + test("OffHeapQuery-001-TC_119", Include) { try { sql(s"""select cust_name from uniqdataquery1 with ROLLUP""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery2TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery2TestCase.scala index bb356d191a6..10a986658f4 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery2TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapQuery2TestCase.scala @@ -32,7 +32,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select query with limit - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_120", Include) { + test("OffHeapQuery-002-TC_120", Include) { sql(s"""CREATE TABLE uniqdataquery2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdataquery2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -43,7 +43,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select query with limit as string - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_121", Include) { + test("OffHeapQuery-002-TC_121", Include) { try { sql(s"""select * from uniqdataquery2 limit """"").collect @@ -57,7 +57,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select query with no input given at limit - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_122", Include) { + test("OffHeapQuery-002-TC_122", Include) { sql(s"""select * from uniqdataquery2 limit""").collect @@ -66,7 +66,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count query with where and group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_123", Include) { + test("OffHeapQuery-002-TC_123", Include) { sql(s"""select count(*) from uniqdataquery2 where cust_name="CUST_NAME_00000" group by cust_name""").collect @@ -75,7 +75,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by cust_name using like operator - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_124", Include) { + test("OffHeapQuery-002-TC_124", Include) { sql(s"""select count(*) from uniqdataquery2 where cust_name like "cust_name_0%" group by cust_name""").collect @@ -84,7 +84,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by name using IN operator with empty values - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_125", Include) { + test("OffHeapQuery-002-TC_125", Include) { sql(s"""select count(*) from uniqdataquery2 where cust_name IN("","") group by cust_name""").collect @@ -93,7 +93,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count query and group by name using IN operator with specific values - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_126", Include) { + test("OffHeapQuery-002-TC_126", Include) { sql(s"""select count(*) from uniqdataquery2 where cust_name IN(1,2,3) group by cust_name""").collect @@ -102,7 +102,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct query - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_127", Include) { + test("OffHeapQuery-002-TC_127", Include) { sql(s"""select distinct cust_name from uniqdataquery2 group by cust_name""").collect @@ -111,7 +111,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check where clause with OR and no operand - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_128", Include) { + test("OffHeapQuery-002-TC_128", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id > 1 OR """).collect @@ -125,7 +125,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check OR clause with LHS and RHS having no arguments - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_129", Include) { + test("OffHeapQuery-002-TC_129", Include) { try { sql(s"""select * from uniqdataquery2 where OR """).collect @@ -139,7 +139,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check OR clause with LHS having no arguments - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_130", Include) { + test("OffHeapQuery-002-TC_130", Include) { try { sql(s"""select * from uniqdataquery2 where OR cust_id > "1"""").collect @@ -153,7 +153,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check incorrect query - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_132", Include) { + test("OffHeapQuery-002-TC_132", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id > 0 OR name """).collect @@ -167,7 +167,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select query with rhs false - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_133", Include) { + test("OffHeapQuery-002-TC_133", Include) { sql(s"""select * from uniqdataquery2 where cust_id > 9005 OR false""").collect @@ -176,7 +176,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check count on multiple arguments - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_134", Include) { + test("OffHeapQuery-002-TC_134", Include) { sql(s"""select count(cust_id,cust_name) from uniqdataquery2 where cust_id > 10544""").collect @@ -185,7 +185,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check count with no argument - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_135", Include) { + test("OffHeapQuery-002-TC_135", Include) { sql(s"""select count() from uniqdataquery2 where cust_id > 10544""").collect @@ -194,7 +194,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check count with * as an argument - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_136", Include) { + test("OffHeapQuery-002-TC_136", Include) { sql(s"""select count(*) from uniqdataquery2 where cust_id>10544""").collect @@ -203,7 +203,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count query execution with entire column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_137", Include) { + test("OffHeapQuery-002-TC_137", Include) { sql(s"""select count(*) from uniqdataquery2""").collect @@ -212,7 +212,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_138", Include) { + test("OffHeapQuery-002-TC_138", Include) { sql(s"""select distinct * from uniqdataquery2""").collect @@ -221,7 +221,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select multiple column query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_139", Include) { + test("OffHeapQuery-002-TC_139", Include) { sql(s"""select cust_name,cust_id,count(cust_name) from uniqdataquery2 group by cust_name,cust_id""").collect @@ -230,7 +230,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count and distinct query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_140", Include) { + test("OffHeapQuery-002-TC_140", Include) { try { sql(s"""select count(cust_id),distinct(cust_name) from uniqdataquery2""").collect @@ -244,7 +244,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check sum query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_141", Include) { + test("OffHeapQuery-002-TC_141", Include) { sql(s"""select sum(cust_id) as sum,cust_name from uniqdataquery2 group by cust_name""").collect @@ -253,7 +253,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check sum of names query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_142", Include) { + test("OffHeapQuery-002-TC_142", Include) { sql(s"""select sum(cust_name) from uniqdataquery2""").collect @@ -262,7 +262,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select distinct and groupby query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_143", Include) { + test("OffHeapQuery-002-TC_143", Include) { sql(s"""select distinct(cust_name,cust_id) from uniqdataquery2 group by cust_name,cust_id""").collect @@ -271,7 +271,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select with where clause on cust_name query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_144", Include) { + test("OffHeapQuery-002-TC_144", Include) { sql(s"""select cust_id from uniqdataquery2 where cust_name="cust_name_00000"""").collect @@ -280,7 +280,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator without paranthesis - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_146", Include) { + test("OffHeapQuery-002-TC_146", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id IN 9000,9005""").collect @@ -294,7 +294,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator with paranthesis - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_147", Include) { + test("OffHeapQuery-002-TC_147", Include) { sql(s"""select * from uniqdataquery2 where cust_id IN (9000,9005)""").collect @@ -303,7 +303,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check query execution with IN operator with out specifying any field. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_148", Include) { + test("OffHeapQuery-002-TC_148", Include) { try { sql(s"""select * from uniqdataquery2 where IN(1,2)""").collect @@ -317,7 +317,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check OR with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_149", Include) { + test("OffHeapQuery-002-TC_149", Include) { sql(s"""select * from uniqdataquery2 where cust_id>9005 or cust_id=9005""").collect @@ -326,7 +326,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check OR with boolean expression - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_150", Include) { + test("OffHeapQuery-002-TC_150", Include) { sql(s"""select * from uniqdataquery2 where cust_id>9005 or false""").collect @@ -335,7 +335,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_151", Include) { + test("OffHeapQuery-002-TC_151", Include) { sql(s"""select * from uniqdataquery2 where true AND true""").collect @@ -344,7 +344,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND with using booleans - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_152", Include) { + test("OffHeapQuery-002-TC_152", Include) { sql(s"""select * from uniqdataquery2 where true AND false""").collect @@ -353,7 +353,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND with using booleans in invalid syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_153", Include) { + test("OffHeapQuery-002-TC_153", Include) { try { sql(s"""select * from uniqdataquery2 where AND true""").collect @@ -367,7 +367,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND Passing two conditions on same input - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_154", Include) { + test("OffHeapQuery-002-TC_154", Include) { sql(s"""select * from uniqdataquery2 where cust_id=6 and cust_id>5""").collect @@ -376,7 +376,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND changing case - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_155", Include) { + test("OffHeapQuery-002-TC_155", Include) { sql(s"""select * from uniqdataquery2 where cust_id=6 aND cust_id>5""").collect @@ -385,7 +385,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND using 0 and 1 treated as boolean values - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_156", Include) { + test("OffHeapQuery-002-TC_156", Include) { try { sql(s"""select * from uniqdataquery2 where true aNd 0""").collect @@ -399,7 +399,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check AND on two columns - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_157", Include) { + test("OffHeapQuery-002-TC_157", Include) { sql(s"""select * from uniqdataquery2 where cust_id=9000 and cust_name='cust_name_00000'""").collect @@ -408,7 +408,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_158", Include) { + test("OffHeapQuery-002-TC_158", Include) { sql(s"""select * from uniqdataquery2 where cust_id=9000 and cust_name='cust_name_00000' and ACTIVE_EMUI_VERSION='ACTIVE_EMUI_VERSION_00000'""").collect @@ -417,7 +417,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator without Passing any value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_159", Include) { + test("OffHeapQuery-002-TC_159", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id=""").collect @@ -431,7 +431,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '='operator without Passing columnname and value. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_160", Include) { + test("OffHeapQuery-002-TC_160", Include) { try { sql(s"""select * from uniqdataquery2 where =""").collect @@ -445,7 +445,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_161", Include) { + test("OffHeapQuery-002-TC_161", Include) { sql(s"""select * from uniqdataquery2 where cust_id!=9000""").collect @@ -454,7 +454,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator by keeping space between them - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_162", Include) { + test("OffHeapQuery-002-TC_162", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id ! = 9001""").collect @@ -468,7 +468,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator by Passing boolean value whereas column expects an integer - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_163", Include) { + test("OffHeapQuery-002-TC_163", Include) { sql(s"""select * from uniqdataquery2 where cust_id != true""").collect @@ -477,7 +477,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator without providing any value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_164", Include) { + test("OffHeapQuery-002-TC_164", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id != """).collect @@ -491,7 +491,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '!='operator without providing any column name - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_165", Include) { + test("OffHeapQuery-002-TC_165", Include) { try { sql(s"""select * from uniqdataquery2 where != false""").collect @@ -505,7 +505,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' with valid syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_166", Include) { + test("OffHeapQuery-002-TC_166", Include) { sql(s"""select * from uniqdataquery2 where NOT(cust_id=9000)""").collect @@ -514,7 +514,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' using boolean values - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_167", Include) { + test("OffHeapQuery-002-TC_167", Include) { sql(s"""select * from uniqdataquery2 where NOT(false)""").collect @@ -523,7 +523,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' applying it on a value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_168", Include) { + test("OffHeapQuery-002-TC_168", Include) { sql(s"""select * from uniqdataquery2 where cust_id = 'NOT(false)'""").collect @@ -532,7 +532,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' with between operator - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_169", Include) { + test("OffHeapQuery-002-TC_169", Include) { sql(s"""select * from uniqdataquery2 where cust_id NOT BETWEEN 9000 and 9005""").collect @@ -541,7 +541,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator in nested way - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_170", Include) { + test("OffHeapQuery-002-TC_170", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id NOT (NOT(true))""").collect @@ -555,7 +555,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator with parenthesis. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_171", Include) { + test("OffHeapQuery-002-TC_171", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id NOT ()""").collect @@ -569,7 +569,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator without condition. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_172", Include) { + test("OffHeapQuery-002-TC_172", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id NOT""").collect @@ -583,7 +583,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT' operator checking case sensitivity. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_173", Include) { + test("OffHeapQuery-002-TC_173", Include) { sql(s"""select * from uniqdataquery2 where nOt(false)""").collect @@ -592,7 +592,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator without specifying column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_174", Include) { + test("OffHeapQuery-002-TC_174", Include) { try { sql(s"""select * from uniqdataquery2 where > 20""").collect @@ -606,7 +606,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator without specifying value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_175", Include) { + test("OffHeapQuery-002-TC_175", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id > """).collect @@ -620,7 +620,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_176", Include) { + test("OffHeapQuery-002-TC_176", Include) { sql(s"""select * from uniqdataquery2 where cust_id >9005""").collect @@ -629,7 +629,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator for Integer value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_177", Include) { + test("OffHeapQuery-002-TC_177", Include) { sql(s"""select * from uniqdataquery2 where cust_id > 9010""").collect @@ -638,7 +638,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '>' operator for String value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_178", Include) { + test("OffHeapQuery-002-TC_178", Include) { sql(s"""select * from uniqdataquery2 where cust_name > 'cust_name_00000'""").collect @@ -647,7 +647,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator without specifying column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_179", Include) { + test("OffHeapQuery-002-TC_179", Include) { try { sql(s"""select * from uniqdataquery2 where < 5""").collect @@ -661,7 +661,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_180", Include) { + test("OffHeapQuery-002-TC_180", Include) { sql(s"""select * from uniqdataquery2 where cust_id < 9005""").collect @@ -670,7 +670,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<' operator for String value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_181", Include) { + test("OffHeapQuery-002-TC_181", Include) { sql(s"""select * from uniqdataquery2 where cust_name < "cust_name_00001"""").collect @@ -679,7 +679,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator without specifying column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_182", Include) { + test("OffHeapQuery-002-TC_182", Include) { try { sql(s"""select * from uniqdataquery2 where <= 2""").collect @@ -693,7 +693,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator without providing value - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_183", Include) { + test("OffHeapQuery-002-TC_183", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id <= """).collect @@ -707,7 +707,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_184", Include) { + test("OffHeapQuery-002-TC_184", Include) { sql(s"""select * from uniqdataquery2 where cust_id <=9002""").collect @@ -716,7 +716,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check '<=' operator adding space between'<' and '=' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_185", Include) { + test("OffHeapQuery-002-TC_185", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id < = 9002""").collect @@ -730,7 +730,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator without providing range - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_186", Include) { + test("OffHeapQuery-002-TC_186", Include) { try { sql(s"""select * from uniqdataquery2 where age between""").collect @@ -744,7 +744,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_187", Include) { + test("OffHeapQuery-002-TC_187", Include) { sql(s"""select * from uniqdataquery2 where cust_id between 9002 and 9030""").collect @@ -753,7 +753,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'BETWEEN' operator providing two same values - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_188", Include) { + test("OffHeapQuery-002-TC_188", Include) { sql(s"""select * from uniqdataquery2 where cust_name beTWeen 'CU%' and 'CU%'""").collect @@ -762,7 +762,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT BETWEEN' operator for integer - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_189", Include) { + test("OffHeapQuery-002-TC_189", Include) { sql(s"""select * from uniqdataquery2 where cust_id NOT between 9024 and 9030""").collect @@ -771,7 +771,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'NOT BETWEEN' operator for string - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_190", Include) { + test("OffHeapQuery-002-TC_190", Include) { sql(s"""select * from uniqdataquery2 where cust_name NOT beTWeen 'cust_name_00000' and 'cust_name_00001'""").collect @@ -780,7 +780,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' for case sensitiveness. - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_191", Include) { + test("OffHeapQuery-002-TC_191", Include) { sql(s"""select * from uniqdataquery2 where cust_id Is NulL""").collect @@ -789,7 +789,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' for null field - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_192", Include) { + test("OffHeapQuery-002-TC_192", Include) { sql(s"""select * from uniqdataquery2 where cust_name Is NulL""").collect @@ -798,7 +798,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NULL' without providing column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_193", Include) { + test("OffHeapQuery-002-TC_193", Include) { try { sql(s"""select * from uniqdataquery2 where Is NulL""").collect @@ -812,7 +812,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'IS NOT NULL' without providing column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_194", Include) { + test("OffHeapQuery-002-TC_194", Include) { try { sql(s"""select * from uniqdataquery2 where IS NOT NULL""").collect @@ -826,7 +826,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check ''IS NOT NULL' operator with correct syntax - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_195", Include) { + test("OffHeapQuery-002-TC_195", Include) { sql(s"""select * from uniqdataquery2 where cust_id IS NOT NULL""").collect @@ -835,7 +835,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check 'Like' operator for integer - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_196", Include) { + test("OffHeapQuery-002-TC_196", Include) { sql(s"""select * from uniqdataquery2 where cust_id Like '9%'""").collect @@ -844,7 +844,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_197", Include) { + test("OffHeapQuery-002-TC_197", Include) { sql(s"""select * from uniqdataquery2 where cust_id>10987 limit 15""").collect @@ -853,7 +853,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition and no argument - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_198", Include) { + test("OffHeapQuery-002-TC_198", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id=10987 limit""").collect @@ -867,7 +867,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Limit clause with where condition and decimal argument - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_199", Include) { + test("OffHeapQuery-002-TC_199", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id=10987 limit 0.0""").collect @@ -881,7 +881,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check where clause with distinct and group by - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_200", Include) { + test("OffHeapQuery-002-TC_200", Include) { sql(s"""select distinct cust_name from uniqdataquery2 where cust_name IN("CUST_NAME_01999") group by cust_name""").collect @@ -890,7 +890,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check subqueries - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_201", Include) { + test("OffHeapQuery-002-TC_201", Include) { sql(s"""select * from (select cust_id from uniqdataquery2 where cust_id IN (10987,10988)) uniqdataquery2 where cust_id IN (10987, 10988)""").collect @@ -899,7 +899,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To count with where clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_202", Include) { + test("OffHeapQuery-002-TC_202", Include) { sql(s"""select count(cust_id) from uniqdataquery2 where cust_id > 10874""").collect @@ -908,7 +908,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Join query - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_203", Include) { + test("OffHeapQuery-002-TC_203", Include) { sql(s"""CREATE TABLE uniqdataquery22 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdataquery22 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select uniqdataquery2.CUST_ID from uniqdataquery2 join uniqdataquery22 where uniqdataquery2.CUST_ID > 10700 and uniqdataquery22.CUST_ID > 10500""").collect @@ -918,7 +918,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Left join with where clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_204", Include) { + test("OffHeapQuery-002-TC_204", Include) { sql(s"""select uniqdataquery2.CUST_ID from uniqdataquery2 LEFT join uniqdataquery22 where uniqdataquery2.CUST_ID > 10000""").collect @@ -927,7 +927,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Full join - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_205", Include) { + test("OffHeapQuery-002-TC_205", Include) { try { sql(s"""select uniqdataquery2.CUST_ID from uniqdataquery2 FULL JOIN uniqdataquery22 where CUST_ID""").collect @@ -941,7 +941,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Broadcast join - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_206", Include) { + test("OffHeapQuery-002-TC_206", Include) { sql(s"""select broadcast.cust_id from uniqdataquery2 broadcast join uniqdataquery22 where broadcast.cust_id > 10900""").collect @@ -950,7 +950,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To avg function - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_207", Include) { + test("OffHeapQuery-002-TC_207", Include) { sql(s"""select avg(cust_name) from uniqdataquery2 where cust_id > 10544 group by cust_name""").collect @@ -959,7 +959,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check subquery with aggrgate function avg - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_208", Include) { + test("OffHeapQuery-002-TC_208", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery2 where cust_id IN (select cust_id from uniqdataquery2 where cust_id > 0) group by cust_id""").collect @@ -968,7 +968,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on Measure - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_209", Include) { + test("OffHeapQuery-002-TC_209", Include) { sql(s"""select cust_id from uniqdataquery2 where cust_id > 10543 group by cust_id having cust_id = 10546""").collect @@ -977,7 +977,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on dimension - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_210", Include) { + test("OffHeapQuery-002-TC_210", Include) { sql(s"""select cust_name from uniqdataquery2 where cust_id > 10544 group by cust_name having cust_name like 'C%'""").collect @@ -986,7 +986,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING on multiple columns - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_211", Include) { + test("OffHeapQuery-002-TC_211", Include) { sql(s"""select cust_id,cust_name from uniqdataquery2 where cust_id > 10544 group by cust_id,cust_name having cust_id = 10545 AND cust_name like 'C%'""").collect @@ -995,7 +995,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check HAVING with empty condition - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_213", Include) { + test("OffHeapQuery-002-TC_213", Include) { sql(s"""select cust_name from uniqdataquery2 where cust_id > 10544 group by cust_name having """"").collect @@ -1004,7 +1004,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check SORT on measure - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_214", Include) { + test("OffHeapQuery-002-TC_214", Include) { sql(s"""select * from uniqdataquery2 where cust_id > 10544 sort by cust_id asc""").collect @@ -1013,7 +1013,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check SORT on dimemsion - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_215", Include) { + test("OffHeapQuery-002-TC_215", Include) { sql(s"""select * from uniqdataquery2 where cust_id > 10544 sort by cust_name desc""").collect @@ -1022,7 +1022,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check SORT using 'AND' on multiple column - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_216", Include) { + test("OffHeapQuery-002-TC_216", Include) { try { sql(s"""select * from uniqdataquery2 where cust_id > 10544 sort by cust_name desc and cust_id asc""").collect @@ -1036,7 +1036,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Select average names and group by name query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_217", Include) { + test("OffHeapQuery-002-TC_217", Include) { sql(s"""select avg(cust_name) from uniqdataquery2 group by cust_name""").collect @@ -1045,7 +1045,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Select average id and group by id query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_218", Include) { + test("OffHeapQuery-002-TC_218", Include) { sql(s"""select avg(cust_id) from uniqdataquery2 group by cust_id""").collect @@ -1054,7 +1054,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check average aggregate function with no arguments - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_219", Include) { + test("OffHeapQuery-002-TC_219", Include) { try { sql(s"""select cust_id,avg() from uniqdataquery2 group by cust_id""").collect @@ -1068,7 +1068,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check average aggregate function with empty string - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_220", Include) { + test("OffHeapQuery-002-TC_220", Include) { sql(s"""select cust_id,avg("") from uniqdataquery2 group by cust_id""").collect @@ -1077,7 +1077,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check nested average aggregate function - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_221", Include) { + test("OffHeapQuery-002-TC_221", Include) { try { sql(s"""select cust_id,avg(count(cust_id)) from uniqdataquery2 group by cust_id""").collect @@ -1091,7 +1091,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Multilevel query - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_222", Include) { + test("OffHeapQuery-002-TC_222", Include) { sql(s"""select cust_id,avg(cust_id) from uniqdataquery2 where cust_id IN (select cust_id from uniqdataquery2) group by cust_id""").collect @@ -1100,7 +1100,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Using first() with group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_223", Include) { + test("OffHeapQuery-002-TC_223", Include) { sql(s"""select first(cust_id) from uniqdataquery2 group by cust_id""").collect @@ -1109,7 +1109,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check max with groupby clause query execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_224", Include) { + test("OffHeapQuery-002-TC_224", Include) { sql(s"""select max(cust_name) from uniqdataquery2 group by(cust_name)""").collect @@ -1118,7 +1118,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check max with groupby clause query with id execution - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_225", Include) { + test("OffHeapQuery-002-TC_225", Include) { sql(s"""select max(cust_name) from uniqdataquery2 group by(cust_name),cust_id""").collect @@ -1127,7 +1127,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check multiple aggregate functions - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_226", Include) { + test("OffHeapQuery-002-TC_226", Include) { sql(s"""select max(cust_name),sum(cust_name),count(cust_id) from uniqdataquery2 group by(cust_name),cust_id""").collect @@ -1136,7 +1136,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check max with empty string as argument - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_227", Include) { + test("OffHeapQuery-002-TC_227", Include) { sql(s"""select max("") from uniqdataquery2 group by(cust_name)""").collect @@ -1145,7 +1145,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check select count of names with group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_228", Include) { + test("OffHeapQuery-002-TC_228", Include) { sql(s"""select count(cust_name) from uniqdataquery2 group by cust_name""").collect @@ -1154,7 +1154,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Order by ASC - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_229", Include) { + test("OffHeapQuery-002-TC_229", Include) { sql(s"""select * from uniqdataquery2 order by cust_id ASC""").collect @@ -1163,7 +1163,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Order by DESC - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_230", Include) { + test("OffHeapQuery-002-TC_230", Include) { sql(s"""select * from uniqdataquery2 order by cust_id DESC""").collect @@ -1172,7 +1172,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Order by without column name - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_231", Include) { + test("OffHeapQuery-002-TC_231", Include) { try { sql(s"""select * from uniqdataquery2 order by ASC""").collect @@ -1186,7 +1186,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check cast Int to String - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_232", Include) { + test("OffHeapQuery-002-TC_232", Include) { sql(s"""select cast(bigint_column1 as STRING) from uniqdataquery2""").collect @@ -1195,7 +1195,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check cast string to int - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_233", Include) { + test("OffHeapQuery-002-TC_233", Include) { sql(s"""select cast(cust_name as INT) from uniqdataquery2""").collect @@ -1204,7 +1204,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check cast int to decimal - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_234", Include) { + test("OffHeapQuery-002-TC_234", Include) { sql(s"""select cast(bigint_column1 as DECIMAL(10,4)) from uniqdataquery2""").collect @@ -1213,7 +1213,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Using window with order by - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_235", Include) { + test("OffHeapQuery-002-TC_235", Include) { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery2 WINDOW w AS (PARTITION BY bigint_column2 ORDER BY cust_id)""").collect @@ -1222,7 +1222,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Using window without partition - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_236", Include) { + test("OffHeapQuery-002-TC_236", Include) { try { sql(s"""select cust_name, sum(bigint_column1) OVER w from uniqdataquery2 WINDOW w""").collect @@ -1236,7 +1236,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Using ROLLUP with group by - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_237", Include) { + test("OffHeapQuery-002-TC_237", Include) { sql(s"""select cust_name from uniqdataquery2 group by cust_name with ROLLUP""").collect @@ -1245,7 +1245,7 @@ class OffheapQuery2TestCase extends QueryTest with BeforeAndAfterAll { //To check Using ROLLUP without group by clause - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-006-01-01-01_001-TC_238", Include) { + test("OffHeapQuery-002-TC_238", Include) { try { sql(s"""select cust_name from uniqdataquery2 with ROLLUP""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort1TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort1TestCase.scala index 21d292e39cd..44287a22a40 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort1TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort1TestCase.scala @@ -34,7 +34,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_001", Include) { + test("OffHeapSort_001-TC_001", Include) { sql(s"""CREATE TABLE uniqdata11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata11 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -47,7 +47,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load 1 lac data load after setting offheap memory in carbon property file - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_002", Include) { + test("OffHeapSort_001-TC_002", Include) { sql(s"""CREATE TABLE uniqdata12 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata12 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -60,7 +60,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option file header in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_003", Include) { + test("OffHeapSort_001-TC_003", Include) { sql(s"""CREATE TABLE uniqdata12a(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata12a OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -73,7 +73,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file without folder path in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_004", Include) { + test("OffHeapSort_001-TC_004", Include) { try { sql(s"""CREATE TABLE uniqdata13 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect @@ -88,7 +88,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file without table_name in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_005", Include) { + test("OffHeapSort_001-TC_005", Include) { sql(s"""drop table if exists uniqdata14""").collect try { sql(s"""CREATE TABLE uniqdata14 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect @@ -105,7 +105,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option QUOTECHAR'='"' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_006", Include) { + test("OffHeapSort_001-TC_006", Include) { sql(s"""CREATE TABLE uniqdata15 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata15 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdata15""").collect @@ -116,7 +116,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS('COMMENTCHAR'='#') - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_007", Include) { + test("OffHeapSort_001-TC_007", Include) { sql(s"""CREATE TABLE uniqdata16 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata16 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -129,7 +129,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option 'MULTILINE'='true' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_008", Include) { + test("OffHeapSort_001-TC_008", Include) { sql(s"""CREATE TABLE uniqdata17 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata17 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -142,7 +142,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS('ESCAPECHAR'='\') - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_009", Include) { + test("OffHeapSort_001-TC_009", Include) { sql(s"""CREATE TABLE uniqdata18 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata18 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -155,7 +155,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='FORCE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_010", Include) { + test("OffHeapSort_001-TC_010", Include) { sql(s"""CREATE TABLE uniqdata19b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata19b OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -168,7 +168,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='IGNORE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_011", Include) { + test("OffHeapSort_001-TC_011", Include) { sql(s"""CREATE TABLE uniqdata19c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata19c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -181,7 +181,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='REDIRECT' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_012", Include) { + test("OffHeapSort_001-TC_012", Include) { sql(s"""CREATE TABLE uniqdata19d (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata19d OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -194,7 +194,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='FALSE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_013", Include) { + test("OffHeapSort_001-TC_013", Include) { sql(s"""CREATE TABLE uniqdata19e (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata19e OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -207,7 +207,7 @@ class OffheapSort1TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='TRUE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_014", Include) { + test("OffHeapSort_001-TC_014", Include) { sql(s"""CREATE TABLE uniqdata19f (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata19f OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort2TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort2TestCase.scala index c852742a265..b21ec20d9f2 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort2TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/OffheapSort2TestCase.scala @@ -32,7 +32,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_015", Include) { + test("OffHeapSort_002-TC_015", Include) { sql(s"""CREATE TABLE uniqdata211 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata211 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -43,7 +43,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load 1 lac data load after setting offheap memory in carbon property file - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_016", Include) { + test("OffHeapSort_002-TC_016", Include) { sql(s"""CREATE TABLE uniqdata212 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata212 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -56,7 +56,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option file header in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_017", Include) { + test("OffHeapSort_002-TC_017", Include) { sql(s"""CREATE TABLE uniqdata212a(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata212a OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -69,7 +69,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file without folder path in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_018", Include) { + test("OffHeapSort_002-TC_018", Include) { try { sql(s"""drop table if exists uniqdata213""").collect sql(s"""CREATE TABLE uniqdata213 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect @@ -86,7 +86,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file without table_name in load - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_019", Include) { + test("OffHeapSort_002-TC_019", Include) { try { sql(s"""drop table if exists uniqdata214""").collect sql(s"""CREATE TABLE uniqdata214 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect @@ -103,7 +103,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option QUOTECHAR'='"' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_020", Include) { + test("OffHeapSort_002-TC_020", Include) { sql(s"""CREATE TABLE uniqdata215 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata215 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -117,7 +117,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS('COMMENTCHAR'='#') - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_021", Include) { + test("OffHeapSort_002-TC_021", Include) { sql(s"""CREATE TABLE uniqdata216 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata216 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -130,7 +130,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with option 'MULTILINE'='true' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_022", Include) { + test("OffHeapSort_002-TC_022", Include) { sql(s"""CREATE TABLE uniqdata217 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata217 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -143,7 +143,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS('ESCAPECHAR'='\') - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_023", Include) { + test("OffHeapSort_002-TC_023", Include) { sql(s"""CREATE TABLE uniqdata218 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata218 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -156,7 +156,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='FORCE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_024", Include) { + test("OffHeapSort_002-TC_024", Include) { sql(s"""CREATE TABLE uniqdata219b (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata219b OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -169,7 +169,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='IGNORE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_025", Include) { + test("OffHeapSort_002-TC_025", Include) { sql(s"""CREATE TABLE uniqdata219c (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata219c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -182,7 +182,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_ACTION'='REDIRECT' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_026", Include) { + test("OffHeapSort_002-TC_026", Include) { sql(s"""CREATE TABLE uniqdata219d (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata219d OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -195,7 +195,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='FALSE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_027", Include) { + test("OffHeapSort_002-TC_027", Include) { sql(s"""CREATE TABLE uniqdata219e (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata219e OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -208,7 +208,7 @@ class OffheapSort2TestCase extends QueryTest with BeforeAndAfterAll { //To load data after setting offheap memory in carbon property file with OPTIONS 'BAD_RECORDS_LOGGER_ENABLE'='TRUE' - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-003-01-01-01_001-TC_028", Include) { + test("OffHeapSort_002-TC_028", Include) { sql(s"""CREATE TABLE uniqdata219f (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdata219f OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','COMMENTCHAR'='#','MULTILINE'='true','ESCAPECHAR'='\','BAD_RECORDS_ACTION'='REDIRECT','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/PartitionTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/PartitionTestCase.scala index c274f30eb7e..3060be9f619 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/PartitionTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/PartitionTestCase.scala @@ -30,7 +30,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if column in partitioned by is already specified in table schema - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC001", Include) { + test("Partition-Local-sort_TC001", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (INTEGER_COLUMN1 int)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='List','LIST_INFO'='1,3')""").collect @@ -43,7 +43,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify table is created with Partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC002", Include) { + ignore("Partition-Local-sort_TC002", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST','LIST_INFO'='3')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -51,7 +51,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception partitioned by is not specified in the DDL - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC003", Include) { + test("Partition-Local-sort_TC003", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='List','NUM_PARTITIONS'='3')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -59,7 +59,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if List info is not given with List type partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC004", Include) { + test("Partition-Local-sort_TC004", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='List')""").collect @@ -72,7 +72,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition type is not given - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC005", Include) { + test("Partition-Local-sort_TC005", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('LIST_INFO'='1,2')""").collect @@ -85,7 +85,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition type is 'range' and LIST_INFO Is provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC006", Include) { + test("Partition-Local-sort_TC006", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'LIST_INFO'='1,2')""").collect @@ -98,7 +98,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition type is 'range' and NUM_PARTITIONS Is provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC007", Include) { + test("Partition-Local-sort_TC007", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'NUM_PARTITIONS'='1')""").collect @@ -111,7 +111,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify table is created if Partition type is 'range' and RANGE_INFO Is provided - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC008", Include) { + ignore("Partition-Local-sort_TC008", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='20160302,20150302')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -119,7 +119,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify table is created if Partition type is 'LIST' and LIST_INFO Is provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC009", Include) { + test("Partition-Local-sort_TC009", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double) PARTITIONED BY (DOJ int)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='1,2')""").collect sql(s"""drop table if exists uniqdata""").collect @@ -127,7 +127,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition type is 'LIST' and NUM_PARTITIONS Is provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC010", Include) { + test("Partition-Local-sort_TC010", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ int)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'NUM_PARTITIONS'='1')""").collect @@ -140,7 +140,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition type is 'LIST' and RANGE_INFO Is provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC011", Include) { + test("Partition-Local-sort_TC011", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'RANGE_INFO'='20160302,20150302')""").collect @@ -153,7 +153,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if datatype is not provided with partition column - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC012", Include) { + test("Partition-Local-sort_TC012", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='20160302,20150302')""").collect @@ -166,7 +166,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if a non existent file header is provided in partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC013", Include) { + test("Partition-Local-sort_TC013", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) PARTITIONED BY (DOJ timestamp)STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='20160302,20150302') @@ -181,7 +181,7 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify exception if Partition By Is empty - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC014", Include) { + test("Partition-Local-sort_TC014", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY ()STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1') @@ -195,46 +195,46 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify load with List Partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC015", Include) { + test("Partition-Local-sort_TC015", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(28)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC015") + Seq(Row(28)), "partitionTestCase_Partition-Local-sort_TC015") sql(s"""drop table if exists uniqdata""").collect } //Verify load with List Partition and limit 1 - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC016", Include) { + test("Partition-Local-sort_TC016", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select * from uniqdata limit 1""", - Seq(Row("CUST_NAME_00002","ACTIVE_EMUI_VERSION_00002",null,null,null,12345678903.0000000000,22345678903.0000000000,1.123456749E10,-1.123456749E10,3,null,2)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC016") + Seq(Row("CUST_NAME_00002","ACTIVE_EMUI_VERSION_00002",null,null,null,12345678903.0000000000,22345678903.0000000000,1.123456749E10,-1.123456749E10,3,null,2)), "partitionTestCase_Partition-Local-sort_TC016") sql(s"""drop table if exists uniqdata""").collect } //Verify load with List Partition and select partition column - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC017", Include) { + test("Partition-Local-sort_TC017", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select CUST_ID from uniqdata limit 1""", - Seq(Row(2)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC017") + Seq(Row(2)), "partitionTestCase_Partition-Local-sort_TC017") sql(s"""drop table if exists uniqdata""").collect } //Verify exception if 2 partition columns are provided - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC018", Include) { + test("Partition-Local-sort_TC018", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s""" @@ -248,18 +248,18 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify data load with range partition with limit 1 - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC019", Include) { + ignore("Partition-Local-sort_TC019", Include) { sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='0,5,10,29')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select * from uniqdata limit 1""", - Seq(Row("CUST_NAME_00003","ACTIVE_EMUI_VERSION_00003",null,null,null,12345678904.0000000000,22345678904.0000000000,1.123456749E10,-1.123456749E10,4,null,5)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC019") + Seq(Row("CUST_NAME_00003","ACTIVE_EMUI_VERSION_00003",null,null,null,12345678904.0000000000,22345678904.0000000000,1.123456749E10,-1.123456749E10,4,null,5)), "partitionTestCase_Partition-Local-sort_TC019") sql(s"""drop table if exists uniqdata""").collect } //Verify data load with range partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC020", Include) { + ignore("Partition-Local-sort_TC020", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='0,5,10,29')""").collect @@ -271,31 +271,31 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify data load with hash partition with limit 1 - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC021", Include) { + ignore("Partition-Local-sort_TC021", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='5')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select * from uniqdata limit 1""", - Seq(Row("CUST_NAME_00003","ACTIVE_EMUI_VERSION_00003",null,null,null,12345678904.0000000000,22345678904.0000000000,1.123456749E10,-1.123456749E10,4,null,5)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC021") + Seq(Row("CUST_NAME_00003","ACTIVE_EMUI_VERSION_00003",null,null,null,12345678904.0000000000,22345678904.0000000000,1.123456749E10,-1.123456749E10,4,null,5)), "partitionTestCase_Partition-Local-sort_TC021") sql(s"""drop table if exists uniqdata""").collect } //Verify data load with hash partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC022", Include) { + ignore("Partition-Local-sort_TC022", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='5')""").collect sql(s"""LOAD DATA INPATH ''$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata limit 1""", - Seq(Row(28)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC022") + Seq(Row(28)), "partitionTestCase_Partition-Local-sort_TC022") sql(s"""drop table if exists uniqdata""").collect } //Verify data load with List partition after compaction - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC023", Include) { + test("Partition-Local-sort_TC023", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect @@ -309,13 +309,13 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table uniqdata compact 'minor'""").collect checkAnswer(s"""select count(*) from uniqdata limit 1""", - Seq(Row(112)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC023") + Seq(Row(112)), "partitionTestCase_Partition-Local-sort_TC023") sql(s"""drop table if exists uniqdata""").collect } //Verify data load with Range partition after compaction - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC024", Include) { + test("Partition-Local-sort_TC024", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='Range', 'RANGE_INFO'='0,5,10,30')""").collect @@ -329,13 +329,13 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table uniqdata compact 'minor'""").collect checkAnswer(s"""select count(*) from uniqdata limit 1""", - Seq(Row(112)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC024") + Seq(Row(112)), "partitionTestCase_Partition-Local-sort_TC024") sql(s"""drop table if exists uniqdata""").collect } //Verify data load with Hash partition after compaction - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC025", Include) { + test("Partition-Local-sort_TC025", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='5')""").collect @@ -349,13 +349,13 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { sql(s"""alter table uniqdata compact 'minor'""").collect checkAnswer(s"""select count(*) from uniqdata limit 1""", - Seq(Row(112)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC025") + Seq(Row(112)), "partitionTestCase_Partition-Local-sort_TC025") sql(s"""drop table if exists uniqdata""").collect } //Verify join operation on List partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC026", Include) { + test("Partition-Local-sort_TC026", Include) { sql(s"""drop table if exists uniqdata1""").collect sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect @@ -372,18 +372,18 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify data when sublist is provided in LIST_INFO - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC028", Include) { + test("Partition-Local-sort_TC028", Include) { sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,(1,2),3')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(28)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC028") + Seq(Row(28)), "partitionTestCase_Partition-Local-sort_TC028") sql(s"""drop table if exists uniqdata""").collect } //Verify exception is thrown if partition column is dropped - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC029", Include) { + test("Partition-Local-sort_TC029", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1') @@ -400,33 +400,33 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify insert is successful on list partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC030", Include) { + ignore("Partition-Local-sort_TC030", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='0,1')""").collect sql(s"""insert into table uniqdata values ('a', '1','2015-07-01 00:00:00', 5678,7654,23.4, 55.6, 7654, 8765,33,'2015-07-01 00:00:00', 1)""").collect sql(s"""insert into table uniqdata values ('a', '1', '2015-07-01 00:00:00', 5678,7654,23.4, 55.6, 7654, 8765,33,'2015-07-01 00:00:00', 0)""").collect checkAnswer(s"""select * from uniqdata""", - Seq(Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",1),Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",0)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC030") + Seq(Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",1),Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",0)), "partitionTestCase_Partition-Local-sort_TC030") sql(s"""drop table if exists uniqdata""").collect } //Verify insert is successful on range partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC031", Include) { + ignore("Partition-Local-sort_TC031", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='0,3,5')""").collect sql(s"""insert into table uniqdata values ('a', '1','2015-07-01 00:00:00', 5678,7654,23.4, 55.6, 7654, 8765,33,'2015-07-01 00:00:00', 1)""").collect sql(s"""insert into table uniqdata values ('a', '1', '2015-07-01 00:00:00', 5678,7654,23.4, 55.6, 7654, 8765,33,'2015-07-01 00:00:00', 0)""").collect checkAnswer(s"""select * from uniqdata""", - Seq(Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",1),Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",0)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC031") + Seq(Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",1),Row("a",1,"2015-07-01 00:00:00.0",5678,7654,23.4000000000,55.6000000000,7654.0,8765.0,33,"2015-07-01 00:00:00.0",0)), "partitionTestCase_Partition-Local-sort_TC031") sql(s"""drop table if exists uniqdata""").collect } //Verify insert is successful on HASH partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC032", Include) { + ignore("Partition-Local-sort_TC032", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='10')""").collect @@ -439,111 +439,111 @@ class PartitionTestCase extends QueryTest with BeforeAndAfterAll { //Verify date with > filter condition and list partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC033", Include) { + test("Partition-Local-sort_TC033", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID>3""", - Seq(Row(4)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC033") + Seq(Row(4)), "partitionTestCase_Partition-Local-sort_TC033") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = filter condition and list partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC034", Include) { + test("Partition-Local-sort_TC034", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=3""", - Seq(Row(8)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC034") + Seq(Row(8)), "partitionTestCase_Partition-Local-sort_TC034") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = value not in list_info and list partition - test("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC035", Include) { + test("Partition-Local-sort_TC035", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=10""", - Seq(Row(0)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC035") + Seq(Row(0)), "partitionTestCase_Partition-Local-sort_TC035") sql(s"""drop table if exists uniqdata""").collect } //Verify date with > filter condition and range partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC036", Include) { + ignore("Partition-Local-sort_TC036", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID>3""", - Seq(Row(4)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC036") + Seq(Row(4)), "partitionTestCase_Partition-Local-sort_TC036") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = filter condition and list partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC037", Include) { + ignore("Partition-Local-sort_TC037", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=3""", - Seq(Row(8)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC037") + Seq(Row(8)), "partitionTestCase_Partition-Local-sort_TC037") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = value not in list_info and list partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC038", Include) { + ignore("Partition-Local-sort_TC038", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='RANGE', 'RANGE_INFO'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=10""", - Seq(Row(0)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC038") + Seq(Row(0)), "partitionTestCase_Partition-Local-sort_TC038") sql(s"""drop table if exists uniqdata""").collect } //Verify date with > filter condition and hash partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC039", Include) { + ignore("Partition-Local-sort_TC039", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID>3""", - Seq(Row(4)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC039") + Seq(Row(4)), "partitionTestCase_Partition-Local-sort_TC039") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = filter condition and hash partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC040", Include) { + ignore("Partition-Local-sort_TC040", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='1,0,3,4')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/partition/2000_UniqData_partition.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'BAD_RECORDS_ACTION'='FORCE','QUOTECHAR'='"','FILEHEADER'='CUST_NAME,ACTIVE_EMUI_VERSION,DOB,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,DOJ,CUST_ID')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=3""", - Seq(Row(8)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC040") + Seq(Row(8)), "partitionTestCase_Partition-Local-sort_TC040") sql(s"""drop table if exists uniqdata""").collect } //Verify date with = value not in list_info and hash partition - ignore("SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC041", Include) { + ignore("Partition-Local-sort_TC041", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE uniqdata (CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int, DOJ timestamp) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('PARTITION_TYPE'='HASH', 'NUM_PARTITIONS'='1,0,3,4')""").collect checkAnswer(s"""select count(*) from uniqdata where CUST_ID=10""", - Seq(Row(0)), "partitionTestCase_SR-DataSight-Carbon-Partition-Local-sort-PTS001_TC041") + Seq(Row(0)), "partitionTestCase_Partition-Local-sort_TC041") sql(s"""drop table if exists uniqdata""").collect } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesBasicTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesBasicTestCase.scala index d696ace74fb..362352b73fb 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesBasicTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesBasicTestCase.scala @@ -13075,784 +13075,784 @@ class QueriesBasicTestCase extends QueryTest with BeforeAndAfterAll { } - //VMALL_Per_CreateCube_001 - test("VMALL_Per_CreateCube_001", Include) { - sql(s"""drop table if exists myvmall""").collect - sql(s"""drop table if exists myvmall_hive""").collect + //CreateCube_001 + test("CreateCube_001", Include) { + sql(s"""drop table if exists pushupfilter""").collect + sql(s"""drop table if exists pushupfilter_hive""").collect - sql(s"""create table myvmall (imei String,uuid String,MAC String,device_color String,device_shell_color String,device_name String,product_name String,ram String,rom String,cpu_clock String,series String,check_date String,check_year int,check_month int ,check_day int,check_hour int,bom String,inside_name String,packing_date String,packing_year String,packing_month String,packing_day String,packing_hour String,customer_name String,deliveryAreaId String,deliveryCountry String,deliveryProvince String,deliveryCity String,deliveryDistrict String,packing_list_no String,order_no String,Active_check_time String,Active_check_year int,Active_check_month int,Active_check_day int,Active_check_hour int,ActiveAreaId String,ActiveCountry String,ActiveProvince String,Activecity String,ActiveDistrict String,Active_network String,Active_firmware_version String,Active_emui_version String,Active_os_version String,Latest_check_time String,Latest_check_year int,Latest_check_month int,Latest_check_day int,Latest_check_hour int,Latest_areaId String,Latest_country String,Latest_province String,Latest_city String,Latest_district String,Latest_firmware_version String,Latest_emui_version String,Latest_os_version String,Latest_network String,site String,site_desc String,product String,product_desc String) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'='check_year,check_month,check_day,check_hour,Active_check_year,Active_check_month,Active_check_day,Active_check_hour,Latest_check_year,Latest_check_month,Latest_check_day')""").collect + sql(s"""create table pushupfilter (imei String,uuid String,MAC String,device_color String,device_shell_color String,device_name String,product_name String,ram String,rom String,cpu_clock String,series String,check_date String,check_year int,check_month int ,check_day int,check_hour int,bom String,inside_name String,packing_date String,packing_year String,packing_month String,packing_day String,packing_hour String,customer_name String,deliveryAreaId String,deliveryCountry String,deliveryProvince String,deliveryCity String,deliveryDistrict String,packing_list_no String,order_no String,Active_check_time String,Active_check_year int,Active_check_month int,Active_check_day int,Active_check_hour int,ActiveAreaId String,ActiveCountry String,ActiveProvince String,Activecity String,ActiveDistrict String,Active_network String,Active_firmware_version String,Active_emui_version String,Active_os_version String,Latest_check_time String,Latest_check_year int,Latest_check_month int,Latest_check_day int,Latest_check_hour int,Latest_areaId String,Latest_country String,Latest_province String,Latest_city String,Latest_district String,Latest_firmware_version String,Latest_emui_version String,Latest_os_version String,Latest_network String,site String,site_desc String,product String,product_desc String) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'='check_year,check_month,check_day,check_hour,Active_check_year,Active_check_month,Active_check_day,Active_check_hour,Latest_check_year,Latest_check_month,Latest_check_day')""").collect - sql(s"""create table myvmall_hive (imei String,uuid String,MAC String,device_color String,device_shell_color String,device_name String,product_name String,ram String,rom String,cpu_clock String,series String,check_date String,check_year int,check_month int ,check_day int,check_hour int,bom String,inside_name String,packing_date String,packing_year String,packing_month String,packing_day String,packing_hour String,customer_name String,deliveryAreaId String,deliveryCountry String,deliveryProvince String,deliveryCity String,deliveryDistrict String,packing_list_no String,order_no String,Active_check_time String,Active_check_year int,Active_check_month int,Active_check_day int,Active_check_hour int,ActiveAreaId String,ActiveCountry String,ActiveProvince String,Activecity String,ActiveDistrict String,Active_network String,Active_firmware_version String,Active_emui_version String,Active_os_version String,Latest_check_time String,Latest_check_year int,Latest_check_month int,Latest_check_day int,Latest_check_hour int,Latest_areaId String,Latest_country String,Latest_province String,Latest_city String,Latest_district String,Latest_firmware_version String,Latest_emui_version String,Latest_os_version String,Latest_network String,site String,site_desc String,product String,product_desc String)ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect + sql(s"""create table pushupfilter_hive (imei String,uuid String,MAC String,device_color String,device_shell_color String,device_name String,product_name String,ram String,rom String,cpu_clock String,series String,check_date String,check_year int,check_month int ,check_day int,check_hour int,bom String,inside_name String,packing_date String,packing_year String,packing_month String,packing_day String,packing_hour String,customer_name String,deliveryAreaId String,deliveryCountry String,deliveryProvince String,deliveryCity String,deliveryDistrict String,packing_list_no String,order_no String,Active_check_time String,Active_check_year int,Active_check_month int,Active_check_day int,Active_check_hour int,ActiveAreaId String,ActiveCountry String,ActiveProvince String,Activecity String,ActiveDistrict String,Active_network String,Active_firmware_version String,Active_emui_version String,Active_os_version String,Latest_check_time String,Latest_check_year int,Latest_check_month int,Latest_check_day int,Latest_check_hour int,Latest_areaId String,Latest_country String,Latest_province String,Latest_city String,Latest_district String,Latest_firmware_version String,Latest_emui_version String,Latest_os_version String,Latest_network String,site String,site_desc String,product String,product_desc String)ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect } - //VMALL_Per_DataLoad_001 - test("VMALL_Per_DataLoad_001", Include) { + //DataLoad_001 + test("DataLoad_001", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_VMALL_1_Day_DATA_2015-09-15.csv' INTO table myvmall options('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,uuid,MAC,device_color,device_shell_color,device_name,product_name,ram,rom,cpu_clock,series,check_date,check_year,check_month,check_day,check_hour,bom,inside_name,packing_date,packing_year,packing_month,packing_day,packing_hour,customer_name,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,packing_list_no,order_no,Active_check_time,Active_check_year,Active_check_month,Active_check_day,Active_check_hour,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,Active_network,Active_firmware_version,Active_emui_version,Active_os_version,Latest_check_time,Latest_check_year,Latest_check_month,Latest_check_day,Latest_check_hour,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_firmware_version,Latest_emui_version,Latest_os_version,Latest_network,site,site_desc,product,product_desc')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_VMALL_1_Day_DATA_2015-09-15.csv' INTO table pushupfilter options('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,uuid,MAC,device_color,device_shell_color,device_name,product_name,ram,rom,cpu_clock,series,check_date,check_year,check_month,check_day,check_hour,bom,inside_name,packing_date,packing_year,packing_month,packing_day,packing_hour,customer_name,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,packing_list_no,order_no,Active_check_time,Active_check_year,Active_check_month,Active_check_day,Active_check_hour,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,Active_network,Active_firmware_version,Active_emui_version,Active_os_version,Latest_check_time,Latest_check_year,Latest_check_month,Latest_check_day,Latest_check_hour,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_firmware_version,Latest_emui_version,Latest_os_version,Latest_network,site,site_desc,product,product_desc')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_VMALL_1_Day_DATA_2015-09-15.csv' INTO table myvmall_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_VMALL_1_Day_DATA_2015-09-15.csv' INTO table pushupfilter_hive """).collect } - //VMALL_Per_TC_000 - test("VMALL_Per_TC_000", Include) { + //TC_000 + test("TC_000", Include) { - sql(s"""select count(*) from myvmall """).collect + sql(s"""select count(*) from pushupfilter """).collect } - //VMALL_Per_TC_001 - test("VMALL_Per_TC_001", Include) { + //TC_001 + test("TC_001", Include) { - sql(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from myvmall) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""").collect + sql(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""").collect } - //VMALL_Per_TC_002 - test("VMALL_Per_TC_002", Include) { + //TC_002 + test("TC_002", Include) { - checkAnswer(s"""SELECT device_name, product, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall) SUB_QRY GROUP BY device_name, product, product_name ORDER BY device_name ASC, product ASC, product_name ASC""", - s"""SELECT device_name, product, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall_hive) SUB_QRY GROUP BY device_name, product, product_name ORDER BY device_name ASC, product ASC, product_name ASC""", "QueriesBasicTestCase_VMALL_Per_TC_002") + checkAnswer(s"""SELECT device_name, product, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY GROUP BY device_name, product, product_name ORDER BY device_name ASC, product ASC, product_name ASC""", + s"""SELECT device_name, product, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY device_name, product, product_name ORDER BY device_name ASC, product ASC, product_name ASC""", "QueriesBasicTestCase_TC_002") } - //VMALL_Per_TC_003 - test("VMALL_Per_TC_003", Include) { + //TC_003 + test("TC_003", Include) { - checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from myvmall) SUB_QRY where product_name='Huawei4009' GROUP BY product_name ORDER BY product_name ASC""", - s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from myvmall_hive) SUB_QRY where product_name='Huawei4009' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_VMALL_Per_TC_003") + checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY where product_name='Huawei4009' GROUP BY product_name ORDER BY product_name ASC""", + s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter_hive) SUB_QRY where product_name='Huawei4009' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_TC_003") } - //VMALL_Per_TC_004 - test("VMALL_Per_TC_004", Include) { + //TC_004 + test("TC_004", Include) { - checkAnswer(s"""SELECT device_color FROM (select * from myvmall) SUB_QRY GROUP BY device_color ORDER BY device_color ASC""", - s"""SELECT device_color FROM (select * from myvmall_hive) SUB_QRY GROUP BY device_color ORDER BY device_color ASC""", "QueriesBasicTestCase_VMALL_Per_TC_004") + checkAnswer(s"""SELECT device_color FROM (select * from pushupfilter) SUB_QRY GROUP BY device_color ORDER BY device_color ASC""", + s"""SELECT device_color FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY device_color ORDER BY device_color ASC""", "QueriesBasicTestCase_TC_004") } - //VMALL_Per_TC_005 - test("VMALL_Per_TC_005", Include) { + //TC_005 + test("TC_005", Include) { - checkAnswer(s"""SELECT product_name FROM (select * from myvmall) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""", - s"""SELECT product_name FROM (select * from myvmall_hive) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_VMALL_Per_TC_005") + checkAnswer(s"""SELECT product_name FROM (select * from pushupfilter) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""", + s"""SELECT product_name FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_TC_005") } - //VMALL_Per_TC_006 - test("VMALL_Per_TC_006", Include) { + //TC_006 + test("TC_006", Include) { - checkAnswer(s"""SELECT product, COUNT(DISTINCT packing_list_no) AS LONG_COL_0 FROM (select * from myvmall) SUB_QRY GROUP BY product ORDER BY product ASC""", - s"""SELECT product, COUNT(DISTINCT packing_list_no) AS LONG_COL_0 FROM (select * from myvmall_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_006") + checkAnswer(s"""SELECT product, COUNT(DISTINCT packing_list_no) AS LONG_COL_0 FROM (select * from pushupfilter) SUB_QRY GROUP BY product ORDER BY product ASC""", + s"""SELECT product, COUNT(DISTINCT packing_list_no) AS LONG_COL_0 FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_TC_006") } - //VMALL_Per_TC_007 - test("VMALL_Per_TC_007", Include) { + //TC_007 + test("TC_007", Include) { - checkAnswer(s"""select count(distinct imei) DistinctCount_imei from myvmall""", - s"""select count(distinct imei) DistinctCount_imei from myvmall_hive""", "QueriesBasicTestCase_VMALL_Per_TC_007") + checkAnswer(s"""select count(distinct imei) DistinctCount_imei from pushupfilter""", + s"""select count(distinct imei) DistinctCount_imei from pushupfilter_hive""", "QueriesBasicTestCase_TC_007") } - //VMALL_Per_TC_008 - test("VMALL_Per_TC_008", Include) { + //TC_008 + test("TC_008", Include) { - sql(s"""Select count(imei),deliveryCountry from myvmall group by deliveryCountry order by deliveryCountry asc""").collect + sql(s"""Select count(imei),deliveryCountry from pushupfilter group by deliveryCountry order by deliveryCountry asc""").collect } - //VMALL_Per_TC_009 - test("VMALL_Per_TC_009", Include) { + //TC_009 + test("TC_009", Include) { - checkAnswer(s"""select (t1.hnor6emui/t2.totalc)*100 from (select count (Active_emui_version) as hnor6emui from myvmall where Active_emui_version="EmotionUI_2.1")t1,(select count(Active_emui_version) as totalc from myvmall)t2""", - s"""select (t1.hnor6emui/t2.totalc)*100 from (select count (Active_emui_version) as hnor6emui from myvmall_hive where Active_emui_version="EmotionUI_2.1")t1,(select count(Active_emui_version) as totalc from myvmall_hive)t2""", "QueriesBasicTestCase_VMALL_Per_TC_009") + checkAnswer(s"""select (t1.hnor6emui/t2.totalc)*100 from (select count (Active_emui_version) as hnor6emui from pushupfilter where Active_emui_version="EmotionUI_2.1")t1,(select count(Active_emui_version) as totalc from pushupfilter)t2""", + s"""select (t1.hnor6emui/t2.totalc)*100 from (select count (Active_emui_version) as hnor6emui from pushupfilter_hive where Active_emui_version="EmotionUI_2.1")t1,(select count(Active_emui_version) as totalc from pushupfilter_hive)t2""", "QueriesBasicTestCase_TC_009") } - //VMALL_Per_TC_010 - test("VMALL_Per_TC_010", Include) { + //TC_010 + test("TC_010", Include) { - checkAnswer(s"""select (t1.hnor4xi/t2.totalc)*100 from (select count (imei) as hnor4xi from myvmall where device_name="Honor2")t1,(select count (imei) as totalc from myvmall)t2""", - s"""select (t1.hnor4xi/t2.totalc)*100 from (select count (imei) as hnor4xi from myvmall_hive where device_name="Honor2")t1,(select count (imei) as totalc from myvmall_hive)t2""", "QueriesBasicTestCase_VMALL_Per_TC_010") + checkAnswer(s"""select (t1.hnor4xi/t2.totalc)*100 from (select count (imei) as hnor4xi from pushupfilter where device_name="Honor2")t1,(select count (imei) as totalc from pushupfilter)t2""", + s"""select (t1.hnor4xi/t2.totalc)*100 from (select count (imei) as hnor4xi from pushupfilter_hive where device_name="Honor2")t1,(select count (imei) as totalc from pushupfilter_hive)t2""", "QueriesBasicTestCase_TC_010") } - //VMALL_Per_TC_011 - test("VMALL_Per_TC_011", Include) { + //TC_011 + test("TC_011", Include) { - sql(s"""select count(imei) from (select DATEDIFF(from_unixtime(unix_timestamp()),packing_date) mydates,imei from myvmall) sub where mydates<1000""").collect + sql(s"""select count(imei) from (select DATEDIFF(from_unixtime(unix_timestamp()),packing_date) mydates,imei from pushupfilter) sub where mydates<1000""").collect } - //VMALL_Per_TC_012 - test("VMALL_Per_TC_012", Include) { + //TC_012 + test("TC_012", Include) { - checkAnswer(s"""SELECT Active_os_version, count(distinct imei) DistinctCount_imei FROM (select * from myvmall) SUB_QRY GROUP BY Active_os_version ORDER BY Active_os_version ASC""", - s"""SELECT Active_os_version, count(distinct imei) DistinctCount_imei FROM (select * from myvmall_hive) SUB_QRY GROUP BY Active_os_version ORDER BY Active_os_version ASC""", "QueriesBasicTestCase_VMALL_Per_TC_012") + checkAnswer(s"""SELECT Active_os_version, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY GROUP BY Active_os_version ORDER BY Active_os_version ASC""", + s"""SELECT Active_os_version, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY Active_os_version ORDER BY Active_os_version ASC""", "QueriesBasicTestCase_TC_012") } - //VMALL_Per_TC_013 - test("VMALL_Per_TC_013", Include) { + //TC_013 + test("TC_013", Include) { - checkAnswer(s"""select count(imei) DistinctCount_imei from myvmall where (Active_emui_version="EmotionUI_2.972" and Latest_emui_version="EmotionUI_3.863972") OR (Active_emui_version="EmotionUI_2.843" and Latest_emui_version="EmotionUI_3.863843")""", - s"""select count(imei) DistinctCount_imei from myvmall_hive where (Active_emui_version="EmotionUI_2.972" and Latest_emui_version="EmotionUI_3.863972") OR (Active_emui_version="EmotionUI_2.843" and Latest_emui_version="EmotionUI_3.863843")""", "QueriesBasicTestCase_VMALL_Per_TC_013") + checkAnswer(s"""select count(imei) DistinctCount_imei from pushupfilter where (Active_emui_version="EmotionUI_2.972" and Latest_emui_version="EmotionUI_3.863972") OR (Active_emui_version="EmotionUI_2.843" and Latest_emui_version="EmotionUI_3.863843")""", + s"""select count(imei) DistinctCount_imei from pushupfilter_hive where (Active_emui_version="EmotionUI_2.972" and Latest_emui_version="EmotionUI_3.863972") OR (Active_emui_version="EmotionUI_2.843" and Latest_emui_version="EmotionUI_3.863843")""", "QueriesBasicTestCase_TC_013") } - //VMALL_Per_TC_014 - test("VMALL_Per_TC_014", Include) { + //TC_014 + test("TC_014", Include) { - checkAnswer(s"""select count(imei) as imeicount from myvmall where (Active_os_version='Android 4.4.3' and Active_emui_version='EmotionUI_2.3')or (Active_os_version='Android 4.4.2' and Active_emui_version='EmotionUI_2.2')""", - s"""select count(imei) as imeicount from myvmall_hive where (Active_os_version='Android 4.4.3' and Active_emui_version='EmotionUI_2.3')or (Active_os_version='Android 4.4.2' and Active_emui_version='EmotionUI_2.2')""", "QueriesBasicTestCase_VMALL_Per_TC_014") + checkAnswer(s"""select count(imei) as imeicount from pushupfilter where (Active_os_version='Android 4.4.3' and Active_emui_version='EmotionUI_2.3')or (Active_os_version='Android 4.4.2' and Active_emui_version='EmotionUI_2.2')""", + s"""select count(imei) as imeicount from pushupfilter_hive where (Active_os_version='Android 4.4.3' and Active_emui_version='EmotionUI_2.3')or (Active_os_version='Android 4.4.2' and Active_emui_version='EmotionUI_2.2')""", "QueriesBasicTestCase_TC_014") } - //VMALL_Per_TC_B015 - test("VMALL_Per_TC_B015", Include) { + //TC_B015 + test("TC_B015", Include) { - sql(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM myvmall GROUP BY product ORDER BY product ASC""").collect + sql(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM pushupfilter GROUP BY product ORDER BY product ASC""").collect } - //VMALL_Per_TC_B016 - test("VMALL_Per_TC_B016", Include) { + //TC_B016 + test("TC_B016", Include) { - checkAnswer(s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", - s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall_hive) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", "QueriesBasicTestCase_VMALL_Per_TC_B016") + checkAnswer(s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", + s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", "QueriesBasicTestCase_TC_B016") } - //VMALL_Per_TC_B017 - test("VMALL_Per_TC_B017", Include) { + //TC_B017 + test("TC_B017", Include) { - checkAnswer(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from myvmall) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", - s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from myvmall_hive) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_B017") + checkAnswer(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", + s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter_hive) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_TC_B017") } - //VMALL_Per_TC_B018 - test("VMALL_Per_TC_B018", Include) { + //TC_B018 + test("TC_B018", Include) { - checkAnswer(s"""SELECT Active_emui_version FROM (select * from myvmall) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", - s"""SELECT Active_emui_version FROM (select * from myvmall_hive) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", "QueriesBasicTestCase_VMALL_Per_TC_B018") + checkAnswer(s"""SELECT Active_emui_version FROM (select * from pushupfilter) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", + s"""SELECT Active_emui_version FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", "QueriesBasicTestCase_TC_B018") } - //VMALL_Per_TC_B019 - test("VMALL_Per_TC_B019", Include) { + //TC_B019 + test("TC_B019", Include) { - checkAnswer(s"""SELECT product FROM (select * from myvmall) SUB_QRY GROUP BY product ORDER BY product ASC""", - s"""SELECT product FROM (select * from myvmall_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_B019") + checkAnswer(s"""SELECT product FROM (select * from pushupfilter) SUB_QRY GROUP BY product ORDER BY product ASC""", + s"""SELECT product FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_TC_B019") } - //VMALL_Per_TC_B020 - test("VMALL_Per_TC_B020", Include) { + //TC_B020 + test("TC_B020", Include) { - checkAnswer(s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from myvmall) SUB_QRY GROUP BY product ORDER BY product ASC""", - s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from myvmall_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_B020") + checkAnswer(s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from pushupfilter) SUB_QRY GROUP BY product ORDER BY product ASC""", + s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from pushupfilter_hive) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_TC_B020") } - //VMALL_Per_TC_015 - test("VMALL_Per_TC_015", Include) { + //TC_015 + test("TC_015", Include) { - sql(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM myvmall GROUP BY product ORDER BY product ASC""").collect + sql(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM pushupfilter GROUP BY product ORDER BY product ASC""").collect } - //VMALL_Per_TC_016 - test("VMALL_Per_TC_016", Include) { + //Perf_TC_016 + test("Perf_TC_016", Include) { - checkAnswer(s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall ) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", - s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from myvmall_hive ) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", "QueriesBasicTestCase_VMALL_Per_TC_016") + checkAnswer(s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter ) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", + s"""SELECT Active_emui_version, product, product_desc, COUNT(DISTINCT imei) AS DistinctCount_imei FROM (select * from pushupfilter_hive ) SUB_QRY GROUP BY Active_emui_version, product, product_desc ORDER BY Active_emui_version ASC, product ASC, product_desc ASC""", "QueriesBasicTestCase_Perf_TC_016") } - //VMALL_Per_TC_017 - test("VMALL_Per_TC_017", Include) { + //Perf_TC_017 + test("Perf_TC_017", Include) { - checkAnswer(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from myvmall ) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", - s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from myvmall_hive ) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_017") + checkAnswer(s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter ) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", + s"""SELECT product, count(distinct imei) DistinctCount_imei FROM (select * from pushupfilter_hive ) SUB_QRY where product='SmartPhone_3998' GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_Perf_TC_017") } - //VMALL_Per_TC_018 - test("VMALL_Per_TC_018", Include) { + //Perf_TC_018 + test("Perf_TC_018", Include) { - checkAnswer(s"""SELECT Active_emui_version FROM (select * from myvmall ) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", - s"""SELECT Active_emui_version FROM (select * from myvmall_hive ) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", "QueriesBasicTestCase_VMALL_Per_TC_018") + checkAnswer(s"""SELECT Active_emui_version FROM (select * from pushupfilter ) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", + s"""SELECT Active_emui_version FROM (select * from pushupfilter_hive ) SUB_QRY GROUP BY Active_emui_version ORDER BY Active_emui_version ASC""", "QueriesBasicTestCase_Perf_TC_018") } - //VMALL_Per_TC_019 - test("VMALL_Per_TC_019", Include) { + //Perf_TC_019 + test("Perf_TC_019", Include) { - checkAnswer(s"""SELECT product FROM (select * from myvmall ) SUB_QRY GROUP BY product ORDER BY product ASC""", - s"""SELECT product FROM (select * from myvmall_hive ) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_019") + checkAnswer(s"""SELECT product FROM (select * from pushupfilter ) SUB_QRY GROUP BY product ORDER BY product ASC""", + s"""SELECT product FROM (select * from pushupfilter_hive ) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_Perf_TC_019") } - //VMALL_Per_TC_020 - test("VMALL_Per_TC_020", Include) { + //Perf_TC_020 + test("Perf_TC_020", Include) { - checkAnswer(s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from myvmall ) SUB_QRY GROUP BY product ORDER BY product ASC""", - s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from myvmall_hive ) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_VMALL_Per_TC_020") + checkAnswer(s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from pushupfilter ) SUB_QRY GROUP BY product ORDER BY product ASC""", + s"""SELECT product, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM (select * from pushupfilter_hive ) SUB_QRY GROUP BY product ORDER BY product ASC""", "QueriesBasicTestCase_Perf_TC_020") } - //VMALL_Per_TC_021 - test("VMALL_Per_TC_021", Include) { + //Perf_TC_021 + test("Perf_TC_021", Include) { - checkAnswer(s"""SELECT imei,device_name DistinctCount_imei FROM (select * from myvmall ) SUB_QRY where device_name='Honor63011' and product_name='Huawei3011'""", - s"""SELECT imei,device_name DistinctCount_imei FROM (select * from myvmall_hive ) SUB_QRY where device_name='Honor63011' and product_name='Huawei3011'""", "QueriesBasicTestCase_VMALL_Per_TC_021") + checkAnswer(s"""SELECT imei,device_name DistinctCount_imei FROM (select * from pushupfilter ) SUB_QRY where device_name='Honor63011' and product_name='Huawei3011'""", + s"""SELECT imei,device_name DistinctCount_imei FROM (select * from pushupfilter_hive ) SUB_QRY where device_name='Honor63011' and product_name='Huawei3011'""", "QueriesBasicTestCase_Perf_TC_021") } - //VMALL_Per_TC_022 - test("VMALL_Per_TC_022", Include) { + //Perf_TC_022 + test("Perf_TC_022", Include) { - checkAnswer(s"""SELECT imei,device_name DistinctCount_imei FROM (select * from myvmall ) SUB_QRY where imei='imeiA009863011' or imei='imeiA009863012'""", - s"""SELECT imei,device_name DistinctCount_imei FROM (select * from myvmall_hive ) SUB_QRY where imei='imeiA009863011' or imei='imeiA009863012'""", "QueriesBasicTestCase_VMALL_Per_TC_022") + checkAnswer(s"""SELECT imei,device_name DistinctCount_imei FROM (select * from pushupfilter ) SUB_QRY where imei='imeiA009863011' or imei='imeiA009863012'""", + s"""SELECT imei,device_name DistinctCount_imei FROM (select * from pushupfilter_hive ) SUB_QRY where imei='imeiA009863011' or imei='imeiA009863012'""", "QueriesBasicTestCase_Perf_TC_022") } - //VMALL_Per_TC_023 - test("VMALL_Per_TC_023", Include) { + //Perf_TC_023 + test("Perf_TC_023", Include) { - checkAnswer(s"""SELECT count(imei) as distinct_imei,series FROM (select * from myvmall ) SUB_QRY where series LIKE 'series1%' group by series""", - s"""SELECT count(imei) as distinct_imei,series FROM (select * from myvmall_hive ) SUB_QRY where series LIKE 'series1%' group by series""", "QueriesBasicTestCase_VMALL_Per_TC_023") + checkAnswer(s"""SELECT count(imei) as distinct_imei,series FROM (select * from pushupfilter ) SUB_QRY where series LIKE 'series1%' group by series""", + s"""SELECT count(imei) as distinct_imei,series FROM (select * from pushupfilter_hive ) SUB_QRY where series LIKE 'series1%' group by series""", "QueriesBasicTestCase_Perf_TC_023") } - //VMALL_Per_TC_024 - test("VMALL_Per_TC_024", Include) { + //Perf_TC_024 + test("Perf_TC_024", Include) { - checkAnswer(s"""select product_name, count(distinct imei) as imei_number from myvmall where imei='imeiA009863017' group by product_name""", - s"""select product_name, count(distinct imei) as imei_number from myvmall_hive where imei='imeiA009863017' group by product_name""", "QueriesBasicTestCase_VMALL_Per_TC_024") + checkAnswer(s"""select product_name, count(distinct imei) as imei_number from pushupfilter where imei='imeiA009863017' group by product_name""", + s"""select product_name, count(distinct imei) as imei_number from pushupfilter_hive where imei='imeiA009863017' group by product_name""", "QueriesBasicTestCase_Perf_TC_024") } - //VMALL_Per_TC_025 - test("VMALL_Per_TC_025", Include) { + //TPerf_C_025 + test("Perf_TC_025", Include) { - checkAnswer(s"""select product_name, count(distinct imei) as imei_number from myvmall where deliveryAreaId ='500280121000000_9863017' group by product_name order by imei_number desc""", - s"""select product_name, count(distinct imei) as imei_number from myvmall_hive where deliveryAreaId ='500280121000000_9863017' group by product_name order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_025") + checkAnswer(s"""select product_name, count(distinct imei) as imei_number from pushupfilter where deliveryAreaId ='500280121000000_9863017' group by product_name order by imei_number desc""", + s"""select product_name, count(distinct imei) as imei_number from pushupfilter_hive where deliveryAreaId ='500280121000000_9863017' group by product_name order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_025") } - //VMALL_Per_TC_026 - test("VMALL_Per_TC_026", Include) { + //Perf_TC_026 + test("Perf_TC_026", Include) { - checkAnswer(s"""select deliveryCity, count(distinct imei) as imei_number from myvmall where deliveryCity='deliveryCity17' group by deliveryCity order by imei_number desc""", - s"""select deliveryCity, count(distinct imei) as imei_number from myvmall_hive where deliveryCity='deliveryCity17' group by deliveryCity order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_026") + checkAnswer(s"""select deliveryCity, count(distinct imei) as imei_number from pushupfilter where deliveryCity='deliveryCity17' group by deliveryCity order by imei_number desc""", + s"""select deliveryCity, count(distinct imei) as imei_number from pushupfilter_hive where deliveryCity='deliveryCity17' group by deliveryCity order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_026") } - //VMALL_Per_TC_027 - test("VMALL_Per_TC_027", Include) { + //Perf_TC_027 + test("Perf_TC_027", Include) { - checkAnswer(s"""select device_color, count(distinct imei) as imei_number from myvmall where bom='51090576_63017' group by device_color order by imei_number desc""", - s"""select device_color, count(distinct imei) as imei_number from myvmall_hive where bom='51090576_63017' group by device_color order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_027") + checkAnswer(s"""select device_color, count(distinct imei) as imei_number from pushupfilter where bom='51090576_63017' group by device_color order by imei_number desc""", + s"""select device_color, count(distinct imei) as imei_number from pushupfilter_hive where bom='51090576_63017' group by device_color order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_027") } - //VMALL_Per_TC_028 - test("VMALL_Per_TC_028", Include) { + //Perf_TC_028 + test("Perf_TC_028", Include) { - checkAnswer(s"""select product_name, count(distinct imei) as imei_number from myvmall where product_name='Huawei3017' group by product_name order by imei_number desc""", - s"""select product_name, count(distinct imei) as imei_number from myvmall_hive where product_name='Huawei3017' group by product_name order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_028") + checkAnswer(s"""select product_name, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3017' group by product_name order by imei_number desc""", + s"""select product_name, count(distinct imei) as imei_number from pushupfilter_hive where product_name='Huawei3017' group by product_name order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_028") } - //VMALL_Per_TC_029 - test("VMALL_Per_TC_029", Include) { + //TPerf_C_029 + test("Perf_TC_029", Include) { - checkAnswer(s"""select product_name, count(distinct imei) as imei_number from myvmall where deliveryprovince='Province_17' group by product_name order by product_name desc""", - s"""select product_name, count(distinct imei) as imei_number from myvmall_hive where deliveryprovince='Province_17' group by product_name order by product_name desc""", "QueriesBasicTestCase_VMALL_Per_TC_029") + checkAnswer(s"""select product_name, count(distinct imei) as imei_number from pushupfilter where deliveryprovince='Province_17' group by product_name order by product_name desc""", + s"""select product_name, count(distinct imei) as imei_number from pushupfilter_hive where deliveryprovince='Province_17' group by product_name order by product_name desc""", "QueriesBasicTestCase_Perf_TC_029") } - //VMALL_Per_TC_030 - test("VMALL_Per_TC_030", Include) { + //Perf_TC_030 + test("Perf_TC_030", Include) { - checkAnswer(s"""select rom,cpu_clock, count(distinct imei) as imei_number from myvmall where deliveryprovince='Province_17' group by rom,cpu_clock order by rom,cpu_clock, imei_number""", - s"""select rom,cpu_clock, count(distinct imei) as imei_number from myvmall_hive where deliveryprovince='Province_17' group by rom,cpu_clock order by rom,cpu_clock,imei_number""", "QueriesBasicTestCase_VMALL_Per_TC_030") + checkAnswer(s"""select rom,cpu_clock, count(distinct imei) as imei_number from pushupfilter where deliveryprovince='Province_17' group by rom,cpu_clock order by rom,cpu_clock, imei_number""", + s"""select rom,cpu_clock, count(distinct imei) as imei_number from pushupfilter_hive where deliveryprovince='Province_17' group by rom,cpu_clock order by rom,cpu_clock,imei_number""", "QueriesBasicTestCase_Perf_TC_030") } - //VMALL_Per_TC_031 - test("VMALL_Per_TC_031", Include) { + //Perf_TC_031 + test("Perf_TC_031", Include) { - checkAnswer(s"""select uuid,mac,device_color,count(distinct imei) from myvmall where imei='imeiA009863017' and deliveryareaid='500280121000000_9863017' group by uuid,mac,device_color""", - s"""select uuid,mac,device_color,count(distinct imei) from myvmall_hive where imei='imeiA009863017' and deliveryareaid='500280121000000_9863017' group by uuid,mac,device_color""", "QueriesBasicTestCase_VMALL_Per_TC_031") + checkAnswer(s"""select uuid,mac,device_color,count(distinct imei) from pushupfilter where imei='imeiA009863017' and deliveryareaid='500280121000000_9863017' group by uuid,mac,device_color""", + s"""select uuid,mac,device_color,count(distinct imei) from pushupfilter_hive where imei='imeiA009863017' and deliveryareaid='500280121000000_9863017' group by uuid,mac,device_color""", "QueriesBasicTestCase_Perf_TC_031") } - //VMALL_Per_TC_032 - test("VMALL_Per_TC_032", Include) { + //Perf_TC_032 + test("Perf_TC_032", Include) { - checkAnswer(s"""select device_color,count(distinct imei)as imei_number from myvmall where product_name='Huawei3987' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863987' group by device_color order by imei_number desc""", - s"""select device_color,count(distinct imei)as imei_number from myvmall_hive where product_name='Huawei3987' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863987' group by device_color order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_032") + checkAnswer(s"""select device_color,count(distinct imei)as imei_number from pushupfilter where product_name='Huawei3987' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863987' group by device_color order by imei_number desc""", + s"""select device_color,count(distinct imei)as imei_number from pushupfilter_hive where product_name='Huawei3987' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863987' group by device_color order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_032") } - //VMALL_Per_TC_033 - test("VMALL_Per_TC_033", Include) { + //Perf_TC_033 + test("Perf_TC_033", Include) { - checkAnswer(s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall where product_name='Huawei3993' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863993' group by product_name,device_color order by imei_number desc""", - s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall_hive where product_name='Huawei3993' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863993' group by product_name,device_color order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_033") + checkAnswer(s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3993' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863993' group by product_name,device_color order by imei_number desc""", + s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter_hive where product_name='Huawei3993' and Active_firmware_version='H60-L01V100R001CHNC00B121SP0_863993' group by product_name,device_color order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_033") } - //VMALL_Per_TC_034 - test("VMALL_Per_TC_034", Include) { + //Perf_TC_034 + test("Perf_TC_034", Include) { - sql(s"""select device_color, count(distinct imei) as imei_number from myvmall where product_name='Huawei3972' and deliveryprovince='Province_472' group by device_color order by imei_number desc""").collect + sql(s"""select device_color, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3972' and deliveryprovince='Province_472' group by device_color order by imei_number desc""").collect } - //VMALL_Per_TC_035 - test("VMALL_Per_TC_035", Include) { + //Perf_TC_035 + test("Perf_TC_035", Include) { - sql(s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall where product_name='Huawei3972' and deliveryprovince='Province_472' group by product_name,device_color order by imei_number desc""").collect + sql(s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3972' and deliveryprovince='Province_472' group by product_name,device_color order by imei_number desc""").collect } - //VMALL_Per_TC_036 - test("VMALL_Per_TC_036", Include) { + //Perf_TC_036 + test("Perf_TC_036", Include) { - sql(s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' group by product_name,device_color order by imei_number desc""").collect + sql(s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' group by product_name,device_color order by imei_number desc""").collect } - //VMALL_Per_TC_037 - test("VMALL_Per_TC_037", Include) { + //Perf_TC_037 + test("Perf_TC_037", Include) { - checkAnswer(s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' and device_color='black3987' group by product_name,device_color order by imei_number desc""", - s"""select product_name,device_color, count(distinct imei) as imei_number from myvmall_hive where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' and device_color='black3987' group by product_name,device_color order by imei_number desc""", "QueriesBasicTestCase_VMALL_Per_TC_037") + checkAnswer(s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' and device_color='black3987' group by product_name,device_color order by imei_number desc""", + s"""select product_name,device_color, count(distinct imei) as imei_number from pushupfilter_hive where product_name='Huawei3987' and deliveryprovince='Province_487' and deliverycity='deliveryCity487' and device_color='black3987' group by product_name,device_color order by imei_number desc""", "QueriesBasicTestCase_Perf_TC_037") } - //VMALL_Per_TC_038 - test("VMALL_Per_TC_038", Include) { + //Perf_TC_038 + test("Perf_TC_038", Include) { - sql(s"""select Latest_network, count(distinct imei) as imei_number from myvmall group by Latest_network""").collect + sql(s"""select Latest_network, count(distinct imei) as imei_number from pushupfilter group by Latest_network""").collect } - //VMALL_Per_TC_039 - test("VMALL_Per_TC_039", Include) { + //Perf_TC_039 + test("Perf_TC_039", Include) { - sql(s"""select device_name, count(distinct imei) as imei_number from myvmall group by device_name""").collect + sql(s"""select device_name, count(distinct imei) as imei_number from pushupfilter group by device_name""").collect } - //VMALL_Per_TC_040 - test("VMALL_Per_TC_040", Include) { + //Perf_TC_040 + test("Perf_TC_040", Include) { - checkAnswer(s"""select product_name, count(distinct imei) as imei_number from myvmall group by product_name""", - s"""select product_name, count(distinct imei) as imei_number from myvmall_hive group by product_name""", "QueriesBasicTestCase_VMALL_Per_TC_040") + checkAnswer(s"""select product_name, count(distinct imei) as imei_number from pushupfilter group by product_name""", + s"""select product_name, count(distinct imei) as imei_number from pushupfilter_hive group by product_name""", "QueriesBasicTestCase_Perf_TC_040") } - //VMALL_Per_TC_041 - test("VMALL_Per_TC_041", Include) { + //Perf_TC_041 + test("Perf_TC_041", Include) { - checkAnswer(s"""select deliverycity, count(distinct imei) as imei_number from myvmall group by deliverycity""", - s"""select deliverycity, count(distinct imei) as imei_number from myvmall_hive group by deliverycity""", "QueriesBasicTestCase_VMALL_Per_TC_041") + checkAnswer(s"""select deliverycity, count(distinct imei) as imei_number from pushupfilter group by deliverycity""", + s"""select deliverycity, count(distinct imei) as imei_number from pushupfilter_hive group by deliverycity""", "QueriesBasicTestCase_Perf_TC_041") } - //VMALL_Per_TC_042 - test("VMALL_Per_TC_042", Include) { + //Perf_TC_042 + test("Perf_TC_042", Include) { - checkAnswer(s"""select device_name, deliverycity,count(distinct imei) as imei_number from myvmall group by device_name,deliverycity """, - s"""select device_name, deliverycity,count(distinct imei) as imei_number from myvmall_hive group by device_name,deliverycity """, "QueriesBasicTestCase_VMALL_Per_TC_042") + checkAnswer(s"""select device_name, deliverycity,count(distinct imei) as imei_number from pushupfilter group by device_name,deliverycity """, + s"""select device_name, deliverycity,count(distinct imei) as imei_number from pushupfilter_hive group by device_name,deliverycity """, "QueriesBasicTestCase_Perf_TC_042") } - //VMALL_Per_TC_043 - test("VMALL_Per_TC_043", Include) { + //Perf_TC_043 + test("Perf_TC_043", Include) { - checkAnswer(s"""select product_name, device_name, count(distinct imei) as imei_number from myvmall group by product_name,device_name """, - s"""select product_name, device_name, count(distinct imei) as imei_number from myvmall_hive group by product_name,device_name """, "QueriesBasicTestCase_VMALL_Per_TC_043") + checkAnswer(s"""select product_name, device_name, count(distinct imei) as imei_number from pushupfilter group by product_name,device_name """, + s"""select product_name, device_name, count(distinct imei) as imei_number from pushupfilter_hive group by product_name,device_name """, "QueriesBasicTestCase_Perf_TC_043") } - //VMALL_Per_TC_044 - test("VMALL_Per_TC_044", Include) { + //Perf_TC_044 + test("Perf_TC_044", Include) { - checkAnswer(s"""select product_name,deliverycity, count(distinct imei) as imei_number from myvmall group by deliverycity,product_name""", - s"""select product_name,deliverycity, count(distinct imei) as imei_number from myvmall_hive group by deliverycity,product_name""", "QueriesBasicTestCase_VMALL_Per_TC_044") + checkAnswer(s"""select product_name,deliverycity, count(distinct imei) as imei_number from pushupfilter group by deliverycity,product_name""", + s"""select product_name,deliverycity, count(distinct imei) as imei_number from pushupfilter_hive group by deliverycity,product_name""", "QueriesBasicTestCase_Perf_TC_044") } - //VMALL_Per_TC_045 - test("VMALL_Per_TC_045", Include) { + //Perf_TC_045 + test("Perf_TC_045", Include) { checkAnswer( - s"""select product_name,deliverycity, count(distinct imei) as imei_number from myvmall group by deliverycity,product_name""", - s"""select product_name,deliverycity, count(distinct imei) as imei_number from myvmall_hive group by deliverycity,product_name""", + s"""select product_name,deliverycity, count(distinct imei) as imei_number from pushupfilter group by deliverycity,product_name""", + s"""select product_name,deliverycity, count(distinct imei) as imei_number from pushupfilter_hive group by deliverycity,product_name""", - "QueriesBasicTestCase_VMALL_Per_TC_045") + "QueriesBasicTestCase_TC_045") } - //VMALL_Per_TC_046 - test("VMALL_Per_TC_046", Include) { + //Perf_TC_046 + test("Perf_TC_046", Include) { - checkAnswer(s"""select check_day,check_hour, count(distinct imei) as imei_number from myvmall group by check_day,check_hour""", - s"""select check_day,check_hour, count(distinct imei) as imei_number from myvmall_hive group by check_day,check_hour""", "QueriesBasicTestCase_VMALL_Per_TC_046") + checkAnswer(s"""select check_day,check_hour, count(distinct imei) as imei_number from pushupfilter group by check_day,check_hour""", + s"""select check_day,check_hour, count(distinct imei) as imei_number from pushupfilter_hive group by check_day,check_hour""", "QueriesBasicTestCase_Perf_TC_046") } - //VMALL_Per_TC_047 - test("VMALL_Per_TC_047", Include) { + //Perf_TC_047 + test("Perf_TC_047", Include) { - sql(s"""select device_color,product_name, count(distinct imei) as imei_number from myvmall group by device_color,product_name order by product_name limit 1000""").collect + sql(s"""select device_color,product_name, count(distinct imei) as imei_number from pushupfilter group by device_color,product_name order by product_name limit 1000""").collect } - //VMALL_Per_TC_048 - test("VMALL_Per_TC_048", Include) { + //Perf_TC_048 + test("Perf_TC_048", Include) { - sql(s"""select packing_hour,deliveryCity,device_color,count(distinct imei) as imei_number from myvmall group by packing_hour,deliveryCity,device_color order by deliveryCity limit 1000""").collect + sql(s"""select packing_hour,deliveryCity,device_color,count(distinct imei) as imei_number from pushupfilter group by packing_hour,deliveryCity,device_color order by deliveryCity limit 1000""").collect } - //VMALL_Per_TC_049 - test("VMALL_Per_TC_049", Include) { + //Perf_TC_049 + test("Perf_TC_049", Include) { - sql(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM myvmall GROUP BY product_name ORDER BY product_name ASC""").collect + sql(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM pushupfilter GROUP BY product_name ORDER BY product_name ASC""").collect } - //VMALL_Per_TC_050 - test("VMALL_Per_TC_050", Include) { + //Perf_TC_050 + test("Perf_TC_050", Include) { - checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM myvmall SUB_QRY where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", - s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM myvmall_hive SUB_QRY where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_VMALL_Per_TC_050") + checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM pushupfilter SUB_QRY where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", + s"""SELECT product_name, count(distinct imei) DistinctCount_imei FROM pushupfilter_hive SUB_QRY where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_Perf_TC_050") } - //VMALL_Per_TC_051 - test("VMALL_Per_TC_051", Include) { + //Perf_TC_051 + test("Perf_TC_051", Include) { - sql(s"""SELECT device_color, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM myvmall GROUP BY device_color, product_name ORDER BY device_color ASC, product_name ASC""").collect + sql(s"""SELECT device_color, product_name, COUNT(DISTINCT imei) AS DistinctCount_imei FROM pushupfilter GROUP BY device_color, product_name ORDER BY device_color ASC, product_name ASC""").collect } - //VMALL_Per_TC_052 - test("VMALL_Per_TC_052", Include) { + //Perf_TC_052 + test("Perf_TC_052", Include) { - checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei from myvmall where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", - s"""SELECT product_name, count(distinct imei) DistinctCount_imei from myvmall_hive where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_VMALL_Per_TC_052") + checkAnswer(s"""SELECT product_name, count(distinct imei) DistinctCount_imei from pushupfilter where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", + s"""SELECT product_name, count(distinct imei) DistinctCount_imei from pushupfilter_hive where product_name='Huawei3987' GROUP BY product_name ORDER BY product_name ASC""", "QueriesBasicTestCase_Perf_TC_052") } - //VMALL_Per_TC_053 - test("VMALL_Per_TC_053", Include) { + //TPerf_C_053 + test("Perf_TC_053", Include) { - sql(s"""SELECT product_name FROM myvmall SUB_QRY GROUP BY product_name ORDER BY product_name ASC""").collect + sql(s"""SELECT product_name FROM pushupfilter SUB_QRY GROUP BY product_name ORDER BY product_name ASC""").collect } - //VMALL_Per_TC_054 - test("VMALL_Per_TC_054", Include) { + //Perf_TC_054 + test("Perf_TC_054", Include) { - sql(s"""SELECT product_name, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM myvmall GROUP BY product_name ORDER BY product_name ASC""").collect + sql(s"""SELECT product_name, COUNT(DISTINCT Active_emui_version) AS LONG_COL_0 FROM pushupfilter GROUP BY product_name ORDER BY product_name ASC""").collect } - //PushUP_FILTER_myvmall_TC001 - test("PushUP_FILTER_myvmall_TC001", Include) { + //PushUP_FILTER_TC001 + test("PushUP_FILTER_TC001", Include) { - checkAnswer(s"""select check_year,check_month from myvmall where check_year=2015 or check_month=9 or check_hour=-1""", - s"""select check_year,check_month from myvmall_hive where check_year=2015 or check_month=9 or check_hour=-1""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC001") + checkAnswer(s"""select check_year,check_month from pushupfilter where check_year=2015 or check_month=9 or check_hour=-1""", + s"""select check_year,check_month from pushupfilter_hive where check_year=2015 or check_month=9 or check_hour=-1""", "QueriesBasicTestCase_PushUP_FILTER_TC001") } - //PushUP_FILTER_myvmall_TC002 - test("PushUP_FILTER_myvmall_TC002", Include) { + //PushUP_FILTER_TC002 + test("PushUP_FILTER_TC002", Include) { - checkAnswer(s"""select check_year,check_month from myvmall where check_year=2015 and check_month=9 and check_hour=-1""", - s"""select check_year,check_month from myvmall_hive where check_year=2015 and check_month=9 and check_hour=-1""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC002") + checkAnswer(s"""select check_year,check_month from pushupfilter where check_year=2015 and check_month=9 and check_hour=-1""", + s"""select check_year,check_month from pushupfilter_hive where check_year=2015 and check_month=9 and check_hour=-1""", "QueriesBasicTestCase_PushUP_FILTER_TC002") } - //PushUP_FILTER_myvmall_TC003 - test("PushUP_FILTER_myvmall_TC003", Include) { + //PushUP_FILTER_TC003 + test("PushUP_FILTER_TC003", Include) { - checkAnswer(s"""select imei from myvmall where (imei =='imeiA009863011') and (check_year== 2015) and (check_month==9) and (check_day==15)""", - s"""select imei from myvmall_hive where (imei =='imeiA009863011') and (check_year== 2015) and (check_month==9) and (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC003") + checkAnswer(s"""select imei from pushupfilter where (imei =='imeiA009863011') and (check_year== 2015) and (check_month==9) and (check_day==15)""", + s"""select imei from pushupfilter_hive where (imei =='imeiA009863011') and (check_year== 2015) and (check_month==9) and (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_TC003") } - //PushUP_FILTER_myvmall_TC004 - test("PushUP_FILTER_myvmall_TC004", Include) { + //PushUP_FILTER_TC004 + test("PushUP_FILTER_TC004", Include) { - checkAnswer(s"""select imei from myvmall where (imei =='imeiA009863011') or (check_year== 2015) or (check_month==9) or (check_day==15)""", - s"""select imei from myvmall_hive where (imei =='imeiA009863011') or (check_year== 2015) or (check_month==9) or (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC004") + checkAnswer(s"""select imei from pushupfilter where (imei =='imeiA009863011') or (check_year== 2015) or (check_month==9) or (check_day==15)""", + s"""select imei from pushupfilter_hive where (imei =='imeiA009863011') or (check_year== 2015) or (check_month==9) or (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_TC004") } - //PushUP_FILTER_myvmall_TC005 - test("PushUP_FILTER_myvmall_TC005", Include) { + //PushUP_FILTER_TC005 + test("PushUP_FILTER_TC005", Include) { - checkAnswer(s"""select imei from myvmall where (imei =='imeiA009863011') or (check_year== 2015) and (check_month==9) or (check_day==15)""", - s"""select imei from myvmall_hive where (imei =='imeiA009863011') or (check_year== 2015) and (check_month==9) or (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC005") + checkAnswer(s"""select imei from pushupfilter where (imei =='imeiA009863011') or (check_year== 2015) and (check_month==9) or (check_day==15)""", + s"""select imei from pushupfilter_hive where (imei =='imeiA009863011') or (check_year== 2015) and (check_month==9) or (check_day==15)""", "QueriesBasicTestCase_PushUP_FILTER_TC005") } - //PushUP_FILTER_myvmall_TC006 - test("PushUP_FILTER_myvmall_TC006", Include) { + //PushUP_FILTER_TC006 + test("PushUP_FILTER_TC006", Include) { - checkAnswer(s"""select imei from myvmall where (imei !='imeiA009863015') and (check_year != 2016) and (check_month!=10) and (check_day!=15)""", - s"""select imei from myvmall_hive where (imei !='imeiA009863015') and (check_year != 2016) and (check_month!=10) and (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC006") + checkAnswer(s"""select imei from pushupfilter where (imei !='imeiA009863015') and (check_year != 2016) and (check_month!=10) and (check_day!=15)""", + s"""select imei from pushupfilter_hive where (imei !='imeiA009863015') and (check_year != 2016) and (check_month!=10) and (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_TC006") } - //PushUP_FILTER_myvmall_TC007 - test("PushUP_FILTER_myvmall_TC007", Include) { + //PushUP_FILTER_TC007 + test("PushUP_FILTER_TC007", Include) { - checkAnswer(s"""select imei from myvmall where (imei !='imeiA009863015') or (check_year != 2016) or (check_month!=10) or (check_day!=15)""", - s"""select imei from myvmall_hive where (imei !='imeiA009863015') or (check_year != 2016) or (check_month!=10) or (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC007") + checkAnswer(s"""select imei from pushupfilter where (imei !='imeiA009863015') or (check_year != 2016) or (check_month!=10) or (check_day!=15)""", + s"""select imei from pushupfilter_hive where (imei !='imeiA009863015') or (check_year != 2016) or (check_month!=10) or (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_TC007") } - //PushUP_FILTER_myvmall_TC008 - test("PushUP_FILTER_myvmall_TC008", Include) { + //PushUP_FILTER_TC008 + test("PushUP_FILTER_TC008", Include) { - checkAnswer(s"""select imei from myvmall where (imei !='imeiA009863015') or (check_year != 2016) and (check_month!=10) or (check_day!=15)""", - s"""select imei from myvmall_hive where (imei !='imeiA009863015') or (check_year != 2016) and (check_month!=10) or (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC008") + checkAnswer(s"""select imei from pushupfilter where (imei !='imeiA009863015') or (check_year != 2016) and (check_month!=10) or (check_day!=15)""", + s"""select imei from pushupfilter_hive where (imei !='imeiA009863015') or (check_year != 2016) and (check_month!=10) or (check_day!=15)""", "QueriesBasicTestCase_PushUP_FILTER_TC008") } - //PushUP_FILTER_myvmall_TC009 - test("PushUP_FILTER_myvmall_TC009", Include) { + //PushUP_FILTER_TC009 + test("PushUP_FILTER_TC009", Include) { - checkAnswer(s"""select imei,check_year,check_month from myvmall where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL and activedistrict IS NOT NULL""", - s"""select imei,check_year,check_month from myvmall_hive where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL and activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC009") + checkAnswer(s"""select imei,check_year,check_month from pushupfilter where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL and activedistrict IS NOT NULL""", + s"""select imei,check_year,check_month from pushupfilter_hive where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL and activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_TC009") } - //PushUP_FILTER_myvmall_TC010 - test("PushUP_FILTER_myvmall_TC010", Include) { + //PushUP_FILTER_TC010 + test("PushUP_FILTER_TC010", Include) { - checkAnswer(s"""select imei,check_year,check_month from myvmall where active_firmware_version IS NOT NULL or activeareaid IS NOT NULL or activedistrict IS NOT NULL""", - s"""select imei,check_year,check_month from myvmall_hive where active_firmware_version IS NOT NULL or activeareaid IS NOT NULL or activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC010") + checkAnswer(s"""select imei,check_year,check_month from pushupfilter where active_firmware_version IS NOT NULL or activeareaid IS NOT NULL or activedistrict IS NOT NULL""", + s"""select imei,check_year,check_month from pushupfilter_hive where active_firmware_version IS NOT NULL or activeareaid IS NOT NULL or activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_TC010") } - //PushUP_FILTER_myvmall_TC011 - test("PushUP_FILTER_myvmall_TC011", Include) { + //PushUP_FILTER_TC011 + test("PushUP_FILTER_TC011", Include) { - checkAnswer(s"""select imei,check_year,check_month from myvmall where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL or activedistrict IS NOT NULL""", - s"""select imei,check_year,check_month from myvmall_hive where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL or activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC011") + checkAnswer(s"""select imei,check_year,check_month from pushupfilter where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL or activedistrict IS NOT NULL""", + s"""select imei,check_year,check_month from pushupfilter_hive where active_firmware_version IS NOT NULL and activeareaid IS NOT NULL or activedistrict IS NOT NULL""", "QueriesBasicTestCase_PushUP_FILTER_TC011") } - //PushUP_FILTER_myvmall_TC012 - test("PushUP_FILTER_myvmall_TC012", Include) { + //PushUP_FILTER_TC012 + test("PushUP_FILTER_TC012", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where myvmall.latest_check_hour NOT IN (1,10) and myvmall.imei NOT IN ('imeiA009945257','imeiA009945258') and myvmall.check_year NOT IN (2014,2016)""", - s"""select imei,latest_check_hour from myvmall_hive where myvmall_hive.latest_check_hour NOT IN (1,10) and myvmall_hive.imei NOT IN ('imeiA009945257','imeiA009945258') and myvmall_hive.check_year NOT IN (2014,2016)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC012") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where pushupfilter.latest_check_hour NOT IN (1,10) and pushupfilter.imei NOT IN ('imeiA009945257','imeiA009945258') and pushupfilter.check_year NOT IN (2014,2016)""", + s"""select imei,latest_check_hour from pushupfilter_hive where pushupfilter_hive.latest_check_hour NOT IN (1,10) and pushupfilter_hive.imei NOT IN ('imeiA009945257','imeiA009945258') and pushupfilter_hive.check_year NOT IN (2014,2016)""", "QueriesBasicTestCase_PushUP_FILTER_TC012") } - //PushUP_FILTER_myvmall_TC013 - test("PushUP_FILTER_myvmall_TC013", Include) { + //PushUP_FILTER_TC013 + test("PushUP_FILTER_TC013", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where myvmall.latest_check_hour IN (10,14) and myvmall.imei IN ('imeiA009945257','imeiA009945258') and myvmall.check_year IN (2015)""", - s"""select imei,latest_check_hour from myvmall_hive where myvmall_hive.latest_check_hour IN (10,14) and myvmall_hive.imei IN ('imeiA009945257','imeiA009945258') and myvmall_hive.check_year IN (2015)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC013") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where pushupfilter.latest_check_hour IN (10,14) and pushupfilter.imei IN ('imeiA009945257','imeiA009945258') and pushupfilter.check_year IN (2015)""", + s"""select imei,latest_check_hour from pushupfilter_hive where pushupfilter_hive.latest_check_hour IN (10,14) and pushupfilter_hive.imei IN ('imeiA009945257','imeiA009945258') and pushupfilter_hive.check_year IN (2015)""", "QueriesBasicTestCase_PushUP_FILTER_TC013") } - //PushUP_FILTER_myvmall_TC014 - test("PushUP_FILTER_myvmall_TC014", Include) { + //PushUP_FILTER_TC014 + test("PushUP_FILTER_TC014", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where myvmall.latest_check_hour NOT IN (1,10) and myvmall.imei NOT IN ('imeiA009945257','imeiA009945258') and myvmall.check_year IN (2015)""", - s"""select imei,latest_check_hour from myvmall_hive where myvmall_hive.latest_check_hour NOT IN (1,10) and myvmall_hive.imei NOT IN ('imeiA009945257','imeiA009945258') and myvmall_hive.check_year IN (2015)""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC014") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where pushupfilter.latest_check_hour NOT IN (1,10) and pushupfilter.imei NOT IN ('imeiA009945257','imeiA009945258') and pushupfilter.check_year IN (2015)""", + s"""select imei,latest_check_hour from pushupfilter_hive where pushupfilter_hive.latest_check_hour NOT IN (1,10) and pushupfilter_hive.imei NOT IN ('imeiA009945257','imeiA009945258') and pushupfilter_hive.check_year IN (2015)""", "QueriesBasicTestCase_PushUP_FILTER_TC014") } - //PushUP_FILTER_myvmall_TC015 - test("PushUP_FILTER_myvmall_TC015", Include) { + //PushUP_FILTER_TC015 + test("PushUP_FILTER_TC015", Include) { - checkAnswer(s"""select imei,latest_check_hour+0.1, Latest_check_year+10,Latest_check_month+9999999999.999 from myvmall""", - s"""select imei,latest_check_hour+0.1, Latest_check_year+10,Latest_check_month+9999999999.999 from myvmall_hive""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC015") + checkAnswer(s"""select imei,latest_check_hour+0.1, Latest_check_year+10,Latest_check_month+9999999999.999 from pushupfilter""", + s"""select imei,latest_check_hour+0.1, Latest_check_year+10,Latest_check_month+9999999999.999 from pushupfilter_hive""", "QueriesBasicTestCase_PushUP_FILTER_TC015") } - //PushUP_FILTER_myvmall_TC016 - test("PushUP_FILTER_myvmall_TC016", Include) { + //PushUP_FILTER_TC016 + test("PushUP_FILTER_TC016", Include) { - checkAnswer(s"""select imei,latest_check_hour-0.99, Latest_check_year-91,Latest_check_month-9999999999.999 from myvmall""", - s"""select imei,latest_check_hour-0.99, Latest_check_year-91,Latest_check_month-9999999999.999 from myvmall_hive""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC016") + checkAnswer(s"""select imei,latest_check_hour-0.99, Latest_check_year-91,Latest_check_month-9999999999.999 from pushupfilter""", + s"""select imei,latest_check_hour-0.99, Latest_check_year-91,Latest_check_month-9999999999.999 from pushupfilter_hive""", "QueriesBasicTestCase_PushUP_FILTER_TC016") } - //PushUP_FILTER_myvmall_TC017 - test("PushUP_FILTER_myvmall_TC017", Include) { + //PushUP_FILTER_TC017 + test("PushUP_FILTER_TC017", Include) { - checkAnswer(s"""select imei,latest_check_hour*0.99, Latest_check_year*91,Latest_check_month*9999999999.999 from myvmall""", - s"""select imei,latest_check_hour*0.99, Latest_check_year*91,Latest_check_month*9999999999.999 from myvmall_hive""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC017") + checkAnswer(s"""select imei,latest_check_hour*0.99, Latest_check_year*91,Latest_check_month*9999999999.999 from pushupfilter""", + s"""select imei,latest_check_hour*0.99, Latest_check_year*91,Latest_check_month*9999999999.999 from pushupfilter_hive""", "QueriesBasicTestCase_PushUP_FILTER_TC017") } - //PushUP_FILTER_myvmall_TC018 - test("PushUP_FILTER_myvmall_TC018", Include) { + //PushUP_FILTER_TC018 + test("PushUP_FILTER_TC018", Include) { - checkAnswer(s"""select imei,latest_check_hour/0.99, Latest_check_year/91,Latest_check_month/9999999999.999 from myvmall""", - s"""select imei,latest_check_hour/0.99, Latest_check_year/91,Latest_check_month/9999999999.999 from myvmall_hive""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC018") + checkAnswer(s"""select imei,latest_check_hour/0.99, Latest_check_year/91,Latest_check_month/9999999999.999 from pushupfilter""", + s"""select imei,latest_check_hour/0.99, Latest_check_year/91,Latest_check_month/9999999999.999 from pushupfilter_hive""", "QueriesBasicTestCase_PushUP_FILTER_TC018") } - //PushUP_FILTER_myvmall_TC019 - test("PushUP_FILTER_myvmall_TC019", Include) { + //PushUP_FILTER_TC019 + test("PushUP_FILTER_TC019", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where latest_check_hour >10 and check_year >2014 and check_month >8""", - s"""select imei,latest_check_hour from myvmall_hive where latest_check_hour >10 and check_year >2014 and check_month >8""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC019") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where latest_check_hour >10 and check_year >2014 and check_month >8""", + s"""select imei,latest_check_hour from pushupfilter_hive where latest_check_hour >10 and check_year >2014 and check_month >8""", "QueriesBasicTestCase_PushUP_FILTER_TC019") } - //PushUP_FILTER_myvmall_TC020 - test("PushUP_FILTER_myvmall_TC020", Include) { + //PushUP_FILTER_TC020 + test("PushUP_FILTER_TC020", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where latest_check_hour <15 and check_year <2016 and check_month <10""", - s"""select imei,latest_check_hour from myvmall_hive where latest_check_hour <15 and check_year <2016 and check_month <10""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC020") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where latest_check_hour <15 and check_year <2016 and check_month <10""", + s"""select imei,latest_check_hour from pushupfilter_hive where latest_check_hour <15 and check_year <2016 and check_month <10""", "QueriesBasicTestCase_PushUP_FILTER_TC020") } - //PushUP_FILTER_myvmall_TC021 - test("PushUP_FILTER_myvmall_TC021", Include) { + //PushUP_FILTER_TC021 + test("PushUP_FILTER_TC021", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where latest_check_hour >=8 and check_year >=2014 and check_month >=1""", - s"""select imei,latest_check_hour from myvmall_hive where latest_check_hour >=8 and check_year >=2014 and check_month >=1""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC021") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where latest_check_hour >=8 and check_year >=2014 and check_month >=1""", + s"""select imei,latest_check_hour from pushupfilter_hive where latest_check_hour >=8 and check_year >=2014 and check_month >=1""", "QueriesBasicTestCase_PushUP_FILTER_TC021") } - //PushUP_FILTER_myvmall_TC022 - test("PushUP_FILTER_myvmall_TC022", Include) { + //PushUP_FILTER_TC022 + test("PushUP_FILTER_TC022", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where latest_check_hour <=15 and check_year <=2016 and check_month <=10""", - s"""select imei,latest_check_hour from myvmall_hive where latest_check_hour <=15 and check_year <=2016 and check_month <=10""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC022") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where latest_check_hour <=15 and check_year <=2016 and check_month <=10""", + s"""select imei,latest_check_hour from pushupfilter_hive where latest_check_hour <=15 and check_year <=2016 and check_month <=10""", "QueriesBasicTestCase_PushUP_FILTER_TC022") } - //PushUP_FILTER_myvmall_TC023 - test("PushUP_FILTER_myvmall_TC023", Include) { + //PushUP_FILTER_TC023 + test("PushUP_FILTER_TC023", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where check_year LIKE 2015 and check_day LIKE 15 and check_month LIKE 9""", - s"""select imei,latest_check_hour from myvmall_hive where check_year LIKE 2015 and check_day LIKE 15 and check_month LIKE 9""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC023") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where check_year LIKE 2015 and check_day LIKE 15 and check_month LIKE 9""", + s"""select imei,latest_check_hour from pushupfilter_hive where check_year LIKE 2015 and check_day LIKE 15 and check_month LIKE 9""", "QueriesBasicTestCase_PushUP_FILTER_TC023") } - //PushUP_FILTER_myvmall_TC024 - test("PushUP_FILTER_myvmall_TC024", Include) { + //PushUP_FILTER_TC024 + test("PushUP_FILTER_TC024", Include) { - checkAnswer(s"""select imei,latest_check_hour from myvmall where check_year NOT LIKE 2014 and check_day NOT LIKE 14 and check_month NOT LIKE 10""", - s"""select imei,latest_check_hour from myvmall_hive where check_year NOT LIKE 2014 and check_day NOT LIKE 14 and check_month NOT LIKE 10""", "QueriesBasicTestCase_PushUP_FILTER_myvmall_TC024") + checkAnswer(s"""select imei,latest_check_hour from pushupfilter where check_year NOT LIKE 2014 and check_day NOT LIKE 14 and check_month NOT LIKE 10""", + s"""select imei,latest_check_hour from pushupfilter_hive where check_year NOT LIKE 2014 and check_day NOT LIKE 14 and check_month NOT LIKE 10""", "QueriesBasicTestCase_PushUP_FILTER_TC024") } override def afterAll { sql("drop table if exists Carbon_automation1") sql("drop table if exists Carbon_automation1_hive") - sql("drop table if exists myvmall") - sql("drop table if exists myvmall_hive") + sql("drop table if exists pushupfilter") + sql("drop table if exists pushupfilter_hive") sql("drop table if exists Carbon_automation") sql("drop table if exists Carbon_automation_hive") sql("drop table if exists uniqdata_1000mb") diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesCompactionTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesCompactionTestCase.scala index 5d9a3ee73af..13115ff81e0 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesCompactionTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesCompactionTestCase.scala @@ -28,6775 +28,6775 @@ import org.scalatest.BeforeAndAfterAll class QueriesCompactionTestCase extends QueryTest with BeforeAndAfterAll { - //Comp_VMALL_DICTIONARY_INCLUDE_CreateCube - test("Comp_VMALL_DICTIONARY_INCLUDE_CreateCube", Include) { - sql(s"""drop table if exists Comp_VMALL_DICTIONARY_INCLUDE""").collect - sql(s"""drop table if exists Comp_VMALL_DICTIONARY_INCLUDE_hive""").collect + //Comp_DICTIONARY_INCLUDE_CreateCube + test("Comp_DICTIONARY_INCLUDE_CreateCube", Include) { + sql(s"""drop table if exists Comp_DICTIONARY_INCLUDE""").collect + sql(s"""drop table if exists Comp_DICTIONARY_INCLUDE_hive""").collect - sql(s"""create table Comp_VMALL_DICTIONARY_INCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='imei,deviceInformationId,productionDate,gamePointId,Latest_DAY,contractNumber') + sql(s"""create table Comp_DICTIONARY_INCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='imei,deviceInformationId,productionDate,gamePointId,Latest_DAY,contractNumber') """).collect - sql(s"""create table Comp_VMALL_DICTIONARY_INCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect + sql(s"""create table Comp_DICTIONARY_INCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad1 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad1", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad1 + test("Comp_DICTIONARY_INCLUDE_DataLoad1", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad2 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad2", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad2 + test("Comp_DICTIONARY_INCLUDE_DataLoad2", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad3 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad3", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad3 + test("Comp_DICTIONARY_INCLUDE_DataLoad3", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad4 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad4", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad4 + test("Comp_DICTIONARY_INCLUDE_DataLoad4", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad5 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad5", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad5 + test("Comp_DICTIONARY_INCLUDE_DataLoad5", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad6 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad6", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad6 + test("Comp_DICTIONARY_INCLUDE_DataLoad6", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad7 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad7", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad7 + test("Comp_DICTIONARY_INCLUDE_DataLoad7", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad8 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad8", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad8 + test("Comp_DICTIONARY_INCLUDE_DataLoad8", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad9 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad9", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad9 + test("Comp_DICTIONARY_INCLUDE_DataLoad9", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad10 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad10", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad10 + test("Comp_DICTIONARY_INCLUDE_DataLoad10", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad11 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad11", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad11 + test("Comp_DICTIONARY_INCLUDE_DataLoad11", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad12 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad12", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad12 + test("Comp_DICTIONARY_INCLUDE_DataLoad12", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad13 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad13", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad13 + test("Comp_DICTIONARY_INCLUDE_DataLoad13", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad14 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad14", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad14 + test("Comp_DICTIONARY_INCLUDE_DataLoad14", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad15 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad15", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad15 + test("Comp_DICTIONARY_INCLUDE_DataLoad15", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad16 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad16", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad16 + test("Comp_DICTIONARY_INCLUDE_DataLoad16", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad17 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad17", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad17 + test("Comp_DICTIONARY_INCLUDE_DataLoad17", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad18 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad18", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad18 + test("Comp_DICTIONARY_INCLUDE_DataLoad18", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad19 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad19", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad19 + test("Comp_DICTIONARY_INCLUDE_DataLoad19", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_DataLoad20 - test("Comp_VMALL_DICTIONARY_INCLUDE_DataLoad20", Include) { + //Comp_DICTIONARY_INCLUDE_DataLoad20 + test("Comp_DICTIONARY_INCLUDE_DataLoad20", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_INCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_INCLUDE_MajorCompaction - test("Comp_VMALL_DICTIONARY_INCLUDE_MajorCompaction", Include) { + //Comp_DICTIONARY_INCLUDE_MajorCompaction + test("Comp_DICTIONARY_INCLUDE_MajorCompaction", Include) { - sql(s"""alter table Comp_VMALL_DICTIONARY_INCLUDE compact 'Major'""").collect + sql(s"""alter table Comp_DICTIONARY_INCLUDE compact 'Major'""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_CreateCube - test("Comp_VMALL_DICTIONARY_EXCLUDE_CreateCube", Include) { - sql(s"""drop table if exists Comp_VMALL_DICTIONARY_EXCLUDE""").collect - sql(s"""drop table if exists Comp_VMALL_DICTIONARY_EXCLUDE_hive""").collect + //Comp_DICTIONARY_EXCLUDE_CreateCube + test("Comp_DICTIONARY_EXCLUDE_CreateCube", Include) { + sql(s"""drop table if exists Comp_DICTIONARY_EXCLUDE""").collect + sql(s"""drop table if exists Comp_DICTIONARY_EXCLUDE_hive""").collect - sql(s"""create table Comp_VMALL_DICTIONARY_EXCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect + sql(s"""create table Comp_DICTIONARY_EXCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect - sql(s"""create table Comp_VMALL_DICTIONARY_EXCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect + sql(s"""create table Comp_DICTIONARY_EXCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad1 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad1", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad1 + test("Comp_DICTIONARY_EXCLUDE_DataLoad1", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad2 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad2", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad2 + test("Comp_DICTIONARY_EXCLUDE_DataLoad2", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad3 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad3", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad3 + test("Comp_DICTIONARY_EXCLUDE_DataLoad3", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad4 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad4", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad4 + test("Comp_DICTIONARY_EXCLUDE_DataLoad4", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad5 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad5", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad5 + test("Comp_DICTIONARY_EXCLUDE_DataLoad5", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad6 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad6", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad6 + test("Comp_DICTIONARY_EXCLUDE_DataLoad6", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad7 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad7", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad7 + test("Comp_DICTIONARY_EXCLUDE_DataLoad7", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad8 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad8", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad8 + test("Comp_DICTIONARY_EXCLUDE_DataLoad8", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad9 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad9", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad9 + test("Comp_DICTIONARY_EXCLUDE_DataLoad9", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad10 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad10", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad10 + test("Comp_DICTIONARY_EXCLUDE_DataLoad10", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad11 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad11", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad11 + test("Comp_DICTIONARY_EXCLUDE_DataLoad11", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad12 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad12", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad12 + test("Comp_DICTIONARY_EXCLUDE_DataLoad12", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad13 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad13", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad13 + test("Comp_DICTIONARY_EXCLUDE_DataLoad13", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad14 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad14", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad14 + test("Comp_DICTIONARY_EXCLUDE_DataLoad14", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad15 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad15", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad15 + test("Comp_DICTIONARY_EXCLUDE_DataLoad15", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad16 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad16", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad16 + test("Comp_DICTIONARY_EXCLUDE_DataLoad16", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad17 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad17", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad17 + test("Comp_DICTIONARY_EXCLUDE_DataLoad17", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad18 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad18", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad18 + test("Comp_DICTIONARY_EXCLUDE_DataLoad18", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad19 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad19", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad19 + test("Comp_DICTIONARY_EXCLUDE_DataLoad19", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE', 'FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad20 - test("Comp_VMALL_DICTIONARY_EXCLUDE_DataLoad20", Include) { + //Comp_DICTIONARY_EXCLUDE_DataLoad20 + test("Comp_DICTIONARY_EXCLUDE_DataLoad20", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_VMALL_DICTIONARY_EXCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table Comp_DICTIONARY_EXCLUDE_hive """).collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_MinorCompaction - test("Comp_VMALL_DICTIONARY_EXCLUDE_MinorCompaction", Include) { + //Comp_DICTIONARY_EXCLUDE_MinorCompaction + test("Comp_DICTIONARY_EXCLUDE_MinorCompaction", Include) { - sql(s"""alter table Comp_VMALL_DICTIONARY_EXCLUDE compact 'Minor'""").collect + sql(s"""alter table Comp_DICTIONARY_EXCLUDE compact 'Minor'""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_001 - test("Comp_VMALL_DICTIONARY_INCLUDE_001", Include) { + //Comp_DICTIONARY_INCLUDE_001 + test("Comp_DICTIONARY_INCLUDE_001", Include) { - checkAnswer(s"""Select count(imei) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""Select count(imei) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_001") + checkAnswer(s"""Select count(imei) from Comp_DICTIONARY_INCLUDE""", + s"""Select count(imei) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_001") } - //Comp_VMALL_DICTIONARY_INCLUDE_002 - test("Comp_VMALL_DICTIONARY_INCLUDE_002", Include) { + //Comp_DICTIONARY_INCLUDE_002 + test("Comp_DICTIONARY_INCLUDE_002", Include) { - checkAnswer(s"""select count(DISTINCT imei) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT imei) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_002") + checkAnswer(s"""select count(DISTINCT imei) as a from Comp_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT imei) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_002") } - //Comp_VMALL_DICTIONARY_INCLUDE_003 - test("Comp_VMALL_DICTIONARY_INCLUDE_003", Include) { + //Comp_DICTIONARY_INCLUDE_003 + test("Comp_DICTIONARY_INCLUDE_003", Include) { - checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from Comp_VMALL_DICTIONARY_INCLUDE group by imei order by imei""", - s"""select sum(Latest_month)+10 as a ,imei from Comp_VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_003") + checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from Comp_DICTIONARY_INCLUDE group by imei order by imei""", + s"""select sum(Latest_month)+10 as a ,imei from Comp_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_003") } - //Comp_VMALL_DICTIONARY_INCLUDE_004 - test("Comp_VMALL_DICTIONARY_INCLUDE_004", Include) { + //Comp_DICTIONARY_INCLUDE_004 + test("Comp_DICTIONARY_INCLUDE_004", Include) { - checkAnswer(s"""select max(imei),min(imei) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select max(imei),min(imei) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_004") + checkAnswer(s"""select max(imei),min(imei) from Comp_DICTIONARY_INCLUDE""", + s"""select max(imei),min(imei) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_004") } - //Comp_VMALL_DICTIONARY_INCLUDE_005 - test("Comp_VMALL_DICTIONARY_INCLUDE_005", Include) { + //Comp_DICTIONARY_INCLUDE_005 + test("Comp_DICTIONARY_INCLUDE_005", Include) { - checkAnswer(s"""select min(imei), max(imei) Total from Comp_VMALL_DICTIONARY_INCLUDE group by channelsId order by Total""", - s"""select min(imei), max(imei) Total from Comp_VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_005") + checkAnswer(s"""select min(imei), max(imei) Total from Comp_DICTIONARY_INCLUDE group by channelsId order by Total""", + s"""select min(imei), max(imei) Total from Comp_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_005") } - //Comp_VMALL_DICTIONARY_INCLUDE_006 - test("Comp_VMALL_DICTIONARY_INCLUDE_006", Include) { + //Comp_DICTIONARY_INCLUDE_006 + test("Comp_DICTIONARY_INCLUDE_006", Include) { - checkAnswer(s"""select last(imei) a from Comp_VMALL_DICTIONARY_INCLUDE group by imei order by imei limit 1""", - s"""select last(imei) a from Comp_VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei limit 1""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_006") + checkAnswer(s"""select last(imei) a from Comp_DICTIONARY_INCLUDE group by imei order by imei limit 1""", + s"""select last(imei) a from Comp_DICTIONARY_INCLUDE_hive group by imei order by imei limit 1""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_006") } - //Comp_VMALL_DICTIONARY_INCLUDE_007 - test("Comp_VMALL_DICTIONARY_INCLUDE_007", Include) { + //Comp_DICTIONARY_INCLUDE_007 + test("Comp_DICTIONARY_INCLUDE_007", Include) { - sql(s"""select FIRST(imei) a from Comp_VMALL_DICTIONARY_INCLUDE group by imei order by imei limit 1""").collect + sql(s"""select FIRST(imei) a from Comp_DICTIONARY_INCLUDE group by imei order by imei limit 1""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_008 - test("Comp_VMALL_DICTIONARY_INCLUDE_008", Include) { + //Comp_DICTIONARY_INCLUDE_008 + test("Comp_DICTIONARY_INCLUDE_008", Include) { - checkAnswer(s"""select imei,count(imei) a from Comp_VMALL_DICTIONARY_INCLUDE group by imei order by imei""", - s"""select imei,count(imei) a from Comp_VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_008") + checkAnswer(s"""select imei,count(imei) a from Comp_DICTIONARY_INCLUDE group by imei order by imei""", + s"""select imei,count(imei) a from Comp_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_008") } - //Comp_VMALL_DICTIONARY_INCLUDE_009 - test("Comp_VMALL_DICTIONARY_INCLUDE_009", Include) { + //Comp_DICTIONARY_INCLUDE_009 + test("Comp_DICTIONARY_INCLUDE_009", Include) { - checkAnswer(s"""select Lower(imei) a from Comp_VMALL_DICTIONARY_INCLUDE order by imei""", - s"""select Lower(imei) a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_009") + checkAnswer(s"""select Lower(imei) a from Comp_DICTIONARY_INCLUDE order by imei""", + s"""select Lower(imei) a from Comp_DICTIONARY_INCLUDE_hive order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_009") } - //Comp_VMALL_DICTIONARY_INCLUDE_010 - test("Comp_VMALL_DICTIONARY_INCLUDE_010", Include) { + //Comp_DICTIONARY_INCLUDE_010 + test("Comp_DICTIONARY_INCLUDE_010", Include) { - checkAnswer(s"""select distinct imei from Comp_VMALL_DICTIONARY_INCLUDE order by imei""", - s"""select distinct imei from Comp_VMALL_DICTIONARY_INCLUDE_hive order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_010") + checkAnswer(s"""select distinct imei from Comp_DICTIONARY_INCLUDE order by imei""", + s"""select distinct imei from Comp_DICTIONARY_INCLUDE_hive order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_010") } - //Comp_VMALL_DICTIONARY_INCLUDE_011 - test("Comp_VMALL_DICTIONARY_INCLUDE_011", Include) { + //Comp_DICTIONARY_INCLUDE_011 + test("Comp_DICTIONARY_INCLUDE_011", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE order by imei limit 101 """, - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive order by imei limit 101 """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_011") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE order by imei limit 101 """, + s"""select imei from Comp_DICTIONARY_INCLUDE_hive order by imei limit 101 """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_011") } - //Comp_VMALL_DICTIONARY_INCLUDE_012 - test("Comp_VMALL_DICTIONARY_INCLUDE_012", Include) { + //Comp_DICTIONARY_INCLUDE_012 + test("Comp_DICTIONARY_INCLUDE_012", Include) { - checkAnswer(s"""select imei as a from Comp_VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select imei as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_012") + checkAnswer(s"""select imei as a from Comp_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select imei as a from Comp_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_012") } - //Comp_VMALL_DICTIONARY_INCLUDE_013 - test("Comp_VMALL_DICTIONARY_INCLUDE_013", Include) { + //Comp_DICTIONARY_INCLUDE_013 + test("Comp_DICTIONARY_INCLUDE_013", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_013") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_013") } - //Comp_VMALL_DICTIONARY_INCLUDE_014 - test("Comp_VMALL_DICTIONARY_INCLUDE_014", Include) { + //Comp_DICTIONARY_INCLUDE_014 + test("Comp_DICTIONARY_INCLUDE_014", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei !='1AA100064' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_014") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei !='1AA100064' order by imei""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_014") } - //Comp_VMALL_DICTIONARY_INCLUDE_015 - test("Comp_VMALL_DICTIONARY_INCLUDE_015", Include) { + //Comp_DICTIONARY_INCLUDE_015 + test("Comp_DICTIONARY_INCLUDE_015", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_015") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_015") } - //Comp_VMALL_DICTIONARY_INCLUDE_016 - test("Comp_VMALL_DICTIONARY_INCLUDE_016", Include) { + //Comp_DICTIONARY_INCLUDE_016 + test("Comp_DICTIONARY_INCLUDE_016", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei !='1AA100012' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_016") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei !='1AA100012' order by imei""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_016") } - //Comp_VMALL_DICTIONARY_INCLUDE_017 - test("Comp_VMALL_DICTIONARY_INCLUDE_017", Include) { + //Comp_DICTIONARY_INCLUDE_017 + test("Comp_DICTIONARY_INCLUDE_017", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei >'1AA100012' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_017") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei >'1AA100012' order by imei""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_017") } - //Comp_VMALL_DICTIONARY_INCLUDE_018 - test("Comp_VMALL_DICTIONARY_INCLUDE_018", Include) { + //Comp_DICTIONARY_INCLUDE_018 + test("Comp_DICTIONARY_INCLUDE_018", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei<>imei""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei<>imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_018") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei<>imei""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei<>imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_018") } - //Comp_VMALL_DICTIONARY_INCLUDE_019 - test("Comp_VMALL_DICTIONARY_INCLUDE_019", Include) { + //Comp_DICTIONARY_INCLUDE_019 + test("Comp_DICTIONARY_INCLUDE_019", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei != Latest_areaId order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_019") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei != Latest_areaId order by imei""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_019") } - //Comp_VMALL_DICTIONARY_INCLUDE_020 - test("Comp_VMALL_DICTIONARY_INCLUDE_020", Include) { + //Comp_DICTIONARY_INCLUDE_020 + test("Comp_DICTIONARY_INCLUDE_020", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId9223372047700 order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_070") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber >9223372047700 order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_070") } - //Comp_VMALL_DICTIONARY_INCLUDE_071 - test("Comp_VMALL_DICTIONARY_INCLUDE_071", Include) { + //Comp_DICTIONARY_INCLUDE_071 + test("Comp_DICTIONARY_INCLUDE_071", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber<>contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber<>contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_071") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber<>contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber<>contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_071") } - //Comp_VMALL_DICTIONARY_INCLUDE_072 - test("Comp_VMALL_DICTIONARY_INCLUDE_072", Include) { + //Comp_DICTIONARY_INCLUDE_072 + test("Comp_DICTIONARY_INCLUDE_072", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber != Latest_areaId order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_072") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber != Latest_areaId order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_072") } - //Comp_VMALL_DICTIONARY_INCLUDE_073 - test("Comp_VMALL_DICTIONARY_INCLUDE_073", Include) { + //Comp_DICTIONARY_INCLUDE_073 + test("Comp_DICTIONARY_INCLUDE_073", Include) { - checkAnswer(s"""select contractNumber, contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_076") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber >1000 order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_076") } - //Comp_VMALL_DICTIONARY_INCLUDE_077 - test("Comp_VMALL_DICTIONARY_INCLUDE_077", Include) { + //Comp_DICTIONARY_INCLUDE_077 + test("Comp_DICTIONARY_INCLUDE_077", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber IS NULL order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_077") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber IS NULL order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_077") } - //Comp_VMALL_DICTIONARY_INCLUDE_078 - test("Comp_VMALL_DICTIONARY_INCLUDE_078", Include) { + //Comp_DICTIONARY_INCLUDE_078 + test("Comp_DICTIONARY_INCLUDE_078", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_078") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_078") } - //Comp_VMALL_DICTIONARY_INCLUDE_079 - test("Comp_VMALL_DICTIONARY_INCLUDE_079", Include) { + //Comp_DICTIONARY_INCLUDE_079 + test("Comp_DICTIONARY_INCLUDE_079", Include) { - checkAnswer(s"""Select count(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""Select count(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_079") + checkAnswer(s"""Select count(Latest_DAY) from Comp_DICTIONARY_INCLUDE""", + s"""Select count(Latest_DAY) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_079") } - //Comp_VMALL_DICTIONARY_INCLUDE_080 - test("Comp_VMALL_DICTIONARY_INCLUDE_080", Include) { + //Comp_DICTIONARY_INCLUDE_080 + test("Comp_DICTIONARY_INCLUDE_080", Include) { - checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT Latest_DAY) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_080") + checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from Comp_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT Latest_DAY) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_080") } - //Comp_VMALL_DICTIONARY_INCLUDE_081 - test("Comp_VMALL_DICTIONARY_INCLUDE_081", Include) { + //Comp_DICTIONARY_INCLUDE_081 + test("Comp_DICTIONARY_INCLUDE_081", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE group by Latest_DAY order by a""", - s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive group by Latest_DAY order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_081") + checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_DICTIONARY_INCLUDE group by Latest_DAY order by a""", + s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_DICTIONARY_INCLUDE_hive group by Latest_DAY order by a""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_081") } - //Comp_VMALL_DICTIONARY_INCLUDE_082 - test("Comp_VMALL_DICTIONARY_INCLUDE_082", Include) { + //Comp_DICTIONARY_INCLUDE_082 + test("Comp_DICTIONARY_INCLUDE_082", Include) { - checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select max(Latest_DAY),min(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_082") + checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from Comp_DICTIONARY_INCLUDE""", + s"""select max(Latest_DAY),min(Latest_DAY) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_082") } - //Comp_VMALL_DICTIONARY_INCLUDE_083 - test("Comp_VMALL_DICTIONARY_INCLUDE_083", Include) { + //Comp_DICTIONARY_INCLUDE_083 + test("Comp_DICTIONARY_INCLUDE_083", Include) { - checkAnswer(s"""select sum(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_083") + checkAnswer(s"""select sum(Latest_DAY) a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_083") } - //Comp_VMALL_DICTIONARY_INCLUDE_084 - test("Comp_VMALL_DICTIONARY_INCLUDE_084", Include) { + //Comp_DICTIONARY_INCLUDE_084 + test("Comp_DICTIONARY_INCLUDE_084", Include) { - checkAnswer(s"""select avg(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select avg(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_084") + checkAnswer(s"""select avg(Latest_DAY) a from Comp_DICTIONARY_INCLUDE""", + s"""select avg(Latest_DAY) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_084") } - //Comp_VMALL_DICTIONARY_INCLUDE_085 - test("Comp_VMALL_DICTIONARY_INCLUDE_085", Include) { + //Comp_DICTIONARY_INCLUDE_085 + test("Comp_DICTIONARY_INCLUDE_085", Include) { - checkAnswer(s"""select min(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select min(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_085") + checkAnswer(s"""select min(Latest_DAY) a from Comp_DICTIONARY_INCLUDE""", + s"""select min(Latest_DAY) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_085") } - //Comp_VMALL_DICTIONARY_INCLUDE_086 - test("Comp_VMALL_DICTIONARY_INCLUDE_086", Include) { + //Comp_DICTIONARY_INCLUDE_086 + test("Comp_DICTIONARY_INCLUDE_086", Include) { - sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_087 - test("Comp_VMALL_DICTIONARY_INCLUDE_087", Include) { + //Comp_DICTIONARY_INCLUDE_087 + test("Comp_DICTIONARY_INCLUDE_087", Include) { - sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_088 - test("Comp_VMALL_DICTIONARY_INCLUDE_088", Include) { + //Comp_DICTIONARY_INCLUDE_088 + test("Comp_DICTIONARY_INCLUDE_088", Include) { - sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_089 - test("Comp_VMALL_DICTIONARY_INCLUDE_089", Include) { + //Comp_DICTIONARY_INCLUDE_089 + test("Comp_DICTIONARY_INCLUDE_089", Include) { - sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_090 - test("Comp_VMALL_DICTIONARY_INCLUDE_090", Include) { + //Comp_DICTIONARY_INCLUDE_090 + test("Comp_DICTIONARY_INCLUDE_090", Include) { - sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_091 - test("Comp_VMALL_DICTIONARY_INCLUDE_091", Include) { + //Comp_DICTIONARY_INCLUDE_091 + test("Comp_DICTIONARY_INCLUDE_091", Include) { - sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_092 - test("Comp_VMALL_DICTIONARY_INCLUDE_092", Include) { + //Comp_DICTIONARY_INCLUDE_092 + test("Comp_DICTIONARY_INCLUDE_092", Include) { - sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_093 - test("Comp_VMALL_DICTIONARY_INCLUDE_093", Include) { + //Comp_DICTIONARY_INCLUDE_093 + test("Comp_DICTIONARY_INCLUDE_093", Include) { - checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_093") + checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_DICTIONARY_INCLUDE""", + s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_093") } - //Comp_VMALL_DICTIONARY_INCLUDE_094 - test("Comp_VMALL_DICTIONARY_INCLUDE_094", Include) { + //Comp_DICTIONARY_INCLUDE_094 + test("Comp_DICTIONARY_INCLUDE_094", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_095 - test("Comp_VMALL_DICTIONARY_INCLUDE_095", Include) { + //Comp_DICTIONARY_INCLUDE_095 + test("Comp_DICTIONARY_INCLUDE_095", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_096 - test("Comp_VMALL_DICTIONARY_INCLUDE_096", Include) { + //Comp_DICTIONARY_INCLUDE_096 + test("Comp_DICTIONARY_INCLUDE_096", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_097 - test("Comp_VMALL_DICTIONARY_INCLUDE_097", Include) { + //Comp_DICTIONARY_INCLUDE_097 + test("Comp_DICTIONARY_INCLUDE_097", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_098 - test("Comp_VMALL_DICTIONARY_INCLUDE_098", Include) { + //Comp_DICTIONARY_INCLUDE_098 + test("Comp_DICTIONARY_INCLUDE_098", Include) { - sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_099 - test("Comp_VMALL_DICTIONARY_INCLUDE_099", Include) { + //Comp_DICTIONARY_INCLUDE_099 + test("Comp_DICTIONARY_INCLUDE_099", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_VMALL_DICTIONARY_INCLUDE order by a""", - s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_099") + checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_DICTIONARY_INCLUDE order by a""", + s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_099") } - //Comp_VMALL_DICTIONARY_INCLUDE_100 - test("Comp_VMALL_DICTIONARY_INCLUDE_100", Include) { + //Comp_DICTIONARY_INCLUDE_100 + test("Comp_DICTIONARY_INCLUDE_100", Include) { - checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_VMALL_DICTIONARY_INCLUDE group by channelsId order by Total,d""", - s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by Total,d""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_100") + checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_DICTIONARY_INCLUDE group by channelsId order by Total,d""", + s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_DICTIONARY_INCLUDE_hive group by channelsId order by Total,d""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_100") } - //Comp_VMALL_DICTIONARY_INCLUDE_101 - test("Comp_VMALL_DICTIONARY_INCLUDE_101", Include) { + //Comp_DICTIONARY_INCLUDE_101 + test("Comp_DICTIONARY_INCLUDE_101", Include) { - sql(s"""select last(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select last(Latest_DAY) a from Comp_DICTIONARY_INCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_102 - test("Comp_VMALL_DICTIONARY_INCLUDE_102", Include) { + //Comp_DICTIONARY_INCLUDE_102 + test("Comp_DICTIONARY_INCLUDE_102", Include) { - sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_103 - test("Comp_VMALL_DICTIONARY_INCLUDE_103", Include) { + //Comp_DICTIONARY_INCLUDE_103 + test("Comp_DICTIONARY_INCLUDE_103", Include) { - checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE group by Latest_DAY order by Latest_DAY""", - s"""select Latest_DAY,count(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_103") + checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from Comp_DICTIONARY_INCLUDE group by Latest_DAY order by Latest_DAY""", + s"""select Latest_DAY,count(Latest_DAY) a from Comp_DICTIONARY_INCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_103") } - //Comp_VMALL_DICTIONARY_INCLUDE_104 - test("Comp_VMALL_DICTIONARY_INCLUDE_104", Include) { + //Comp_DICTIONARY_INCLUDE_104 + test("Comp_DICTIONARY_INCLUDE_104", Include) { - checkAnswer(s"""select Lower(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE order by a""", - s"""select Lower(Latest_DAY) a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_104") + checkAnswer(s"""select Lower(Latest_DAY) a from Comp_DICTIONARY_INCLUDE order by a""", + s"""select Lower(Latest_DAY) a from Comp_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_104") } - //Comp_VMALL_DICTIONARY_INCLUDE_105 - test("Comp_VMALL_DICTIONARY_INCLUDE_105", Include) { + //Comp_DICTIONARY_INCLUDE_105 + test("Comp_DICTIONARY_INCLUDE_105", Include) { - checkAnswer(s"""select distinct Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY""", - s"""select distinct Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_105") + checkAnswer(s"""select distinct Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY""", + s"""select distinct Latest_DAY from Comp_DICTIONARY_INCLUDE_hive order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_105") } - //Comp_VMALL_DICTIONARY_INCLUDE_106 - test("Comp_VMALL_DICTIONARY_INCLUDE_106", Include) { + //Comp_DICTIONARY_INCLUDE_106 + test("Comp_DICTIONARY_INCLUDE_106", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE order by Latest_DAY limit 101""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive order by Latest_DAY limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_106") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE order by Latest_DAY limit 101""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive order by Latest_DAY limit 101""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_106") } - //Comp_VMALL_DICTIONARY_INCLUDE_107 - test("Comp_VMALL_DICTIONARY_INCLUDE_107", Include) { + //Comp_DICTIONARY_INCLUDE_107 + test("Comp_DICTIONARY_INCLUDE_107", Include) { - checkAnswer(s"""select Latest_DAY as a from Comp_VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select Latest_DAY as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_107") + checkAnswer(s"""select Latest_DAY as a from Comp_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select Latest_DAY as a from Comp_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_107") } - //Comp_VMALL_DICTIONARY_INCLUDE_108 - test("Comp_VMALL_DICTIONARY_INCLUDE_108", Include) { + //Comp_DICTIONARY_INCLUDE_108 + test("Comp_DICTIONARY_INCLUDE_108", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_108") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_108") } - //Comp_VMALL_DICTIONARY_INCLUDE_109 - test("Comp_VMALL_DICTIONARY_INCLUDE_109", Include) { + //Comp_DICTIONARY_INCLUDE_109 + test("Comp_DICTIONARY_INCLUDE_109", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_109") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_109") } - //Comp_VMALL_DICTIONARY_INCLUDE_110 - test("Comp_VMALL_DICTIONARY_INCLUDE_110", Include) { + //Comp_DICTIONARY_INCLUDE_110 + test("Comp_DICTIONARY_INCLUDE_110", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_110") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_110") } - //Comp_VMALL_DICTIONARY_INCLUDE_111 - test("Comp_VMALL_DICTIONARY_INCLUDE_111", Include) { + //Comp_DICTIONARY_INCLUDE_111 + test("Comp_DICTIONARY_INCLUDE_111", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_111") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_111") } - //Comp_VMALL_DICTIONARY_INCLUDE_112 - test("Comp_VMALL_DICTIONARY_INCLUDE_112", Include) { + //Comp_DICTIONARY_INCLUDE_112 + test("Comp_DICTIONARY_INCLUDE_112", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_112") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_112") } - //Comp_VMALL_DICTIONARY_INCLUDE_113 - test("Comp_VMALL_DICTIONARY_INCLUDE_113", Include) { + //Comp_DICTIONARY_INCLUDE_113 + test("Comp_DICTIONARY_INCLUDE_113", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY<>Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_113") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY<>Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_113") } - //Comp_VMALL_DICTIONARY_INCLUDE_114 - test("Comp_VMALL_DICTIONARY_INCLUDE_114", Include) { + //Comp_DICTIONARY_INCLUDE_114 + test("Comp_DICTIONARY_INCLUDE_114", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_114") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_114") } - //Comp_VMALL_DICTIONARY_INCLUDE_115 - test("Comp_VMALL_DICTIONARY_INCLUDE_115", Include) { + //Comp_DICTIONARY_INCLUDE_115 + test("Comp_DICTIONARY_INCLUDE_115", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_118") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY >1000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_118") } - //Comp_VMALL_DICTIONARY_INCLUDE_119 - test("Comp_VMALL_DICTIONARY_INCLUDE_119", Include) { + //Comp_DICTIONARY_INCLUDE_119 + test("Comp_DICTIONARY_INCLUDE_119", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NULL order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_119") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY IS NULL order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_119") } - //Comp_VMALL_DICTIONARY_INCLUDE_120 - test("Comp_VMALL_DICTIONARY_INCLUDE_120", Include) { + //Comp_DICTIONARY_INCLUDE_120 + test("Comp_DICTIONARY_INCLUDE_120", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_120") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_120") } - //Comp_VMALL_DICTIONARY_INCLUDE_121 - test("Comp_VMALL_DICTIONARY_INCLUDE_121", Include) { + //Comp_DICTIONARY_INCLUDE_121 + test("Comp_DICTIONARY_INCLUDE_121", Include) { - checkAnswer(s"""Select count(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""Select count(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_121") + checkAnswer(s"""Select count(gamePointId) from Comp_DICTIONARY_INCLUDE""", + s"""Select count(gamePointId) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_121") } - //Comp_VMALL_DICTIONARY_INCLUDE_122 - test("Comp_VMALL_DICTIONARY_INCLUDE_122", Include) { + //Comp_DICTIONARY_INCLUDE_122 + test("Comp_DICTIONARY_INCLUDE_122", Include) { - checkAnswer(s"""select count(DISTINCT gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_122") + checkAnswer(s"""select count(DISTINCT gamePointId) as a from Comp_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT gamePointId) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_122") } - //Comp_VMALL_DICTIONARY_INCLUDE_123 - test("Comp_VMALL_DICTIONARY_INCLUDE_123", Include) { + //Comp_DICTIONARY_INCLUDE_123 + test("Comp_DICTIONARY_INCLUDE_123", Include) { - sql(s"""select sum(gamePointId)+10 as a ,gamePointId from Comp_VMALL_DICTIONARY_INCLUDE group by gamePointId order by a""").collect + sql(s"""select sum(gamePointId)+10 as a ,gamePointId from Comp_DICTIONARY_INCLUDE group by gamePointId order by a""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_124 - test("Comp_VMALL_DICTIONARY_INCLUDE_124", Include) { + //Comp_DICTIONARY_INCLUDE_124 + test("Comp_DICTIONARY_INCLUDE_124", Include) { - checkAnswer(s"""select max(gamePointId),min(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select max(gamePointId),min(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_124") + checkAnswer(s"""select max(gamePointId),min(gamePointId) from Comp_DICTIONARY_INCLUDE""", + s"""select max(gamePointId),min(gamePointId) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_124") } - //Comp_VMALL_DICTIONARY_INCLUDE_125 - test("Comp_VMALL_DICTIONARY_INCLUDE_125", Include) { + //Comp_DICTIONARY_INCLUDE_125 + test("Comp_DICTIONARY_INCLUDE_125", Include) { - sql(s"""select sum(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamePointId) a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_126 - test("Comp_VMALL_DICTIONARY_INCLUDE_126", Include) { + //Comp_DICTIONARY_INCLUDE_126 + test("Comp_DICTIONARY_INCLUDE_126", Include) { - sql(s"""select avg(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select avg(gamePointId) a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_127 - test("Comp_VMALL_DICTIONARY_INCLUDE_127", Include) { + //Comp_DICTIONARY_INCLUDE_127 + test("Comp_DICTIONARY_INCLUDE_127", Include) { - checkAnswer(s"""select min(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select min(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_127") + checkAnswer(s"""select min(gamePointId) a from Comp_DICTIONARY_INCLUDE""", + s"""select min(gamePointId) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_127") } - //Comp_VMALL_DICTIONARY_INCLUDE_128 - test("Comp_VMALL_DICTIONARY_INCLUDE_128", Include) { + //Comp_DICTIONARY_INCLUDE_128 + test("Comp_DICTIONARY_INCLUDE_128", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_129 - test("Comp_VMALL_DICTIONARY_INCLUDE_129", Include) { + //Comp_DICTIONARY_INCLUDE_129 + test("Comp_DICTIONARY_INCLUDE_129", Include) { - sql(s"""select var_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select var_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_130 - test("Comp_VMALL_DICTIONARY_INCLUDE_130", Include) { + //Comp_DICTIONARY_INCLUDE_130 + test("Comp_DICTIONARY_INCLUDE_130", Include) { - sql(s"""select var_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select var_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_131 - test("Comp_VMALL_DICTIONARY_INCLUDE_131", Include) { + //Comp_DICTIONARY_INCLUDE_131 + test("Comp_DICTIONARY_INCLUDE_131", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_132 - test("Comp_VMALL_DICTIONARY_INCLUDE_132", Include) { + //Comp_DICTIONARY_INCLUDE_132 + test("Comp_DICTIONARY_INCLUDE_132", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_133 - test("Comp_VMALL_DICTIONARY_INCLUDE_133", Include) { + //Comp_DICTIONARY_INCLUDE_133 + test("Comp_DICTIONARY_INCLUDE_133", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_134 - test("Comp_VMALL_DICTIONARY_INCLUDE_134", Include) { + //Comp_DICTIONARY_INCLUDE_134 + test("Comp_DICTIONARY_INCLUDE_134", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_135 - test("Comp_VMALL_DICTIONARY_INCLUDE_135", Include) { + //Comp_DICTIONARY_INCLUDE_135 + test("Comp_DICTIONARY_INCLUDE_135", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_135") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_INCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_135") } - //Comp_VMALL_DICTIONARY_INCLUDE_136 - test("Comp_VMALL_DICTIONARY_INCLUDE_136", Include) { + //Comp_DICTIONARY_INCLUDE_136 + test("Comp_DICTIONARY_INCLUDE_136", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_137 - test("Comp_VMALL_DICTIONARY_INCLUDE_137", Include) { + //Comp_DICTIONARY_INCLUDE_137 + test("Comp_DICTIONARY_INCLUDE_137", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_138 - test("Comp_VMALL_DICTIONARY_INCLUDE_138", Include) { + //Comp_DICTIONARY_INCLUDE_138 + test("Comp_DICTIONARY_INCLUDE_138", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_139 - test("Comp_VMALL_DICTIONARY_INCLUDE_139", Include) { + //Comp_DICTIONARY_INCLUDE_139 + test("Comp_DICTIONARY_INCLUDE_139", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_140 - test("Comp_VMALL_DICTIONARY_INCLUDE_140", Include) { + //Comp_DICTIONARY_INCLUDE_140 + test("Comp_DICTIONARY_INCLUDE_140", Include) { - sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_141 - test("Comp_VMALL_DICTIONARY_INCLUDE_141", Include) { + //Comp_DICTIONARY_INCLUDE_141 + test("Comp_DICTIONARY_INCLUDE_141", Include) { - checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from Comp_VMALL_DICTIONARY_INCLUDE order by a""", - s"""select gamePointId, gamePointId+ 10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_141") + checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from Comp_DICTIONARY_INCLUDE order by a""", + s"""select gamePointId, gamePointId+ 10 as a from Comp_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_141") } - //Comp_VMALL_DICTIONARY_INCLUDE_142 - test("Comp_VMALL_DICTIONARY_INCLUDE_142", Include) { + //Comp_DICTIONARY_INCLUDE_142 + test("Comp_DICTIONARY_INCLUDE_142", Include) { - checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_VMALL_DICTIONARY_INCLUDE group by channelsId order by Total""", - s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_142") + checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_DICTIONARY_INCLUDE group by channelsId order by Total""", + s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_142") } - //Comp_VMALL_DICTIONARY_INCLUDE_143 - test("Comp_VMALL_DICTIONARY_INCLUDE_143", Include) { + //Comp_DICTIONARY_INCLUDE_143 + test("Comp_DICTIONARY_INCLUDE_143", Include) { - sql(s"""select last(gamePointId) a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select last(gamePointId) a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_144 - test("Comp_VMALL_DICTIONARY_INCLUDE_144", Include) { + //Comp_DICTIONARY_INCLUDE_144 + test("Comp_DICTIONARY_INCLUDE_144", Include) { - sql(s"""select FIRST(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select FIRST(gamePointId) a from Comp_DICTIONARY_INCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_145 - test("Comp_VMALL_DICTIONARY_INCLUDE_145", Include) { + //Comp_DICTIONARY_INCLUDE_145 + test("Comp_DICTIONARY_INCLUDE_145", Include) { - checkAnswer(s"""select gamePointId,count(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE group by gamePointId order by gamePointId""", - s"""select gamePointId,count(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE_hive group by gamePointId order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_145") + checkAnswer(s"""select gamePointId,count(gamePointId) a from Comp_DICTIONARY_INCLUDE group by gamePointId order by gamePointId""", + s"""select gamePointId,count(gamePointId) a from Comp_DICTIONARY_INCLUDE_hive group by gamePointId order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_145") } - //Comp_VMALL_DICTIONARY_INCLUDE_146 - test("Comp_VMALL_DICTIONARY_INCLUDE_146", Include) { + //Comp_DICTIONARY_INCLUDE_146 + test("Comp_DICTIONARY_INCLUDE_146", Include) { - checkAnswer(s"""select Lower(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId""", - s"""select Lower(gamePointId) a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_146") + checkAnswer(s"""select Lower(gamePointId) a from Comp_DICTIONARY_INCLUDE order by gamePointId""", + s"""select Lower(gamePointId) a from Comp_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_146") } - //Comp_VMALL_DICTIONARY_INCLUDE_147 - test("Comp_VMALL_DICTIONARY_INCLUDE_147", Include) { + //Comp_DICTIONARY_INCLUDE_147 + test("Comp_DICTIONARY_INCLUDE_147", Include) { - checkAnswer(s"""select distinct gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId""", - s"""select distinct gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_147") + checkAnswer(s"""select distinct gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId""", + s"""select distinct gamePointId from Comp_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_147") } - //Comp_VMALL_DICTIONARY_INCLUDE_148 - test("Comp_VMALL_DICTIONARY_INCLUDE_148", Include) { + //Comp_DICTIONARY_INCLUDE_148 + test("Comp_DICTIONARY_INCLUDE_148", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId limit 101""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive order by gamePointId limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_148") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId limit 101""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive order by gamePointId limit 101""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_148") } - //Comp_VMALL_DICTIONARY_INCLUDE_149 - test("Comp_VMALL_DICTIONARY_INCLUDE_149", Include) { + //Comp_DICTIONARY_INCLUDE_149 + test("Comp_DICTIONARY_INCLUDE_149", Include) { - checkAnswer(s"""select gamePointId as a from Comp_VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select gamePointId as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_149") + checkAnswer(s"""select gamePointId as a from Comp_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select gamePointId as a from Comp_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_149") } - //Comp_VMALL_DICTIONARY_INCLUDE_150 - test("Comp_VMALL_DICTIONARY_INCLUDE_150", Include) { + //Comp_DICTIONARY_INCLUDE_150 + test("Comp_DICTIONARY_INCLUDE_150", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_150") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_150") } - //Comp_VMALL_DICTIONARY_INCLUDE_151 - test("Comp_VMALL_DICTIONARY_INCLUDE_151", Include) { + //Comp_DICTIONARY_INCLUDE_151 + test("Comp_DICTIONARY_INCLUDE_151", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_151") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_151") } - //Comp_VMALL_DICTIONARY_INCLUDE_152 - test("Comp_VMALL_DICTIONARY_INCLUDE_152", Include) { + //Comp_DICTIONARY_INCLUDE_152 + test("Comp_DICTIONARY_INCLUDE_152", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_152") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_152") } - //Comp_VMALL_DICTIONARY_INCLUDE_153 - test("Comp_VMALL_DICTIONARY_INCLUDE_153", Include) { + //Comp_DICTIONARY_INCLUDE_153 + test("Comp_DICTIONARY_INCLUDE_153", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_153") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_153") } - //Comp_VMALL_DICTIONARY_INCLUDE_154 - test("Comp_VMALL_DICTIONARY_INCLUDE_154", Include) { + //Comp_DICTIONARY_INCLUDE_154 + test("Comp_DICTIONARY_INCLUDE_154", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId >4.70133553923674E43""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_154") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId >4.70133553923674E43""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_154") } - //Comp_VMALL_DICTIONARY_INCLUDE_155 - test("Comp_VMALL_DICTIONARY_INCLUDE_155", Include) { + //Comp_DICTIONARY_INCLUDE_155 + test("Comp_DICTIONARY_INCLUDE_155", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId<>gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId<>gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_155") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId<>gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId<>gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_155") } - //Comp_VMALL_DICTIONARY_INCLUDE_156 - test("Comp_VMALL_DICTIONARY_INCLUDE_156", Include) { + //Comp_DICTIONARY_INCLUDE_156 + test("Comp_DICTIONARY_INCLUDE_156", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId != Latest_areaId order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_156") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId != Latest_areaId order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_156") } - //Comp_VMALL_DICTIONARY_INCLUDE_157 - test("Comp_VMALL_DICTIONARY_INCLUDE_157", Include) { + //Comp_DICTIONARY_INCLUDE_157 + test("Comp_DICTIONARY_INCLUDE_157", Include) { - checkAnswer(s"""select gamePointId, gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_160") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId >1000 order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_160") } - //Comp_VMALL_DICTIONARY_INCLUDE_161 - test("Comp_VMALL_DICTIONARY_INCLUDE_161", Include) { + //Comp_DICTIONARY_INCLUDE_161 + test("Comp_DICTIONARY_INCLUDE_161", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId IS NULL order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_161") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId IS NULL order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_161") } - //Comp_VMALL_DICTIONARY_INCLUDE_162 - test("Comp_VMALL_DICTIONARY_INCLUDE_162", Include) { + //Comp_DICTIONARY_INCLUDE_162 + test("Comp_DICTIONARY_INCLUDE_162", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId IS NOT NULL order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_162") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId IS NOT NULL order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_162") } - //Comp_VMALL_DICTIONARY_INCLUDE_163 - test("Comp_VMALL_DICTIONARY_INCLUDE_163", Include) { + //Comp_DICTIONARY_INCLUDE_163 + test("Comp_DICTIONARY_INCLUDE_163", Include) { - checkAnswer(s"""Select count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""Select count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_163") + checkAnswer(s"""Select count(productionDate) from Comp_DICTIONARY_INCLUDE""", + s"""Select count(productionDate) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_163") } - //Comp_VMALL_DICTIONARY_INCLUDE_164 - test("Comp_VMALL_DICTIONARY_INCLUDE_164", Include) { + //Comp_DICTIONARY_INCLUDE_164 + test("Comp_DICTIONARY_INCLUDE_164", Include) { - checkAnswer(s"""select count(DISTINCT productionDate) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT productionDate) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_164") + checkAnswer(s"""select count(DISTINCT productionDate) as a from Comp_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT productionDate) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_164") } - //Comp_VMALL_DICTIONARY_INCLUDE_165 - test("Comp_VMALL_DICTIONARY_INCLUDE_165", Include) { + //Comp_DICTIONARY_INCLUDE_165 + test("Comp_DICTIONARY_INCLUDE_165", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from Comp_VMALL_DICTIONARY_INCLUDE group by productionDate order by productionDate""", - s"""select sum(productionDate)+10 as a ,productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_165") + checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from Comp_DICTIONARY_INCLUDE group by productionDate order by productionDate""", + s"""select sum(productionDate)+10 as a ,productionDate from Comp_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_165") } - //Comp_VMALL_DICTIONARY_INCLUDE_166 - test("Comp_VMALL_DICTIONARY_INCLUDE_166", Include) { + //Comp_DICTIONARY_INCLUDE_166 + test("Comp_DICTIONARY_INCLUDE_166", Include) { - checkAnswer(s"""select max(productionDate),min(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select max(productionDate),min(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_166") + checkAnswer(s"""select max(productionDate),min(productionDate) from Comp_DICTIONARY_INCLUDE""", + s"""select max(productionDate),min(productionDate) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_166") } - //Comp_VMALL_DICTIONARY_INCLUDE_167 - test("Comp_VMALL_DICTIONARY_INCLUDE_167", Include) { + //Comp_DICTIONARY_INCLUDE_167 + test("Comp_DICTIONARY_INCLUDE_167", Include) { - checkAnswer(s"""select sum(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_167") + checkAnswer(s"""select sum(productionDate) a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_167") } - //Comp_VMALL_DICTIONARY_INCLUDE_168 - test("Comp_VMALL_DICTIONARY_INCLUDE_168", Include) { + //Comp_DICTIONARY_INCLUDE_168 + test("Comp_DICTIONARY_INCLUDE_168", Include) { - checkAnswer(s"""select avg(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select avg(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_168") + checkAnswer(s"""select avg(productionDate) a from Comp_DICTIONARY_INCLUDE""", + s"""select avg(productionDate) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_168") } - //Comp_VMALL_DICTIONARY_INCLUDE_169 - test("Comp_VMALL_DICTIONARY_INCLUDE_169", Include) { + //Comp_DICTIONARY_INCLUDE_169 + test("Comp_DICTIONARY_INCLUDE_169", Include) { - checkAnswer(s"""select min(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select min(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_169") + checkAnswer(s"""select min(productionDate) a from Comp_DICTIONARY_INCLUDE""", + s"""select min(productionDate) a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_169") } - //Comp_VMALL_DICTIONARY_INCLUDE_170 - test("Comp_VMALL_DICTIONARY_INCLUDE_170", Include) { + //Comp_DICTIONARY_INCLUDE_170 + test("Comp_DICTIONARY_INCLUDE_170", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_171 - test("Comp_VMALL_DICTIONARY_INCLUDE_171", Include) { + //Comp_DICTIONARY_INCLUDE_171 + test("Comp_DICTIONARY_INCLUDE_171", Include) { - sql(s"""select var_pop(gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select var_pop(gamePointId) as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_172 - test("Comp_VMALL_DICTIONARY_INCLUDE_172", Include) { + //Comp_DICTIONARY_INCLUDE_172 + test("Comp_DICTIONARY_INCLUDE_172", Include) { - sql(s"""select var_samp(gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select var_samp(gamePointId) as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_173 - test("Comp_VMALL_DICTIONARY_INCLUDE_173", Include) { + //Comp_DICTIONARY_INCLUDE_173 + test("Comp_DICTIONARY_INCLUDE_173", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_174 - test("Comp_VMALL_DICTIONARY_INCLUDE_174", Include) { + //Comp_DICTIONARY_INCLUDE_174 + test("Comp_DICTIONARY_INCLUDE_174", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_175 - test("Comp_VMALL_DICTIONARY_INCLUDE_175", Include) { + //Comp_DICTIONARY_INCLUDE_175 + test("Comp_DICTIONARY_INCLUDE_175", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_176 - test("Comp_VMALL_DICTIONARY_INCLUDE_176", Include) { + //Comp_DICTIONARY_INCLUDE_176 + test("Comp_DICTIONARY_INCLUDE_176", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_177 - test("Comp_VMALL_DICTIONARY_INCLUDE_177", Include) { + //Comp_DICTIONARY_INCLUDE_177 + test("Comp_DICTIONARY_INCLUDE_177", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_177") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_INCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_177") } - //Comp_VMALL_DICTIONARY_INCLUDE_178 - test("Comp_VMALL_DICTIONARY_INCLUDE_178", Include) { + //Comp_DICTIONARY_INCLUDE_178 + test("Comp_DICTIONARY_INCLUDE_178", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_179 - test("Comp_VMALL_DICTIONARY_INCLUDE_179", Include) { + //Comp_DICTIONARY_INCLUDE_179 + test("Comp_DICTIONARY_INCLUDE_179", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_180 - test("Comp_VMALL_DICTIONARY_INCLUDE_180", Include) { + //Comp_DICTIONARY_INCLUDE_180 + test("Comp_DICTIONARY_INCLUDE_180", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_181 - test("Comp_VMALL_DICTIONARY_INCLUDE_181", Include) { + //Comp_DICTIONARY_INCLUDE_181 + test("Comp_DICTIONARY_INCLUDE_181", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_182 - test("Comp_VMALL_DICTIONARY_INCLUDE_182", Include) { + //Comp_DICTIONARY_INCLUDE_182 + test("Comp_DICTIONARY_INCLUDE_182", Include) { - sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from Comp_VMALL_DICTIONARY_INCLUDE order by productionDate) t""").collect + sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from Comp_DICTIONARY_INCLUDE order by productionDate) t""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_183 - test("Comp_VMALL_DICTIONARY_INCLUDE_183", Include) { + //Comp_DICTIONARY_INCLUDE_183 + test("Comp_DICTIONARY_INCLUDE_183", Include) { - checkAnswer(s"""select last(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE order by a""", - s"""select last(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_183") + checkAnswer(s"""select last(productionDate) a from Comp_DICTIONARY_INCLUDE order by a""", + s"""select last(productionDate) a from Comp_DICTIONARY_INCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_183") } - //Comp_VMALL_DICTIONARY_INCLUDE_184 - test("Comp_VMALL_DICTIONARY_INCLUDE_184", Include) { + //Comp_DICTIONARY_INCLUDE_184 + test("Comp_DICTIONARY_INCLUDE_184", Include) { - sql(s"""select FIRST(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select FIRST(productionDate) a from Comp_DICTIONARY_INCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_185 - test("Comp_VMALL_DICTIONARY_INCLUDE_185", Include) { + //Comp_DICTIONARY_INCLUDE_185 + test("Comp_DICTIONARY_INCLUDE_185", Include) { - checkAnswer(s"""select productionDate,count(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE group by productionDate order by productionDate""", - s"""select productionDate,count(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_185") + checkAnswer(s"""select productionDate,count(productionDate) a from Comp_DICTIONARY_INCLUDE group by productionDate order by productionDate""", + s"""select productionDate,count(productionDate) a from Comp_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_185") } - //Comp_VMALL_DICTIONARY_INCLUDE_186 - test("Comp_VMALL_DICTIONARY_INCLUDE_186", Include) { + //Comp_DICTIONARY_INCLUDE_186 + test("Comp_DICTIONARY_INCLUDE_186", Include) { - checkAnswer(s"""select Lower(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE order by productionDate""", - s"""select Lower(productionDate) a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_186") + checkAnswer(s"""select Lower(productionDate) a from Comp_DICTIONARY_INCLUDE order by productionDate""", + s"""select Lower(productionDate) a from Comp_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_186") } - //Comp_VMALL_DICTIONARY_INCLUDE_187 - test("Comp_VMALL_DICTIONARY_INCLUDE_187", Include) { + //Comp_DICTIONARY_INCLUDE_187 + test("Comp_DICTIONARY_INCLUDE_187", Include) { - checkAnswer(s"""select distinct productionDate from Comp_VMALL_DICTIONARY_INCLUDE order by productionDate""", - s"""select distinct productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_187") + checkAnswer(s"""select distinct productionDate from Comp_DICTIONARY_INCLUDE order by productionDate""", + s"""select distinct productionDate from Comp_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_187") } - //Comp_VMALL_DICTIONARY_INCLUDE_188 - test("Comp_VMALL_DICTIONARY_INCLUDE_188", Include) { + //Comp_DICTIONARY_INCLUDE_188 + test("Comp_DICTIONARY_INCLUDE_188", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE order by productionDate limit 101""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive order by productionDate limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_188") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE order by productionDate limit 101""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive order by productionDate limit 101""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_188") } - //Comp_VMALL_DICTIONARY_INCLUDE_189 - test("Comp_VMALL_DICTIONARY_INCLUDE_189", Include) { + //Comp_DICTIONARY_INCLUDE_189 + test("Comp_DICTIONARY_INCLUDE_189", Include) { - checkAnswer(s"""select productionDate as a from Comp_VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select productionDate as a from Comp_VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_189") + checkAnswer(s"""select productionDate as a from Comp_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select productionDate as a from Comp_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_189") } - //Comp_VMALL_DICTIONARY_INCLUDE_190 - test("Comp_VMALL_DICTIONARY_INCLUDE_190", Include) { + //Comp_DICTIONARY_INCLUDE_190 + test("Comp_DICTIONARY_INCLUDE_190", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_190") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_190") } - //Comp_VMALL_DICTIONARY_INCLUDE_191 - test("Comp_VMALL_DICTIONARY_INCLUDE_191", Include) { + //Comp_DICTIONARY_INCLUDE_191 + test("Comp_DICTIONARY_INCLUDE_191", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_191") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_191") } - //Comp_VMALL_DICTIONARY_INCLUDE_192 - test("Comp_VMALL_DICTIONARY_INCLUDE_192", Include) { + //Comp_DICTIONARY_INCLUDE_192 + test("Comp_DICTIONARY_INCLUDE_192", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_192") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_192") } - //Comp_VMALL_DICTIONARY_INCLUDE_193 - test("Comp_VMALL_DICTIONARY_INCLUDE_193", Include) { + //Comp_DICTIONARY_INCLUDE_193 + test("Comp_DICTIONARY_INCLUDE_193", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_193") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_193") } - //Comp_VMALL_DICTIONARY_INCLUDE_194 - test("Comp_VMALL_DICTIONARY_INCLUDE_194", Include) { + //Comp_DICTIONARY_INCLUDE_194 + test("Comp_DICTIONARY_INCLUDE_194", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_194") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_194") } - //Comp_VMALL_DICTIONARY_INCLUDE_195 - test("Comp_VMALL_DICTIONARY_INCLUDE_195", Include) { + //Comp_DICTIONARY_INCLUDE_195 + test("Comp_DICTIONARY_INCLUDE_195", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate<>productionDate order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_195") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate<>productionDate order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_195") } - //Comp_VMALL_DICTIONARY_INCLUDE_196 - test("Comp_VMALL_DICTIONARY_INCLUDE_196", Include) { + //Comp_DICTIONARY_INCLUDE_196 + test("Comp_DICTIONARY_INCLUDE_196", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate != Latest_areaId order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_196") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate != Latest_areaId order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_196") } - //Comp_VMALL_DICTIONARY_INCLUDE_197 - test("Comp_VMALL_DICTIONARY_INCLUDE_197", Include) { + //Comp_DICTIONARY_INCLUDE_197 + test("Comp_DICTIONARY_INCLUDE_197", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId100084 order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_235") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId >100084 order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_235") } - //Comp_VMALL_DICTIONARY_INCLUDE_236 - test("Comp_VMALL_DICTIONARY_INCLUDE_236", Include) { + //Comp_DICTIONARY_INCLUDE_236 + test("Comp_DICTIONARY_INCLUDE_236", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_236") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_236") } - //Comp_VMALL_DICTIONARY_INCLUDE_237 - test("Comp_VMALL_DICTIONARY_INCLUDE_237", Include) { + //Comp_DICTIONARY_INCLUDE_237 + test("Comp_DICTIONARY_INCLUDE_237", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_237") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_237") } - //Comp_VMALL_DICTIONARY_INCLUDE_238 - test("Comp_VMALL_DICTIONARY_INCLUDE_238", Include) { + //Comp_DICTIONARY_INCLUDE_238 + test("Comp_DICTIONARY_INCLUDE_238", Include) { - checkAnswer(s"""select deviceInformationId, deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_241") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId >1000 order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_241") } - //Comp_VMALL_DICTIONARY_INCLUDE_242 - test("Comp_VMALL_DICTIONARY_INCLUDE_242", Include) { + //Comp_DICTIONARY_INCLUDE_242 + test("Comp_DICTIONARY_INCLUDE_242", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId IS NULL order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_242") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId IS NULL order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_242") } - //Comp_VMALL_DICTIONARY_INCLUDE_243 - test("Comp_VMALL_DICTIONARY_INCLUDE_243", Include) { + //Comp_DICTIONARY_INCLUDE_243 + test("Comp_DICTIONARY_INCLUDE_243", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_243") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_243") } - //Comp_VMALL_DICTIONARY_INCLUDE_244 - test("Comp_VMALL_DICTIONARY_INCLUDE_244", Include) { + //Comp_DICTIONARY_INCLUDE_244 + test("Comp_DICTIONARY_INCLUDE_244", Include) { - checkAnswer(s"""select sum(imei)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_244") + checkAnswer(s"""select sum(imei)+10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(imei)+10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_244") } - //Comp_VMALL_DICTIONARY_INCLUDE_245 - test("Comp_VMALL_DICTIONARY_INCLUDE_245", Include) { + //Comp_DICTIONARY_INCLUDE_245 + test("Comp_DICTIONARY_INCLUDE_245", Include) { - checkAnswer(s"""select sum(imei)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_245") + checkAnswer(s"""select sum(imei)*10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(imei)*10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_245") } - //Comp_VMALL_DICTIONARY_INCLUDE_246 - test("Comp_VMALL_DICTIONARY_INCLUDE_246", Include) { + //Comp_DICTIONARY_INCLUDE_246 + test("Comp_DICTIONARY_INCLUDE_246", Include) { - checkAnswer(s"""select sum(imei)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_246") + checkAnswer(s"""select sum(imei)/10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(imei)/10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_246") } - //Comp_VMALL_DICTIONARY_INCLUDE_247 - test("Comp_VMALL_DICTIONARY_INCLUDE_247", Include) { + //Comp_DICTIONARY_INCLUDE_247 + test("Comp_DICTIONARY_INCLUDE_247", Include) { - checkAnswer(s"""select sum(imei)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_247") + checkAnswer(s"""select sum(imei)-10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(imei)-10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_247") } - //Comp_VMALL_DICTIONARY_INCLUDE_248 - test("Comp_VMALL_DICTIONARY_INCLUDE_248", Include) { + //Comp_DICTIONARY_INCLUDE_248 + test("Comp_DICTIONARY_INCLUDE_248", Include) { - checkAnswer(s"""select sum(contractNumber)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_248") + checkAnswer(s"""select sum(contractNumber)+10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)+10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_248") } - //Comp_VMALL_DICTIONARY_INCLUDE_249 - test("Comp_VMALL_DICTIONARY_INCLUDE_249", Include) { + //Comp_DICTIONARY_INCLUDE_249 + test("Comp_DICTIONARY_INCLUDE_249", Include) { - checkAnswer(s"""select sum(contractNumber)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_249") + checkAnswer(s"""select sum(contractNumber)*10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)*10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_249") } - //Comp_VMALL_DICTIONARY_INCLUDE_250 - test("Comp_VMALL_DICTIONARY_INCLUDE_250", Include) { + //Comp_DICTIONARY_INCLUDE_250 + test("Comp_DICTIONARY_INCLUDE_250", Include) { - checkAnswer(s"""select sum(contractNumber)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_250") + checkAnswer(s"""select sum(contractNumber)/10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)/10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_250") } - //Comp_VMALL_DICTIONARY_INCLUDE_251 - test("Comp_VMALL_DICTIONARY_INCLUDE_251", Include) { + //Comp_DICTIONARY_INCLUDE_251 + test("Comp_DICTIONARY_INCLUDE_251", Include) { - checkAnswer(s"""select sum(contractNumber)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_251") + checkAnswer(s"""select sum(contractNumber)-10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)-10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_251") } - //Comp_VMALL_DICTIONARY_INCLUDE_252 - test("Comp_VMALL_DICTIONARY_INCLUDE_252", Include) { + //Comp_DICTIONARY_INCLUDE_252 + test("Comp_DICTIONARY_INCLUDE_252", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_252") + checkAnswer(s"""select sum(Latest_DAY)+10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)+10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_252") } - //Comp_VMALL_DICTIONARY_INCLUDE_253 - test("Comp_VMALL_DICTIONARY_INCLUDE_253", Include) { + //Comp_DICTIONARY_INCLUDE_253 + test("Comp_DICTIONARY_INCLUDE_253", Include) { - checkAnswer(s"""select sum(Latest_DAY)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_253") + checkAnswer(s"""select sum(Latest_DAY)*10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)*10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_253") } - //Comp_VMALL_DICTIONARY_INCLUDE_254 - test("Comp_VMALL_DICTIONARY_INCLUDE_254", Include) { + //Comp_DICTIONARY_INCLUDE_254 + test("Comp_DICTIONARY_INCLUDE_254", Include) { - checkAnswer(s"""select sum(Latest_DAY)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_254") + checkAnswer(s"""select sum(Latest_DAY)/10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)/10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_254") } - //Comp_VMALL_DICTIONARY_INCLUDE_255 - test("Comp_VMALL_DICTIONARY_INCLUDE_255", Include) { + //Comp_DICTIONARY_INCLUDE_255 + test("Comp_DICTIONARY_INCLUDE_255", Include) { - checkAnswer(s"""select sum(Latest_DAY)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_255") + checkAnswer(s"""select sum(Latest_DAY)-10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)-10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_255") } - //Comp_VMALL_DICTIONARY_INCLUDE_256 - test("Comp_VMALL_DICTIONARY_INCLUDE_256", Include) { + //Comp_DICTIONARY_INCLUDE_256 + test("Comp_DICTIONARY_INCLUDE_256", Include) { - sql(s"""select sum(gamePointId)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamePointId)+10 as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_257 - test("Comp_VMALL_DICTIONARY_INCLUDE_257", Include) { + //Comp_DICTIONARY_INCLUDE_257 + test("Comp_DICTIONARY_INCLUDE_257", Include) { - sql(s"""select sum(gamePointId)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamePointId)*10 as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_258 - test("Comp_VMALL_DICTIONARY_INCLUDE_258", Include) { + //Comp_DICTIONARY_INCLUDE_258 + test("Comp_DICTIONARY_INCLUDE_258", Include) { - sql(s"""select sum(gamePointId)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamePointId)/10 as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_259 - test("Comp_VMALL_DICTIONARY_INCLUDE_259", Include) { + //Comp_DICTIONARY_INCLUDE_259 + test("Comp_DICTIONARY_INCLUDE_259", Include) { - sql(s"""select sum(gamePointId)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamePointId)-10 as a from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_260 - test("Comp_VMALL_DICTIONARY_INCLUDE_260", Include) { + //Comp_DICTIONARY_INCLUDE_260 + test("Comp_DICTIONARY_INCLUDE_260", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_260") + checkAnswer(s"""select sum(productionDate)+10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)+10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_260") } - //Comp_VMALL_DICTIONARY_INCLUDE_261 - test("Comp_VMALL_DICTIONARY_INCLUDE_261", Include) { + //Comp_DICTIONARY_INCLUDE_261 + test("Comp_DICTIONARY_INCLUDE_261", Include) { - checkAnswer(s"""select sum(productionDate)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_261") + checkAnswer(s"""select sum(productionDate)*10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)*10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_261") } - //Comp_VMALL_DICTIONARY_INCLUDE_262 - test("Comp_VMALL_DICTIONARY_INCLUDE_262", Include) { + //Comp_DICTIONARY_INCLUDE_262 + test("Comp_DICTIONARY_INCLUDE_262", Include) { - checkAnswer(s"""select sum(productionDate)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_262") + checkAnswer(s"""select sum(productionDate)/10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)/10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_262") } - //Comp_VMALL_DICTIONARY_INCLUDE_263 - test("Comp_VMALL_DICTIONARY_INCLUDE_263", Include) { + //Comp_DICTIONARY_INCLUDE_263 + test("Comp_DICTIONARY_INCLUDE_263", Include) { - checkAnswer(s"""select sum(productionDate)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_263") + checkAnswer(s"""select sum(productionDate)-10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)-10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_263") } - //Comp_VMALL_DICTIONARY_INCLUDE_264 - test("Comp_VMALL_DICTIONARY_INCLUDE_264", Include) { + //Comp_DICTIONARY_INCLUDE_264 + test("Comp_DICTIONARY_INCLUDE_264", Include) { - checkAnswer(s"""select sum(deviceInformationId)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)+10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_264") + checkAnswer(s"""select sum(deviceInformationId)+10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)+10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_264") } - //Comp_VMALL_DICTIONARY_INCLUDE_265 - test("Comp_VMALL_DICTIONARY_INCLUDE_265", Include) { + //Comp_DICTIONARY_INCLUDE_265 + test("Comp_DICTIONARY_INCLUDE_265", Include) { - checkAnswer(s"""select sum(deviceInformationId)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)*10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_265") + checkAnswer(s"""select sum(deviceInformationId)*10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)*10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_265") } - //Comp_VMALL_DICTIONARY_INCLUDE_266 - test("Comp_VMALL_DICTIONARY_INCLUDE_266", Include) { + //Comp_DICTIONARY_INCLUDE_266 + test("Comp_DICTIONARY_INCLUDE_266", Include) { - checkAnswer(s"""select sum(deviceInformationId)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)/10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_266") + checkAnswer(s"""select sum(deviceInformationId)/10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)/10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_266") } - //Comp_VMALL_DICTIONARY_INCLUDE_267 - test("Comp_VMALL_DICTIONARY_INCLUDE_267", Include) { + //Comp_DICTIONARY_INCLUDE_267 + test("Comp_DICTIONARY_INCLUDE_267", Include) { - checkAnswer(s"""select sum(deviceInformationId)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)-10 as a from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_267") + checkAnswer(s"""select sum(deviceInformationId)-10 as a from Comp_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)-10 as a from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_267") } - //Comp_VMALL_DICTIONARY_INCLUDE_292 - test("Comp_VMALL_DICTIONARY_INCLUDE_292", Include) { + //Comp_DICTIONARY_INCLUDE_292 + test("Comp_DICTIONARY_INCLUDE_292", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate LIKE '2015-09-30%'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_292") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE where productiondate LIKE '2015-09-30%'""", + s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_292") } - //Comp_VMALL_DICTIONARY_INCLUDE_293 - test("Comp_VMALL_DICTIONARY_INCLUDE_293", Include) { + //Comp_DICTIONARY_INCLUDE_293 + test("Comp_DICTIONARY_INCLUDE_293", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate LIKE '% %'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '% %'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_293") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE where productiondate LIKE '% %'""", + s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate LIKE '% %'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_293") } - //Comp_VMALL_DICTIONARY_INCLUDE_294 - test("Comp_VMALL_DICTIONARY_INCLUDE_294", Include) { + //Comp_DICTIONARY_INCLUDE_294 + test("Comp_DICTIONARY_INCLUDE_294", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate LIKE '%12:07:28'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_294") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE where productiondate LIKE '%12:07:28'""", + s"""SELECT productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_294") } - //Comp_VMALL_DICTIONARY_INCLUDE_295 - test("Comp_VMALL_DICTIONARY_INCLUDE_295", Include) { + //Comp_DICTIONARY_INCLUDE_295 + test("Comp_DICTIONARY_INCLUDE_295", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE where contractnumber like '922337204%' """, - s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '922337204%' """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_295") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_INCLUDE where contractnumber like '922337204%' """, + s"""select contractnumber from Comp_DICTIONARY_INCLUDE_hive where contractnumber like '922337204%' """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_295") } - //Comp_VMALL_DICTIONARY_INCLUDE_296 - test("Comp_VMALL_DICTIONARY_INCLUDE_296", Include) { + //Comp_DICTIONARY_INCLUDE_296 + test("Comp_DICTIONARY_INCLUDE_296", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE where contractnumber like '%047800'""", - s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '%047800'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_296") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_INCLUDE where contractnumber like '%047800'""", + s"""select contractnumber from Comp_DICTIONARY_INCLUDE_hive where contractnumber like '%047800'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_296") } - //Comp_VMALL_DICTIONARY_INCLUDE_297 - test("Comp_VMALL_DICTIONARY_INCLUDE_297", Include) { + //Comp_DICTIONARY_INCLUDE_297 + test("Comp_DICTIONARY_INCLUDE_297", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE where contractnumber like '%720%'""", - s"""select contractnumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '%720%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_297") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_INCLUDE where contractnumber like '%720%'""", + s"""select contractnumber from Comp_DICTIONARY_INCLUDE_hive where contractnumber like '%720%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_297") } - //Comp_VMALL_DICTIONARY_INCLUDE_298 - test("Comp_VMALL_DICTIONARY_INCLUDE_298", Include) { + //Comp_DICTIONARY_INCLUDE_298 + test("Comp_DICTIONARY_INCLUDE_298", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY like '12345678%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_298") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY like '12345678%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_298") } - //Comp_VMALL_DICTIONARY_INCLUDE_299 - test("Comp_VMALL_DICTIONARY_INCLUDE_299", Include) { + //Comp_DICTIONARY_INCLUDE_299 + test("Comp_DICTIONARY_INCLUDE_299", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY like '%5678%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_299") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY like '%5678%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_299") } - //Comp_VMALL_DICTIONARY_INCLUDE_300 - test("Comp_VMALL_DICTIONARY_INCLUDE_300", Include) { + //Comp_DICTIONARY_INCLUDE_300 + test("Comp_DICTIONARY_INCLUDE_300", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY like '1234567%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_300") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY like '1234567%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_300") } - //Comp_VMALL_DICTIONARY_INCLUDE_301 - test("Comp_VMALL_DICTIONARY_INCLUDE_301", Include) { + //Comp_DICTIONARY_INCLUDE_301 + test("Comp_DICTIONARY_INCLUDE_301", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE where gamepointID like '1.1098347722%'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_301") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE where gamepointID like '1.1098347722%'""", + s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_301") } - //Comp_VMALL_DICTIONARY_INCLUDE_302 - test("Comp_VMALL_DICTIONARY_INCLUDE_302", Include) { + //Comp_DICTIONARY_INCLUDE_302 + test("Comp_DICTIONARY_INCLUDE_302", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE where gamepointID like '%8347722%'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '%8347722%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_302") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE where gamepointID like '%8347722%'""", + s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE_hive where gamepointID like '%8347722%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_302") } - //Comp_VMALL_DICTIONARY_INCLUDE_303 - test("Comp_VMALL_DICTIONARY_INCLUDE_303", Include) { + //Comp_DICTIONARY_INCLUDE_303 + test("Comp_DICTIONARY_INCLUDE_303", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE where gamepointID like '%7512E42'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '%7512E42'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_303") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE where gamepointID like '%7512E42'""", + s"""SELECT gamepointID from Comp_DICTIONARY_INCLUDE_hive where gamepointID like '%7512E42'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_303") } - //Comp_VMALL_DICTIONARY_INCLUDE_304 - test("Comp_VMALL_DICTIONARY_INCLUDE_304", Include) { + //Comp_DICTIONARY_INCLUDE_304 + test("Comp_DICTIONARY_INCLUDE_304", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid like '1000%'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '1000%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_304") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid like '1000%'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid like '1000%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_304") } - //Comp_VMALL_DICTIONARY_INCLUDE_305 - test("Comp_VMALL_DICTIONARY_INCLUDE_305", Include) { + //Comp_DICTIONARY_INCLUDE_305 + test("Comp_DICTIONARY_INCLUDE_305", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid like '%00%'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '%00%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_305") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid like '%00%'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid like '%00%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_305") } - //Comp_VMALL_DICTIONARY_INCLUDE_306 - test("Comp_VMALL_DICTIONARY_INCLUDE_306", Include) { + //Comp_DICTIONARY_INCLUDE_306 + test("Comp_DICTIONARY_INCLUDE_306", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid like '%0084'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '%0084'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_306") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid like '%0084'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid like '%0084'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_306") } - //Comp_VMALL_DICTIONARY_INCLUDE_307 - test("Comp_VMALL_DICTIONARY_INCLUDE_307", Include) { + //Comp_DICTIONARY_INCLUDE_307 + test("Comp_DICTIONARY_INCLUDE_307", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei like '1AA10%'""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei like '1AA10%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_307") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei like '1AA10%'""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei like '1AA10%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_307") } - //Comp_VMALL_DICTIONARY_INCLUDE_308 - test("Comp_VMALL_DICTIONARY_INCLUDE_308", Include) { + //Comp_DICTIONARY_INCLUDE_308 + test("Comp_DICTIONARY_INCLUDE_308", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei like '%A10%'""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei like '%A10%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_308") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei like '%A10%'""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei like '%A10%'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_308") } - //Comp_VMALL_DICTIONARY_INCLUDE_309 - test("Comp_VMALL_DICTIONARY_INCLUDE_309", Include) { + //Comp_DICTIONARY_INCLUDE_309 + test("Comp_DICTIONARY_INCLUDE_309", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei like '%00084'""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei like '%00084'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_309") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei like '%00084'""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei like '%00084'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_309") } - //Comp_VMALL_DICTIONARY_INCLUDE_310 - test("Comp_VMALL_DICTIONARY_INCLUDE_310", Include) { + //Comp_DICTIONARY_INCLUDE_310 + test("Comp_DICTIONARY_INCLUDE_310", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_310") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_310") } - //Comp_VMALL_DICTIONARY_INCLUDE_311 - test("Comp_VMALL_DICTIONARY_INCLUDE_311", Include) { + //Comp_DICTIONARY_INCLUDE_311 + test("Comp_DICTIONARY_INCLUDE_311", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_311") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_311") } - //Comp_VMALL_DICTIONARY_INCLUDE_312 - test("Comp_VMALL_DICTIONARY_INCLUDE_312", Include) { + //Comp_DICTIONARY_INCLUDE_312 + test("Comp_DICTIONARY_INCLUDE_312", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid in (100081,100078,10008)""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_312") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid in (100081,100078,10008)""", + s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_312") } - //Comp_VMALL_DICTIONARY_INCLUDE_313 - test("Comp_VMALL_DICTIONARY_INCLUDE_313", Include) { + //Comp_DICTIONARY_INCLUDE_313 + test("Comp_DICTIONARY_INCLUDE_313", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid not in (100081,100078,10008)""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_313") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid not in (100081,100078,10008)""", + s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_313") } - //Comp_VMALL_DICTIONARY_INCLUDE_314 - test("Comp_VMALL_DICTIONARY_INCLUDE_314", Include) { + //Comp_DICTIONARY_INCLUDE_314 + test("Comp_DICTIONARY_INCLUDE_314", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", - s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_314") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_INCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", + s"""select productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_314") } - //Comp_VMALL_DICTIONARY_INCLUDE_315 - test("Comp_VMALL_DICTIONARY_INCLUDE_315", Include) { + //Comp_DICTIONARY_INCLUDE_315 + test("Comp_DICTIONARY_INCLUDE_315", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", - s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_315") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_INCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", + s"""select productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_315") } - //Comp_VMALL_DICTIONARY_INCLUDE_316 - test("Comp_VMALL_DICTIONARY_INCLUDE_316", Include) { + //Comp_DICTIONARY_INCLUDE_316 + test("Comp_DICTIONARY_INCLUDE_316", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_316") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_INCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from Comp_DICTIONARY_INCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_316") } - //Comp_VMALL_DICTIONARY_INCLUDE_317 - test("Comp_VMALL_DICTIONARY_INCLUDE_317", Include) { + //Comp_DICTIONARY_INCLUDE_317 + test("Comp_DICTIONARY_INCLUDE_317", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_317") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_INCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from Comp_DICTIONARY_INCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_317") } - //Comp_VMALL_DICTIONARY_INCLUDE_318 - test("Comp_VMALL_DICTIONARY_INCLUDE_318", Include) { + //Comp_DICTIONARY_INCLUDE_318 + test("Comp_DICTIONARY_INCLUDE_318", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_318") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_318") } - //Comp_VMALL_DICTIONARY_INCLUDE_319 - test("Comp_VMALL_DICTIONARY_INCLUDE_319", Include) { + //Comp_DICTIONARY_INCLUDE_319 + test("Comp_DICTIONARY_INCLUDE_319", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_319") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_319") } - //Comp_VMALL_DICTIONARY_INCLUDE_322 - test("Comp_VMALL_DICTIONARY_INCLUDE_322", Include) { + //Comp_DICTIONARY_INCLUDE_322 + test("Comp_DICTIONARY_INCLUDE_322", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei !='1AA100077'""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_322") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei !='1AA100077'""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei !='1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_322") } - //Comp_VMALL_DICTIONARY_INCLUDE_323 - test("Comp_VMALL_DICTIONARY_INCLUDE_323", Include) { + //Comp_DICTIONARY_INCLUDE_323 + test("Comp_DICTIONARY_INCLUDE_323", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei NOT LIKE '1AA100077'""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_323") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei NOT LIKE '1AA100077'""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_323") } - //Comp_VMALL_DICTIONARY_INCLUDE_324 - test("Comp_VMALL_DICTIONARY_INCLUDE_324", Include) { + //Comp_DICTIONARY_INCLUDE_324 + test("Comp_DICTIONARY_INCLUDE_324", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid !=100078""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid !=100078""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_324") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid !=100078""", + s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid !=100078""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_324") } - //Comp_VMALL_DICTIONARY_INCLUDE_325 - test("Comp_VMALL_DICTIONARY_INCLUDE_325", Include) { + //Comp_DICTIONARY_INCLUDE_325 + test("Comp_DICTIONARY_INCLUDE_325", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationid NOT LIKE 100079""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_325") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE where deviceinformationid NOT LIKE 100079""", + s"""select deviceinformationid from Comp_DICTIONARY_INCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_325") } - //Comp_VMALL_DICTIONARY_INCLUDE_326 - test("Comp_VMALL_DICTIONARY_INCLUDE_326", Include) { + //Comp_DICTIONARY_INCLUDE_326 + test("Comp_DICTIONARY_INCLUDE_326", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate !='2015-10-07 12:07:28'""", - s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_326") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_INCLUDE where productiondate !='2015-10-07 12:07:28'""", + s"""select productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_326") } - //Comp_VMALL_DICTIONARY_INCLUDE_327 - ignore("Comp_VMALL_DICTIONARY_INCLUDE_327", Include) { + //Comp_DICTIONARY_INCLUDE_327 + ignore("Comp_DICTIONARY_INCLUDE_327", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", - s"""select productiondate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_327") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_INCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", + s"""select productiondate from Comp_DICTIONARY_INCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_327") } - //Comp_VMALL_DICTIONARY_INCLUDE_328 - test("Comp_VMALL_DICTIONARY_INCLUDE_328", Include) { + //Comp_DICTIONARY_INCLUDE_328 + test("Comp_DICTIONARY_INCLUDE_328", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE where gamepointid !=6.8591561117512E42""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_328") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_INCLUDE where gamepointid !=6.8591561117512E42""", + s"""select gamepointid from Comp_DICTIONARY_INCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_328") } - //Comp_VMALL_DICTIONARY_INCLUDE_329 - test("Comp_VMALL_DICTIONARY_INCLUDE_329", Include) { + //Comp_DICTIONARY_INCLUDE_329 + test("Comp_DICTIONARY_INCLUDE_329", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_329") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_INCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", + s"""select gamepointid from Comp_DICTIONARY_INCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_329") } - //Comp_VMALL_DICTIONARY_INCLUDE_330 - test("Comp_VMALL_DICTIONARY_INCLUDE_330", Include) { + //Comp_DICTIONARY_INCLUDE_330 + test("Comp_DICTIONARY_INCLUDE_330", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY != 1234567890123520.0000000000""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_330") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY != 1234567890123520.0000000000""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_330") } - //Comp_VMALL_DICTIONARY_INCLUDE_331 - test("Comp_VMALL_DICTIONARY_INCLUDE_331", Include) { + //Comp_DICTIONARY_INCLUDE_331 + test("Comp_DICTIONARY_INCLUDE_331", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_331") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_331") } - //Comp_VMALL_DICTIONARY_INCLUDE_335 - test("Comp_VMALL_DICTIONARY_INCLUDE_335", Include) { + //Comp_DICTIONARY_INCLUDE_335 + test("Comp_DICTIONARY_INCLUDE_335", Include) { - checkAnswer(s"""SELECT productiondate,IMEI from Comp_VMALL_DICTIONARY_INCLUDE where IMEI RLIKE '1AA100077'""", - s"""SELECT productiondate,IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_335") + checkAnswer(s"""SELECT productiondate,IMEI from Comp_DICTIONARY_INCLUDE where IMEI RLIKE '1AA100077'""", + s"""SELECT productiondate,IMEI from Comp_DICTIONARY_INCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_335") } - //Comp_VMALL_DICTIONARY_INCLUDE_336 - test("Comp_VMALL_DICTIONARY_INCLUDE_336", Include) { + //Comp_DICTIONARY_INCLUDE_336 + test("Comp_DICTIONARY_INCLUDE_336", Include) { - checkAnswer(s"""SELECT deviceinformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceinformationId RLIKE '100079'""", - s"""SELECT deviceinformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_336") + checkAnswer(s"""SELECT deviceinformationId from Comp_DICTIONARY_INCLUDE where deviceinformationId RLIKE '100079'""", + s"""SELECT deviceinformationId from Comp_DICTIONARY_INCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_336") } - //Comp_VMALL_DICTIONARY_INCLUDE_337 - test("Comp_VMALL_DICTIONARY_INCLUDE_337", Include) { + //Comp_DICTIONARY_INCLUDE_337 + test("Comp_DICTIONARY_INCLUDE_337", Include) { - checkAnswer(s"""SELECT gamepointid from Comp_VMALL_DICTIONARY_INCLUDE where gamepointid RLIKE '1.61922711065643E42'""", - s"""SELECT gamepointid from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_337") + checkAnswer(s"""SELECT gamepointid from Comp_DICTIONARY_INCLUDE where gamepointid RLIKE '1.61922711065643E42'""", + s"""SELECT gamepointid from Comp_DICTIONARY_INCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_337") } - //Comp_VMALL_DICTIONARY_INCLUDE_338 - test("Comp_VMALL_DICTIONARY_INCLUDE_338", Include) { + //Comp_DICTIONARY_INCLUDE_338 + test("Comp_DICTIONARY_INCLUDE_338", Include) { - checkAnswer(s"""SELECT Latest_Day from Comp_VMALL_DICTIONARY_INCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", - s"""SELECT Latest_Day from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_338") + checkAnswer(s"""SELECT Latest_Day from Comp_DICTIONARY_INCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", + s"""SELECT Latest_Day from Comp_DICTIONARY_INCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_338") } - //Comp_VMALL_DICTIONARY_INCLUDE_339 - test("Comp_VMALL_DICTIONARY_INCLUDE_339", Include) { + //Comp_DICTIONARY_INCLUDE_339 + test("Comp_DICTIONARY_INCLUDE_339", Include) { - checkAnswer(s"""SELECT contractnumber from Comp_VMALL_DICTIONARY_INCLUDE where contractnumber RLIKE '9223372047800'""", - s"""SELECT contractnumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_339") + checkAnswer(s"""SELECT contractnumber from Comp_DICTIONARY_INCLUDE where contractnumber RLIKE '9223372047800'""", + s"""SELECT contractnumber from Comp_DICTIONARY_INCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_339") } - //Comp_VMALL_DICTIONARY_INCLUDE_340 - test("Comp_VMALL_DICTIONARY_INCLUDE_340", Include) { + //Comp_DICTIONARY_INCLUDE_340 + test("Comp_DICTIONARY_INCLUDE_340", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.productiondate=b.productiondate""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.productiondate=b.productiondate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_340") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.productiondate=b.productiondate""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.productiondate=b.productiondate""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_340") } - //Comp_VMALL_DICTIONARY_INCLUDE_341 - test("Comp_VMALL_DICTIONARY_INCLUDE_341", Include) { + //Comp_DICTIONARY_INCLUDE_341 + test("Comp_DICTIONARY_INCLUDE_341", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.deviceinformationid=b.deviceinformationid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_341") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.deviceinformationid=b.deviceinformationid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_341") } - //Comp_VMALL_DICTIONARY_INCLUDE_342 - test("Comp_VMALL_DICTIONARY_INCLUDE_342", Include) { + //Comp_DICTIONARY_INCLUDE_342 + test("Comp_DICTIONARY_INCLUDE_342", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.imei=b.imei""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.imei=b.imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_342") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.imei=b.imei""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.imei=b.imei""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_342") } - //Comp_VMALL_DICTIONARY_INCLUDE_343 - test("Comp_VMALL_DICTIONARY_INCLUDE_343", Include) { + //Comp_DICTIONARY_INCLUDE_343 + test("Comp_DICTIONARY_INCLUDE_343", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.gamepointid=b.gamepointid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.gamepointid=b.gamepointid""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_343") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.gamepointid=b.gamepointid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.gamepointid=b.gamepointid""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_343") } - //Comp_VMALL_DICTIONARY_INCLUDE_344 - test("Comp_VMALL_DICTIONARY_INCLUDE_344", Include) { + //Comp_DICTIONARY_INCLUDE_344 + test("Comp_DICTIONARY_INCLUDE_344", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.Latest_Day=b.Latest_Day""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.Latest_Day=b.Latest_Day""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_344") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.Latest_Day=b.Latest_Day""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.Latest_Day=b.Latest_Day""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_344") } - //Comp_VMALL_DICTIONARY_INCLUDE_345 - test("Comp_VMALL_DICTIONARY_INCLUDE_345", Include) { + //Comp_DICTIONARY_INCLUDE_345 + test("Comp_DICTIONARY_INCLUDE_345", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE a join Comp_VMALL_DICTIONARY_INCLUDE b on a.contractnumber=b.contractnumber""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive a join Comp_VMALL_DICTIONARY_INCLUDE_hive b on a.contractnumber=b.contractnumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_345") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE a join Comp_DICTIONARY_INCLUDE b on a.contractnumber=b.contractnumber""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_INCLUDE_hive a join Comp_DICTIONARY_INCLUDE_hive b on a.contractnumber=b.contractnumber""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_345") } - //Comp_VMALL_DICTIONARY_INCLUDE_346 - test("Comp_VMALL_DICTIONARY_INCLUDE_346", Include) { + //Comp_DICTIONARY_INCLUDE_346 + test("Comp_DICTIONARY_INCLUDE_346", Include) { - checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_346") + checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_DICTIONARY_INCLUDE""", + s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_346") } - //Comp_VMALL_DICTIONARY_INCLUDE_347 - test("Comp_VMALL_DICTIONARY_INCLUDE_347", Include) { + //Comp_DICTIONARY_INCLUDE_347 + test("Comp_DICTIONARY_INCLUDE_347", Include) { - checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_347") + checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_DICTIONARY_INCLUDE""", + s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_347") } - //Comp_VMALL_DICTIONARY_INCLUDE_348 - test("Comp_VMALL_DICTIONARY_INCLUDE_348", Include) { + //Comp_DICTIONARY_INCLUDE_348 + test("Comp_DICTIONARY_INCLUDE_348", Include) { - sql(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_349 - test("Comp_VMALL_DICTIONARY_INCLUDE_349", Include) { + //Comp_DICTIONARY_INCLUDE_349 + test("Comp_DICTIONARY_INCLUDE_349", Include) { - checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_349") + checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_DICTIONARY_INCLUDE""", + s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_349") } - //Comp_VMALL_DICTIONARY_INCLUDE_350 - test("Comp_VMALL_DICTIONARY_INCLUDE_350", Include) { + //Comp_DICTIONARY_INCLUDE_350 + test("Comp_DICTIONARY_INCLUDE_350", Include) { - checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_350") + checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_DICTIONARY_INCLUDE""", + s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_350") } - //Comp_VMALL_DICTIONARY_INCLUDE_351 - test("Comp_VMALL_DICTIONARY_INCLUDE_351", Include) { + //Comp_DICTIONARY_INCLUDE_351 + test("Comp_DICTIONARY_INCLUDE_351", Include) { - checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_351") + checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_DICTIONARY_INCLUDE""", + s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_351") } - //Comp_VMALL_DICTIONARY_INCLUDE_352 - test("Comp_VMALL_DICTIONARY_INCLUDE_352", Include) { + //Comp_DICTIONARY_INCLUDE_352 + test("Comp_DICTIONARY_INCLUDE_352", Include) { - checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_352") + checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_352") } - //Comp_VMALL_DICTIONARY_INCLUDE_353 - test("Comp_VMALL_DICTIONARY_INCLUDE_353", Include) { + //Comp_DICTIONARY_INCLUDE_353 + test("Comp_DICTIONARY_INCLUDE_353", Include) { - checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_353") + checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_DICTIONARY_INCLUDE""", + s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_353") } - //Comp_VMALL_DICTIONARY_INCLUDE_354 - test("Comp_VMALL_DICTIONARY_INCLUDE_354", Include) { + //Comp_DICTIONARY_INCLUDE_354 + test("Comp_DICTIONARY_INCLUDE_354", Include) { - sql(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from Comp_VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from Comp_DICTIONARY_INCLUDE""").collect } - //Comp_VMALL_DICTIONARY_INCLUDE_355 - test("Comp_VMALL_DICTIONARY_INCLUDE_355", Include) { + //Comp_DICTIONARY_INCLUDE_355 + test("Comp_DICTIONARY_INCLUDE_355", Include) { - checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_355") + checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_DICTIONARY_INCLUDE""", + s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_355") } - //Comp_VMALL_DICTIONARY_INCLUDE_356 - test("Comp_VMALL_DICTIONARY_INCLUDE_356", Include) { + //Comp_DICTIONARY_INCLUDE_356 + test("Comp_DICTIONARY_INCLUDE_356", Include) { - checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_356") + checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_DICTIONARY_INCLUDE""", + s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_356") } - //Comp_VMALL_DICTIONARY_INCLUDE_357 - test("Comp_VMALL_DICTIONARY_INCLUDE_357", Include) { + //Comp_DICTIONARY_INCLUDE_357 + test("Comp_DICTIONARY_INCLUDE_357", Include) { - checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_357") + checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_DICTIONARY_INCLUDE""", + s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_357") } - //Comp_VMALL_DICTIONARY_INCLUDE_358 - test("Comp_VMALL_DICTIONARY_INCLUDE_358", Include) { + //Comp_DICTIONARY_INCLUDE_358 + test("Comp_DICTIONARY_INCLUDE_358", Include) { - checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_358") + checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_DICTIONARY_INCLUDE""", + s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_358") } - //Comp_VMALL_DICTIONARY_INCLUDE_359 - test("Comp_VMALL_DICTIONARY_INCLUDE_359", Include) { + //Comp_DICTIONARY_INCLUDE_359 + test("Comp_DICTIONARY_INCLUDE_359", Include) { - checkAnswer(s"""select count(MAC) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(MAC) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_359") + checkAnswer(s"""select count(MAC) from Comp_DICTIONARY_INCLUDE""", + s"""select count(MAC) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_359") } - //Comp_VMALL_DICTIONARY_INCLUDE_360 - test("Comp_VMALL_DICTIONARY_INCLUDE_360", Include) { + //Comp_DICTIONARY_INCLUDE_360 + test("Comp_DICTIONARY_INCLUDE_360", Include) { - checkAnswer(s"""select count(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(gamePointId) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_360") + checkAnswer(s"""select count(gamePointId) from Comp_DICTIONARY_INCLUDE""", + s"""select count(gamePointId) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_360") } - //Comp_VMALL_DICTIONARY_INCLUDE_361 - test("Comp_VMALL_DICTIONARY_INCLUDE_361", Include) { + //Comp_DICTIONARY_INCLUDE_361 + test("Comp_DICTIONARY_INCLUDE_361", Include) { - checkAnswer(s"""select count(contractNumber) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(contractNumber) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_361") + checkAnswer(s"""select count(contractNumber) from Comp_DICTIONARY_INCLUDE""", + s"""select count(contractNumber) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_361") } - //Comp_VMALL_DICTIONARY_INCLUDE_362 - test("Comp_VMALL_DICTIONARY_INCLUDE_362", Include) { + //Comp_DICTIONARY_INCLUDE_362 + test("Comp_DICTIONARY_INCLUDE_362", Include) { - checkAnswer(s"""select count(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(Latest_DAY) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_362") + checkAnswer(s"""select count(Latest_DAY) from Comp_DICTIONARY_INCLUDE""", + s"""select count(Latest_DAY) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_362") } - //Comp_VMALL_DICTIONARY_INCLUDE_363 - test("Comp_VMALL_DICTIONARY_INCLUDE_363", Include) { + //Comp_DICTIONARY_INCLUDE_363 + test("Comp_DICTIONARY_INCLUDE_363", Include) { - checkAnswer(s"""select count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(productionDate) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_363") + checkAnswer(s"""select count(productionDate) from Comp_DICTIONARY_INCLUDE""", + s"""select count(productionDate) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_363") } - //Comp_VMALL_DICTIONARY_INCLUDE_364 - test("Comp_VMALL_DICTIONARY_INCLUDE_364", Include) { + //Comp_DICTIONARY_INCLUDE_364 + test("Comp_DICTIONARY_INCLUDE_364", Include) { - checkAnswer(s"""select count(deviceInformationId) from Comp_VMALL_DICTIONARY_INCLUDE""", - s"""select count(deviceInformationId) from Comp_VMALL_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_364") + checkAnswer(s"""select count(deviceInformationId) from Comp_DICTIONARY_INCLUDE""", + s"""select count(deviceInformationId) from Comp_DICTIONARY_INCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_364") } - //Comp_VMALL_DICTIONARY_INCLUDE_365 - test("Comp_VMALL_DICTIONARY_INCLUDE_365", Include) { + //Comp_DICTIONARY_INCLUDE_365 + test("Comp_DICTIONARY_INCLUDE_365", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber != '9223372047700'""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber != '9223372047700'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_365") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where contractNumber != '9223372047700'""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where contractNumber != '9223372047700'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_365") } - //Comp_VMALL_DICTIONARY_INCLUDE_366 - test("Comp_VMALL_DICTIONARY_INCLUDE_366", Include) { + //Comp_DICTIONARY_INCLUDE_366 + test("Comp_DICTIONARY_INCLUDE_366", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_366") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_366") } - //Comp_VMALL_DICTIONARY_INCLUDE_367 - test("Comp_VMALL_DICTIONARY_INCLUDE_367", Include) { + //Comp_DICTIONARY_INCLUDE_367 + test("Comp_DICTIONARY_INCLUDE_367", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_367") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_367") } - //Comp_VMALL_DICTIONARY_INCLUDE_368 - test("Comp_VMALL_DICTIONARY_INCLUDE_368", Include) { + //Comp_DICTIONARY_INCLUDE_368 + test("Comp_DICTIONARY_INCLUDE_368", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_368") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_368") } - //Comp_VMALL_DICTIONARY_INCLUDE_369 - test("Comp_VMALL_DICTIONARY_INCLUDE_369", Include) { + //Comp_DICTIONARY_INCLUDE_369 + test("Comp_DICTIONARY_INCLUDE_369", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_369") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_369") } - //Comp_VMALL_DICTIONARY_INCLUDE_370 - test("Comp_VMALL_DICTIONARY_INCLUDE_370", Include) { + //Comp_DICTIONARY_INCLUDE_370 + test("Comp_DICTIONARY_INCLUDE_370", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_370") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_370") } - //Comp_VMALL_DICTIONARY_INCLUDE_371 - test("Comp_VMALL_DICTIONARY_INCLUDE_371", Include) { + //Comp_DICTIONARY_INCLUDE_371 + test("Comp_DICTIONARY_INCLUDE_371", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_371") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_371") } - //Comp_VMALL_DICTIONARY_INCLUDE_372 - test("Comp_VMALL_DICTIONARY_INCLUDE_372", Include) { + //Comp_DICTIONARY_INCLUDE_372 + test("Comp_DICTIONARY_INCLUDE_372", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_372") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_372") } - //Comp_VMALL_DICTIONARY_INCLUDE_373 - ignore("Comp_VMALL_DICTIONARY_INCLUDE_373", Include) { + //Comp_DICTIONARY_INCLUDE_373 + ignore("Comp_DICTIONARY_INCLUDE_373", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_373") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_373") } - //Comp_VMALL_DICTIONARY_INCLUDE_374 - test("Comp_VMALL_DICTIONARY_INCLUDE_374", Include) { + //Comp_DICTIONARY_INCLUDE_374 + test("Comp_DICTIONARY_INCLUDE_374", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_374") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_INCLUDE_374") } - //Comp_VMALL_DICTIONARY_INCLUDE_375 - test("Comp_VMALL_DICTIONARY_INCLUDE_375", Include) { + //Comp_DICTIONARY_INCLUDE_375 + test("Comp_DICTIONARY_INCLUDE_375", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei is not null""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_375") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei is not null""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_375") } - //Comp_VMALL_DICTIONARY_INCLUDE_376 - test("Comp_VMALL_DICTIONARY_INCLUDE_376", Include) { + //Comp_DICTIONARY_INCLUDE_376 + test("Comp_DICTIONARY_INCLUDE_376", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId is not null""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_376") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId is not null""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_376") } - //Comp_VMALL_DICTIONARY_INCLUDE_377 - test("Comp_VMALL_DICTIONARY_INCLUDE_377", Include) { + //Comp_DICTIONARY_INCLUDE_377 + test("Comp_DICTIONARY_INCLUDE_377", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber is not null""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_377") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber is not null""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_377") } - //Comp_VMALL_DICTIONARY_INCLUDE_378 - test("Comp_VMALL_DICTIONARY_INCLUDE_378", Include) { + //Comp_DICTIONARY_INCLUDE_378 + test("Comp_DICTIONARY_INCLUDE_378", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY is not null""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_378") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY is not null""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_378") } - //Comp_VMALL_DICTIONARY_INCLUDE_379 - test("Comp_VMALL_DICTIONARY_INCLUDE_379", Include) { + //Comp_DICTIONARY_INCLUDE_379 + test("Comp_DICTIONARY_INCLUDE_379", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate is not null""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_379") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate is not null""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_379") } - //Comp_VMALL_DICTIONARY_INCLUDE_380 - test("Comp_VMALL_DICTIONARY_INCLUDE_380", Include) { + //Comp_DICTIONARY_INCLUDE_380 + test("Comp_DICTIONARY_INCLUDE_380", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId is not null""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_380") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId is not null""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId is not null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_380") } - //Comp_VMALL_DICTIONARY_INCLUDE_381 - test("Comp_VMALL_DICTIONARY_INCLUDE_381", Include) { + //Comp_DICTIONARY_INCLUDE_381 + test("Comp_DICTIONARY_INCLUDE_381", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE where imei is null""", - s"""select imei from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_381") + checkAnswer(s"""select imei from Comp_DICTIONARY_INCLUDE where imei is null""", + s"""select imei from Comp_DICTIONARY_INCLUDE_hive where imei is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_381") } - //Comp_VMALL_DICTIONARY_INCLUDE_382 - test("Comp_VMALL_DICTIONARY_INCLUDE_382", Include) { + //Comp_DICTIONARY_INCLUDE_382 + test("Comp_DICTIONARY_INCLUDE_382", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE where gamePointId is null""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_INCLUDE_hive where gamePointId is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_382") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_INCLUDE where gamePointId is null""", + s"""select gamePointId from Comp_DICTIONARY_INCLUDE_hive where gamePointId is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_382") } - //Comp_VMALL_DICTIONARY_INCLUDE_383 - test("Comp_VMALL_DICTIONARY_INCLUDE_383", Include) { + //Comp_DICTIONARY_INCLUDE_383 + test("Comp_DICTIONARY_INCLUDE_383", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE where contractNumber is null""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_INCLUDE_hive where contractNumber is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_383") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_INCLUDE where contractNumber is null""", + s"""select contractNumber from Comp_DICTIONARY_INCLUDE_hive where contractNumber is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_383") } - //Comp_VMALL_DICTIONARY_INCLUDE_384 - test("Comp_VMALL_DICTIONARY_INCLUDE_384", Include) { + //Comp_DICTIONARY_INCLUDE_384 + test("Comp_DICTIONARY_INCLUDE_384", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE where Latest_DAY is null""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_384") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE where Latest_DAY is null""", + s"""select Latest_DAY from Comp_DICTIONARY_INCLUDE_hive where Latest_DAY is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_384") } - //Comp_VMALL_DICTIONARY_INCLUDE_385 - test("Comp_VMALL_DICTIONARY_INCLUDE_385", Include) { + //Comp_DICTIONARY_INCLUDE_385 + test("Comp_DICTIONARY_INCLUDE_385", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE where productionDate is null""", - s"""select productionDate from Comp_VMALL_DICTIONARY_INCLUDE_hive where productionDate is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_385") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_INCLUDE where productionDate is null""", + s"""select productionDate from Comp_DICTIONARY_INCLUDE_hive where productionDate is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_385") } - //Comp_VMALL_DICTIONARY_INCLUDE_386 - test("Comp_VMALL_DICTIONARY_INCLUDE_386", Include) { + //Comp_DICTIONARY_INCLUDE_386 + test("Comp_DICTIONARY_INCLUDE_386", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE where deviceInformationId is null""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_386") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE where deviceInformationId is null""", + s"""select deviceInformationId from Comp_DICTIONARY_INCLUDE_hive where deviceInformationId is null""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_386") } - //Comp_VMALL_DICTIONARY_INCLUDE_387 - test("Comp_VMALL_DICTIONARY_INCLUDE_387", Include) { + //Comp_DICTIONARY_INCLUDE_387 + test("Comp_DICTIONARY_INCLUDE_387", Include) { - checkAnswer(s"""select count(*) from Comp_VMALL_DICTIONARY_INCLUDE where imei = '1AA1'""", - s"""select count(*) from Comp_VMALL_DICTIONARY_INCLUDE_hive where imei = '1AA1'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_INCLUDE_387") + checkAnswer(s"""select count(*) from Comp_DICTIONARY_INCLUDE where imei = '1AA1'""", + s"""select count(*) from Comp_DICTIONARY_INCLUDE_hive where imei = '1AA1'""", "QueriesCompactionTestCase_DICTIONARY_INCLUDE_387") } - //Comp_VMALL_DICTIONARY_EXCLUDE_001 - test("Comp_VMALL_DICTIONARY_EXCLUDE_001", Include) { + //Comp_DICTIONARY_EXCLUDE_001 + test("Comp_DICTIONARY_EXCLUDE_001", Include) { - checkAnswer(s"""Select count(imei) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(imei) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_001") + checkAnswer(s"""Select count(imei) from Comp_DICTIONARY_EXCLUDE""", + s"""Select count(imei) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_001") } - //Comp_VMALL_DICTIONARY_EXCLUDE_002 - test("Comp_VMALL_DICTIONARY_EXCLUDE_002", Include) { + //Comp_DICTIONARY_EXCLUDE_002 + test("Comp_DICTIONARY_EXCLUDE_002", Include) { - checkAnswer(s"""select count(DISTINCT imei) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT imei) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_002") + checkAnswer(s"""select count(DISTINCT imei) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT imei) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_002") } - //Comp_VMALL_DICTIONARY_EXCLUDE_003 - test("Comp_VMALL_DICTIONARY_EXCLUDE_003", Include) { + //Comp_DICTIONARY_EXCLUDE_003 + test("Comp_DICTIONARY_EXCLUDE_003", Include) { - checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from Comp_VMALL_DICTIONARY_EXCLUDE group by imei order by imei""", - s"""select sum(Latest_month)+10 as a ,imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_003") + checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from Comp_DICTIONARY_EXCLUDE group by imei order by imei""", + s"""select sum(Latest_month)+10 as a ,imei from Comp_DICTIONARY_EXCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_003") } - //Comp_VMALL_DICTIONARY_EXCLUDE_004 - test("Comp_VMALL_DICTIONARY_EXCLUDE_004", Include) { + //Comp_DICTIONARY_EXCLUDE_004 + test("Comp_DICTIONARY_EXCLUDE_004", Include) { - checkAnswer(s"""select max(imei),min(imei) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select max(imei),min(imei) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_004") + checkAnswer(s"""select max(imei),min(imei) from Comp_DICTIONARY_EXCLUDE""", + s"""select max(imei),min(imei) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_004") } - //Comp_VMALL_DICTIONARY_EXCLUDE_005 - test("Comp_VMALL_DICTIONARY_EXCLUDE_005", Include) { + //Comp_DICTIONARY_EXCLUDE_005 + test("Comp_DICTIONARY_EXCLUDE_005", Include) { - checkAnswer(s"""select min(imei), max(imei) Total from Comp_VMALL_DICTIONARY_EXCLUDE group by channelsId order by Total""", - s"""select min(imei), max(imei) Total from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_005") + checkAnswer(s"""select min(imei), max(imei) Total from Comp_DICTIONARY_EXCLUDE group by channelsId order by Total""", + s"""select min(imei), max(imei) Total from Comp_DICTIONARY_EXCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_005") } - //Comp_VMALL_DICTIONARY_EXCLUDE_006 - test("Comp_VMALL_DICTIONARY_EXCLUDE_006", Include) { + //Comp_DICTIONARY_EXCLUDE_006 + test("Comp_DICTIONARY_EXCLUDE_006", Include) { - checkAnswer(s"""select last(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE group by imei order by imei limit 1""", - s"""select last(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by imei order by imei limit 1""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_006") + checkAnswer(s"""select last(imei) a from Comp_DICTIONARY_EXCLUDE group by imei order by imei limit 1""", + s"""select last(imei) a from Comp_DICTIONARY_EXCLUDE_hive group by imei order by imei limit 1""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_006") } - //Comp_VMALL_DICTIONARY_EXCLUDE_007 - test("Comp_VMALL_DICTIONARY_EXCLUDE_007", Include) { + //Comp_DICTIONARY_EXCLUDE_007 + test("Comp_DICTIONARY_EXCLUDE_007", Include) { - sql(s"""select FIRST(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect + sql(s"""select FIRST(imei) a from Comp_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_008 - test("Comp_VMALL_DICTIONARY_EXCLUDE_008", Include) { + //Comp_DICTIONARY_EXCLUDE_008 + test("Comp_DICTIONARY_EXCLUDE_008", Include) { - checkAnswer(s"""select imei,count(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE group by imei order by imei""", - s"""select imei,count(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_008") + checkAnswer(s"""select imei,count(imei) a from Comp_DICTIONARY_EXCLUDE group by imei order by imei""", + s"""select imei,count(imei) a from Comp_DICTIONARY_EXCLUDE_hive group by imei order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_008") } - //Comp_VMALL_DICTIONARY_EXCLUDE_009 - test("Comp_VMALL_DICTIONARY_EXCLUDE_009", Include) { + //Comp_DICTIONARY_EXCLUDE_009 + test("Comp_DICTIONARY_EXCLUDE_009", Include) { - checkAnswer(s"""select Lower(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE order by imei""", - s"""select Lower(imei) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_009") + checkAnswer(s"""select Lower(imei) a from Comp_DICTIONARY_EXCLUDE order by imei""", + s"""select Lower(imei) a from Comp_DICTIONARY_EXCLUDE_hive order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_009") } - //Comp_VMALL_DICTIONARY_EXCLUDE_010 - test("Comp_VMALL_DICTIONARY_EXCLUDE_010", Include) { + //Comp_DICTIONARY_EXCLUDE_010 + test("Comp_DICTIONARY_EXCLUDE_010", Include) { - checkAnswer(s"""select distinct imei from Comp_VMALL_DICTIONARY_EXCLUDE order by imei""", - s"""select distinct imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_010") + checkAnswer(s"""select distinct imei from Comp_DICTIONARY_EXCLUDE order by imei""", + s"""select distinct imei from Comp_DICTIONARY_EXCLUDE_hive order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_010") } - //Comp_VMALL_DICTIONARY_EXCLUDE_011 - test("Comp_VMALL_DICTIONARY_EXCLUDE_011", Include) { + //Comp_DICTIONARY_EXCLUDE_011 + test("Comp_DICTIONARY_EXCLUDE_011", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE order by imei limit 101 """, - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by imei limit 101 """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_011") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE order by imei limit 101 """, + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive order by imei limit 101 """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_011") } - //Comp_VMALL_DICTIONARY_EXCLUDE_012 - test("Comp_VMALL_DICTIONARY_EXCLUDE_012", Include) { + //Comp_DICTIONARY_EXCLUDE_012 + test("Comp_DICTIONARY_EXCLUDE_012", Include) { - checkAnswer(s"""select imei as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select imei as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_012") + checkAnswer(s"""select imei as a from Comp_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select imei as a from Comp_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_012") } - //Comp_VMALL_DICTIONARY_EXCLUDE_013 - test("Comp_VMALL_DICTIONARY_EXCLUDE_013", Include) { + //Comp_DICTIONARY_EXCLUDE_013 + test("Comp_DICTIONARY_EXCLUDE_013", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_013") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_013") } - //Comp_VMALL_DICTIONARY_EXCLUDE_014 - test("Comp_VMALL_DICTIONARY_EXCLUDE_014", Include) { + //Comp_DICTIONARY_EXCLUDE_014 + test("Comp_DICTIONARY_EXCLUDE_014", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei !='1AA100064' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_014") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei !='1AA100064' order by imei""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_014") } - //Comp_VMALL_DICTIONARY_EXCLUDE_015 - test("Comp_VMALL_DICTIONARY_EXCLUDE_015", Include) { + //Comp_DICTIONARY_EXCLUDE_015 + test("Comp_DICTIONARY_EXCLUDE_015", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_015") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_015") } - //Comp_VMALL_DICTIONARY_EXCLUDE_016 - test("Comp_VMALL_DICTIONARY_EXCLUDE_016", Include) { + //Comp_DICTIONARY_EXCLUDE_016 + test("Comp_DICTIONARY_EXCLUDE_016", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei !='1AA100012' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_016") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei !='1AA100012' order by imei""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_016") } - //Comp_VMALL_DICTIONARY_EXCLUDE_017 - test("Comp_VMALL_DICTIONARY_EXCLUDE_017", Include) { + //Comp_DICTIONARY_EXCLUDE_017 + test("Comp_DICTIONARY_EXCLUDE_017", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei >'1AA100012' order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_017") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei >'1AA100012' order by imei""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_017") } - //Comp_VMALL_DICTIONARY_EXCLUDE_018 - test("Comp_VMALL_DICTIONARY_EXCLUDE_018", Include) { + //Comp_DICTIONARY_EXCLUDE_018 + test("Comp_DICTIONARY_EXCLUDE_018", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei<>imei""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei<>imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_018") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei<>imei""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei<>imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_018") } - //Comp_VMALL_DICTIONARY_EXCLUDE_019 - test("Comp_VMALL_DICTIONARY_EXCLUDE_019", Include) { + //Comp_DICTIONARY_EXCLUDE_019 + test("Comp_DICTIONARY_EXCLUDE_019", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei != Latest_areaId order by imei""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_019") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei != Latest_areaId order by imei""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_019") } - //Comp_VMALL_DICTIONARY_EXCLUDE_020 - test("Comp_VMALL_DICTIONARY_EXCLUDE_020", Include) { + //Comp_DICTIONARY_EXCLUDE_020 + test("Comp_DICTIONARY_EXCLUDE_020", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId9223372047700 order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_070") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber >9223372047700 order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_070") } - //Comp_VMALL_DICTIONARY_EXCLUDE_071 - test("Comp_VMALL_DICTIONARY_EXCLUDE_071", Include) { + //Comp_DICTIONARY_EXCLUDE_071 + test("Comp_DICTIONARY_EXCLUDE_071", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber<>contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber<>contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_071") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber<>contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber<>contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_071") } - //Comp_VMALL_DICTIONARY_EXCLUDE_072 - test("Comp_VMALL_DICTIONARY_EXCLUDE_072", Include) { + //Comp_DICTIONARY_EXCLUDE_072 + test("Comp_DICTIONARY_EXCLUDE_072", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber != Latest_areaId order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_072") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber != Latest_areaId order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_072") } - //Comp_VMALL_DICTIONARY_EXCLUDE_073 - test("Comp_VMALL_DICTIONARY_EXCLUDE_073", Include) { + //Comp_DICTIONARY_EXCLUDE_073 + test("Comp_DICTIONARY_EXCLUDE_073", Include) { - checkAnswer(s"""select contractNumber, contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_076") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber >1000 order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_076") } - //Comp_VMALL_DICTIONARY_EXCLUDE_077 - test("Comp_VMALL_DICTIONARY_EXCLUDE_077", Include) { + //Comp_DICTIONARY_EXCLUDE_077 + test("Comp_DICTIONARY_EXCLUDE_077", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber IS NULL order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_077") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber IS NULL order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_077") } - //Comp_VMALL_DICTIONARY_EXCLUDE_078 - test("Comp_VMALL_DICTIONARY_EXCLUDE_078", Include) { + //Comp_DICTIONARY_EXCLUDE_078 + test("Comp_DICTIONARY_EXCLUDE_078", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_078") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_078") } - //Comp_VMALL_DICTIONARY_EXCLUDE_079 - test("Comp_VMALL_DICTIONARY_EXCLUDE_079", Include) { + //Comp_DICTIONARY_EXCLUDE_079 + test("Comp_DICTIONARY_EXCLUDE_079", Include) { - checkAnswer(s"""Select count(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_079") + checkAnswer(s"""Select count(Latest_DAY) from Comp_DICTIONARY_EXCLUDE""", + s"""Select count(Latest_DAY) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_079") } - //Comp_VMALL_DICTIONARY_EXCLUDE_080 - test("Comp_VMALL_DICTIONARY_EXCLUDE_080", Include) { + //Comp_DICTIONARY_EXCLUDE_080 + test("Comp_DICTIONARY_EXCLUDE_080", Include) { - checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT Latest_DAY) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_080") + checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT Latest_DAY) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_080") } - //Comp_VMALL_DICTIONARY_EXCLUDE_081 - test("Comp_VMALL_DICTIONARY_EXCLUDE_081", Include) { + //Comp_DICTIONARY_EXCLUDE_081 + test("Comp_DICTIONARY_EXCLUDE_081", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE group by Latest_DAY order by a""", - s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by Latest_DAY order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_081") + checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_DICTIONARY_EXCLUDE group by Latest_DAY order by a""", + s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive group by Latest_DAY order by a""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_081") } - //Comp_VMALL_DICTIONARY_EXCLUDE_082 - test("Comp_VMALL_DICTIONARY_EXCLUDE_082", Include) { + //Comp_DICTIONARY_EXCLUDE_082 + test("Comp_DICTIONARY_EXCLUDE_082", Include) { - checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select max(Latest_DAY),min(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_082") + checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from Comp_DICTIONARY_EXCLUDE""", + s"""select max(Latest_DAY),min(Latest_DAY) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_082") } - //Comp_VMALL_DICTIONARY_EXCLUDE_083 - test("Comp_VMALL_DICTIONARY_EXCLUDE_083", Include) { + //Comp_DICTIONARY_EXCLUDE_083 + test("Comp_DICTIONARY_EXCLUDE_083", Include) { - checkAnswer(s"""select sum(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_083") + checkAnswer(s"""select sum(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_083") } - //Comp_VMALL_DICTIONARY_EXCLUDE_084 - test("Comp_VMALL_DICTIONARY_EXCLUDE_084", Include) { + //Comp_DICTIONARY_EXCLUDE_084 + test("Comp_DICTIONARY_EXCLUDE_084", Include) { - checkAnswer(s"""select avg(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select avg(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_084") + checkAnswer(s"""select avg(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE""", + s"""select avg(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_084") } - //Comp_VMALL_DICTIONARY_EXCLUDE_085 - test("Comp_VMALL_DICTIONARY_EXCLUDE_085", Include) { + //Comp_DICTIONARY_EXCLUDE_085 + test("Comp_DICTIONARY_EXCLUDE_085", Include) { - checkAnswer(s"""select min(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select min(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_085") + checkAnswer(s"""select min(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE""", + s"""select min(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_085") } - //Comp_VMALL_DICTIONARY_EXCLUDE_086 - test("Comp_VMALL_DICTIONARY_EXCLUDE_086", Include) { + //Comp_DICTIONARY_EXCLUDE_086 + test("Comp_DICTIONARY_EXCLUDE_086", Include) { - sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_087 - test("Comp_VMALL_DICTIONARY_EXCLUDE_087", Include) { + //Comp_DICTIONARY_EXCLUDE_087 + test("Comp_DICTIONARY_EXCLUDE_087", Include) { - sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_088 - test("Comp_VMALL_DICTIONARY_EXCLUDE_088", Include) { + //Comp_DICTIONARY_EXCLUDE_088 + test("Comp_DICTIONARY_EXCLUDE_088", Include) { - sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_089 - test("Comp_VMALL_DICTIONARY_EXCLUDE_089", Include) { + //Comp_DICTIONARY_EXCLUDE_089 + test("Comp_DICTIONARY_EXCLUDE_089", Include) { - sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_090 - test("Comp_VMALL_DICTIONARY_EXCLUDE_090", Include) { + //Comp_DICTIONARY_EXCLUDE_090 + test("Comp_DICTIONARY_EXCLUDE_090", Include) { - sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_091 - test("Comp_VMALL_DICTIONARY_EXCLUDE_091", Include) { + //Comp_DICTIONARY_EXCLUDE_091 + test("Comp_DICTIONARY_EXCLUDE_091", Include) { - sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_092 - test("Comp_VMALL_DICTIONARY_EXCLUDE_092", Include) { + //Comp_DICTIONARY_EXCLUDE_092 + test("Comp_DICTIONARY_EXCLUDE_092", Include) { - sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_093 - test("Comp_VMALL_DICTIONARY_EXCLUDE_093", Include) { + //Comp_DICTIONARY_EXCLUDE_093 + test("Comp_DICTIONARY_EXCLUDE_093", Include) { - checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_093") + checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select corr(Latest_DAY,Latest_DAY) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_093") } - //Comp_VMALL_DICTIONARY_EXCLUDE_094 - test("Comp_VMALL_DICTIONARY_EXCLUDE_094", Include) { + //Comp_DICTIONARY_EXCLUDE_094 + test("Comp_DICTIONARY_EXCLUDE_094", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_095 - test("Comp_VMALL_DICTIONARY_EXCLUDE_095", Include) { + //Comp_DICTIONARY_EXCLUDE_095 + test("Comp_DICTIONARY_EXCLUDE_095", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_096 - test("Comp_VMALL_DICTIONARY_EXCLUDE_096", Include) { + //Comp_DICTIONARY_EXCLUDE_096 + test("Comp_DICTIONARY_EXCLUDE_096", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_097 - test("Comp_VMALL_DICTIONARY_EXCLUDE_097", Include) { + //Comp_DICTIONARY_EXCLUDE_097 + test("Comp_DICTIONARY_EXCLUDE_097", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_098 - test("Comp_VMALL_DICTIONARY_EXCLUDE_098", Include) { + //Comp_DICTIONARY_EXCLUDE_098 + test("Comp_DICTIONARY_EXCLUDE_098", Include) { - sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_099 - test("Comp_VMALL_DICTIONARY_EXCLUDE_099", Include) { + //Comp_DICTIONARY_EXCLUDE_099 + test("Comp_DICTIONARY_EXCLUDE_099", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_099") + checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_DICTIONARY_EXCLUDE order by a""", + s"""select Latest_DAY, Latest_DAY+ 10 as a from Comp_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_099") } - //Comp_VMALL_DICTIONARY_EXCLUDE_100 - test("Comp_VMALL_DICTIONARY_EXCLUDE_100", Include) { + //Comp_DICTIONARY_EXCLUDE_100 + test("Comp_DICTIONARY_EXCLUDE_100", Include) { - checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_VMALL_DICTIONARY_EXCLUDE group by channelsId order by d,Total""", - s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by channelsId order by d,Total""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_100") + checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_DICTIONARY_EXCLUDE group by channelsId order by d,Total""", + s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from Comp_DICTIONARY_EXCLUDE_hive group by channelsId order by d,Total""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_100") } - //Comp_VMALL_DICTIONARY_EXCLUDE_101 - test("Comp_VMALL_DICTIONARY_EXCLUDE_101", Include) { + //Comp_DICTIONARY_EXCLUDE_101 + test("Comp_DICTIONARY_EXCLUDE_101", Include) { - sql(s"""select last(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""").collect + sql(s"""select last(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_102 - test("Comp_VMALL_DICTIONARY_EXCLUDE_102", Include) { + //Comp_DICTIONARY_EXCLUDE_102 + test("Comp_DICTIONARY_EXCLUDE_102", Include) { - sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_103 - test("Comp_VMALL_DICTIONARY_EXCLUDE_103", Include) { + //Comp_DICTIONARY_EXCLUDE_103 + test("Comp_DICTIONARY_EXCLUDE_103", Include) { - checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE group by Latest_DAY order by Latest_DAY""", - s"""select Latest_DAY,count(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_103") + checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE group by Latest_DAY order by Latest_DAY""", + s"""select Latest_DAY,count(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_103") } - //Comp_VMALL_DICTIONARY_EXCLUDE_104 - test("Comp_VMALL_DICTIONARY_EXCLUDE_104", Include) { + //Comp_DICTIONARY_EXCLUDE_104 + test("Comp_DICTIONARY_EXCLUDE_104", Include) { - checkAnswer(s"""select Lower(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select Lower(Latest_DAY) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_104") + checkAnswer(s"""select Lower(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE order by a""", + s"""select Lower(Latest_DAY) a from Comp_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_104") } - //Comp_VMALL_DICTIONARY_EXCLUDE_105 - test("Comp_VMALL_DICTIONARY_EXCLUDE_105", Include) { + //Comp_DICTIONARY_EXCLUDE_105 + test("Comp_DICTIONARY_EXCLUDE_105", Include) { - checkAnswer(s"""select distinct Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY""", - s"""select distinct Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_105") + checkAnswer(s"""select distinct Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY""", + s"""select distinct Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_105") } - //Comp_VMALL_DICTIONARY_EXCLUDE_106 - test("Comp_VMALL_DICTIONARY_EXCLUDE_106", Include) { + //Comp_DICTIONARY_EXCLUDE_106 + test("Comp_DICTIONARY_EXCLUDE_106", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE order by Latest_DAY limit 101""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by Latest_DAY limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_106") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE order by Latest_DAY limit 101""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive order by Latest_DAY limit 101""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_106") } - //Comp_VMALL_DICTIONARY_EXCLUDE_107 - test("Comp_VMALL_DICTIONARY_EXCLUDE_107", Include) { + //Comp_DICTIONARY_EXCLUDE_107 + test("Comp_DICTIONARY_EXCLUDE_107", Include) { - checkAnswer(s"""select Latest_DAY as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select Latest_DAY as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_107") + checkAnswer(s"""select Latest_DAY as a from Comp_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select Latest_DAY as a from Comp_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_107") } - //Comp_VMALL_DICTIONARY_EXCLUDE_108 - test("Comp_VMALL_DICTIONARY_EXCLUDE_108", Include) { + //Comp_DICTIONARY_EXCLUDE_108 + test("Comp_DICTIONARY_EXCLUDE_108", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_108") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_108") } - //Comp_VMALL_DICTIONARY_EXCLUDE_109 - test("Comp_VMALL_DICTIONARY_EXCLUDE_109", Include) { + //Comp_DICTIONARY_EXCLUDE_109 + test("Comp_DICTIONARY_EXCLUDE_109", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_109") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_109") } - //Comp_VMALL_DICTIONARY_EXCLUDE_110 - test("Comp_VMALL_DICTIONARY_EXCLUDE_110", Include) { + //Comp_DICTIONARY_EXCLUDE_110 + test("Comp_DICTIONARY_EXCLUDE_110", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_110") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_110") } - //Comp_VMALL_DICTIONARY_EXCLUDE_111 - test("Comp_VMALL_DICTIONARY_EXCLUDE_111", Include) { + //Comp_DICTIONARY_EXCLUDE_111 + test("Comp_DICTIONARY_EXCLUDE_111", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_111") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_111") } - //Comp_VMALL_DICTIONARY_EXCLUDE_112 - test("Comp_VMALL_DICTIONARY_EXCLUDE_112", Include) { + //Comp_DICTIONARY_EXCLUDE_112 + test("Comp_DICTIONARY_EXCLUDE_112", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_112") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_112") } - //Comp_VMALL_DICTIONARY_EXCLUDE_113 - test("Comp_VMALL_DICTIONARY_EXCLUDE_113", Include) { + //Comp_DICTIONARY_EXCLUDE_113 + test("Comp_DICTIONARY_EXCLUDE_113", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY<>Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_113") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY<>Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_113") } - //Comp_VMALL_DICTIONARY_EXCLUDE_114 - test("Comp_VMALL_DICTIONARY_EXCLUDE_114", Include) { + //Comp_DICTIONARY_EXCLUDE_114 + test("Comp_DICTIONARY_EXCLUDE_114", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_114") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_114") } - //Comp_VMALL_DICTIONARY_EXCLUDE_115 - test("Comp_VMALL_DICTIONARY_EXCLUDE_115", Include) { + //Comp_DICTIONARY_EXCLUDE_115 + test("Comp_DICTIONARY_EXCLUDE_115", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_118") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY >1000 order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_118") } - //Comp_VMALL_DICTIONARY_EXCLUDE_119 - test("Comp_VMALL_DICTIONARY_EXCLUDE_119", Include) { + //Comp_DICTIONARY_EXCLUDE_119 + test("Comp_DICTIONARY_EXCLUDE_119", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NULL order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_119") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY IS NULL order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_119") } - //Comp_VMALL_DICTIONARY_EXCLUDE_120 - test("Comp_VMALL_DICTIONARY_EXCLUDE_120", Include) { + //Comp_DICTIONARY_EXCLUDE_120 + test("Comp_DICTIONARY_EXCLUDE_120", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_120") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_120") } - //Comp_VMALL_DICTIONARY_EXCLUDE_121 - test("Comp_VMALL_DICTIONARY_EXCLUDE_121", Include) { + //Comp_DICTIONARY_EXCLUDE_121 + test("Comp_DICTIONARY_EXCLUDE_121", Include) { - checkAnswer(s"""Select count(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_121") + checkAnswer(s"""Select count(gamePointId) from Comp_DICTIONARY_EXCLUDE""", + s"""Select count(gamePointId) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_121") } - //Comp_VMALL_DICTIONARY_EXCLUDE_122 - test("Comp_VMALL_DICTIONARY_EXCLUDE_122", Include) { + //Comp_DICTIONARY_EXCLUDE_122 + test("Comp_DICTIONARY_EXCLUDE_122", Include) { - checkAnswer(s"""select count(DISTINCT gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_122") + checkAnswer(s"""select count(DISTINCT gamePointId) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT gamePointId) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_122") } - //Comp_VMALL_DICTIONARY_EXCLUDE_123 - test("Comp_VMALL_DICTIONARY_EXCLUDE_123", Include) { + //Comp_DICTIONARY_EXCLUDE_123 + test("Comp_DICTIONARY_EXCLUDE_123", Include) { - sql(s"""select sum(gamePointId)+10 as a ,gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE group by gamePointId order by a""").collect + sql(s"""select sum(gamePointId)+10 as a ,gamePointId from Comp_DICTIONARY_EXCLUDE group by gamePointId order by a""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_124 - test("Comp_VMALL_DICTIONARY_EXCLUDE_124", Include) { + //Comp_DICTIONARY_EXCLUDE_124 + test("Comp_DICTIONARY_EXCLUDE_124", Include) { - checkAnswer(s"""select max(gamePointId),min(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select max(gamePointId),min(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_124") + checkAnswer(s"""select max(gamePointId),min(gamePointId) from Comp_DICTIONARY_EXCLUDE""", + s"""select max(gamePointId),min(gamePointId) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_124") } - //Comp_VMALL_DICTIONARY_EXCLUDE_125 - test("Comp_VMALL_DICTIONARY_EXCLUDE_125", Include) { + //Comp_DICTIONARY_EXCLUDE_125 + test("Comp_DICTIONARY_EXCLUDE_125", Include) { - sql(s"""select sum(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamePointId) a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_126 - test("Comp_VMALL_DICTIONARY_EXCLUDE_126", Include) { + //Comp_DICTIONARY_EXCLUDE_126 + test("Comp_DICTIONARY_EXCLUDE_126", Include) { - sql(s"""select avg(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select avg(gamePointId) a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_127 - test("Comp_VMALL_DICTIONARY_EXCLUDE_127", Include) { + //Comp_DICTIONARY_EXCLUDE_127 + test("Comp_DICTIONARY_EXCLUDE_127", Include) { - checkAnswer(s"""select min(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select min(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_127") + checkAnswer(s"""select min(gamePointId) a from Comp_DICTIONARY_EXCLUDE""", + s"""select min(gamePointId) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_127") } - //Comp_VMALL_DICTIONARY_EXCLUDE_128 - test("Comp_VMALL_DICTIONARY_EXCLUDE_128", Include) { + //Comp_DICTIONARY_EXCLUDE_128 + test("Comp_DICTIONARY_EXCLUDE_128", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_129 - test("Comp_VMALL_DICTIONARY_EXCLUDE_129", Include) { + //Comp_DICTIONARY_EXCLUDE_129 + test("Comp_DICTIONARY_EXCLUDE_129", Include) { - sql(s"""select var_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select var_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_130 - test("Comp_VMALL_DICTIONARY_EXCLUDE_130", Include) { + //Comp_DICTIONARY_EXCLUDE_130 + test("Comp_DICTIONARY_EXCLUDE_130", Include) { - sql(s"""select var_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select var_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_131 - test("Comp_VMALL_DICTIONARY_EXCLUDE_131", Include) { + //Comp_DICTIONARY_EXCLUDE_131 + test("Comp_DICTIONARY_EXCLUDE_131", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_132 - test("Comp_VMALL_DICTIONARY_EXCLUDE_132", Include) { + //Comp_DICTIONARY_EXCLUDE_132 + test("Comp_DICTIONARY_EXCLUDE_132", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_133 - test("Comp_VMALL_DICTIONARY_EXCLUDE_133", Include) { + //Comp_DICTIONARY_EXCLUDE_133 + test("Comp_DICTIONARY_EXCLUDE_133", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_134 - test("Comp_VMALL_DICTIONARY_EXCLUDE_134", Include) { + //Comp_DICTIONARY_EXCLUDE_134 + test("Comp_DICTIONARY_EXCLUDE_134", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_135 - test("Comp_VMALL_DICTIONARY_EXCLUDE_135", Include) { + //Comp_DICTIONARY_EXCLUDE_135 + test("Comp_DICTIONARY_EXCLUDE_135", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_135") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_135") } - //Comp_VMALL_DICTIONARY_EXCLUDE_136 - test("Comp_VMALL_DICTIONARY_EXCLUDE_136", Include) { + //Comp_DICTIONARY_EXCLUDE_136 + test("Comp_DICTIONARY_EXCLUDE_136", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_137 - test("Comp_VMALL_DICTIONARY_EXCLUDE_137", Include) { + //Comp_DICTIONARY_EXCLUDE_137 + test("Comp_DICTIONARY_EXCLUDE_137", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_138 - test("Comp_VMALL_DICTIONARY_EXCLUDE_138", Include) { + //Comp_DICTIONARY_EXCLUDE_138 + test("Comp_DICTIONARY_EXCLUDE_138", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_139 - test("Comp_VMALL_DICTIONARY_EXCLUDE_139", Include) { + //Comp_DICTIONARY_EXCLUDE_139 + test("Comp_DICTIONARY_EXCLUDE_139", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_140 - test("Comp_VMALL_DICTIONARY_EXCLUDE_140", Include) { + //Comp_DICTIONARY_EXCLUDE_140 + test("Comp_DICTIONARY_EXCLUDE_140", Include) { - sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_141 - test("Comp_VMALL_DICTIONARY_EXCLUDE_141", Include) { + //Comp_DICTIONARY_EXCLUDE_141 + test("Comp_DICTIONARY_EXCLUDE_141", Include) { - checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select gamePointId, gamePointId+ 10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_141") + checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from Comp_DICTIONARY_EXCLUDE order by a""", + s"""select gamePointId, gamePointId+ 10 as a from Comp_DICTIONARY_EXCLUDE_hive order by a""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_141") } - //Comp_VMALL_DICTIONARY_EXCLUDE_142 - test("Comp_VMALL_DICTIONARY_EXCLUDE_142", Include) { + //Comp_DICTIONARY_EXCLUDE_142 + test("Comp_DICTIONARY_EXCLUDE_142", Include) { - checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_VMALL_DICTIONARY_EXCLUDE group by channelsId order by Total""", - s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_142") + checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_DICTIONARY_EXCLUDE group by channelsId order by Total""", + s"""select min(gamePointId), max(gamePointId+ 10) Total from Comp_DICTIONARY_EXCLUDE_hive group by channelsId order by Total""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_142") } - //Comp_VMALL_DICTIONARY_EXCLUDE_143 - test("Comp_VMALL_DICTIONARY_EXCLUDE_143", Include) { + //Comp_DICTIONARY_EXCLUDE_143 + test("Comp_DICTIONARY_EXCLUDE_143", Include) { - sql(s"""select last(gamePointId) a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select last(gamePointId) a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_144 - test("Comp_VMALL_DICTIONARY_EXCLUDE_144", Include) { + //Comp_DICTIONARY_EXCLUDE_144 + test("Comp_DICTIONARY_EXCLUDE_144", Include) { - sql(s"""select FIRST(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""").collect + sql(s"""select FIRST(gamePointId) a from Comp_DICTIONARY_EXCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_145 - test("Comp_VMALL_DICTIONARY_EXCLUDE_145", Include) { + //Comp_DICTIONARY_EXCLUDE_145 + test("Comp_DICTIONARY_EXCLUDE_145", Include) { - checkAnswer(s"""select gamePointId,count(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE group by gamePointId order by gamePointId""", - s"""select gamePointId,count(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by gamePointId order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_145") + checkAnswer(s"""select gamePointId,count(gamePointId) a from Comp_DICTIONARY_EXCLUDE group by gamePointId order by gamePointId""", + s"""select gamePointId,count(gamePointId) a from Comp_DICTIONARY_EXCLUDE_hive group by gamePointId order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_145") } - //Comp_VMALL_DICTIONARY_EXCLUDE_146 - test("Comp_VMALL_DICTIONARY_EXCLUDE_146", Include) { + //Comp_DICTIONARY_EXCLUDE_146 + test("Comp_DICTIONARY_EXCLUDE_146", Include) { - checkAnswer(s"""select Lower(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId""", - s"""select Lower(gamePointId) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_146") + checkAnswer(s"""select Lower(gamePointId) a from Comp_DICTIONARY_EXCLUDE order by gamePointId""", + s"""select Lower(gamePointId) a from Comp_DICTIONARY_EXCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_146") } - //Comp_VMALL_DICTIONARY_EXCLUDE_147 - test("Comp_VMALL_DICTIONARY_EXCLUDE_147", Include) { + //Comp_DICTIONARY_EXCLUDE_147 + test("Comp_DICTIONARY_EXCLUDE_147", Include) { - checkAnswer(s"""select distinct gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId""", - s"""select distinct gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_147") + checkAnswer(s"""select distinct gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId""", + s"""select distinct gamePointId from Comp_DICTIONARY_EXCLUDE_hive order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_147") } - //Comp_VMALL_DICTIONARY_EXCLUDE_148 - test("Comp_VMALL_DICTIONARY_EXCLUDE_148", Include) { + //Comp_DICTIONARY_EXCLUDE_148 + test("Comp_DICTIONARY_EXCLUDE_148", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId limit 101""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by gamePointId limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_148") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId limit 101""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive order by gamePointId limit 101""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_148") } - //Comp_VMALL_DICTIONARY_EXCLUDE_149 - test("Comp_VMALL_DICTIONARY_EXCLUDE_149", Include) { + //Comp_DICTIONARY_EXCLUDE_149 + test("Comp_DICTIONARY_EXCLUDE_149", Include) { - checkAnswer(s"""select gamePointId as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select gamePointId as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_149") + checkAnswer(s"""select gamePointId as a from Comp_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select gamePointId as a from Comp_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_149") } - //Comp_VMALL_DICTIONARY_EXCLUDE_150 - test("Comp_VMALL_DICTIONARY_EXCLUDE_150", Include) { + //Comp_DICTIONARY_EXCLUDE_150 + test("Comp_DICTIONARY_EXCLUDE_150", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_150") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_150") } - //Comp_VMALL_DICTIONARY_EXCLUDE_151 - test("Comp_VMALL_DICTIONARY_EXCLUDE_151", Include) { + //Comp_DICTIONARY_EXCLUDE_151 + test("Comp_DICTIONARY_EXCLUDE_151", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_151") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_151") } - //Comp_VMALL_DICTIONARY_EXCLUDE_152 - test("Comp_VMALL_DICTIONARY_EXCLUDE_152", Include) { + //Comp_DICTIONARY_EXCLUDE_152 + test("Comp_DICTIONARY_EXCLUDE_152", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_152") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_152") } - //Comp_VMALL_DICTIONARY_EXCLUDE_153 - test("Comp_VMALL_DICTIONARY_EXCLUDE_153", Include) { + //Comp_DICTIONARY_EXCLUDE_153 + test("Comp_DICTIONARY_EXCLUDE_153", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_153") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_153") } - //Comp_VMALL_DICTIONARY_EXCLUDE_154 - test("Comp_VMALL_DICTIONARY_EXCLUDE_154", Include) { + //Comp_DICTIONARY_EXCLUDE_154 + test("Comp_DICTIONARY_EXCLUDE_154", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId >4.70133553923674E43""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_154") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId >4.70133553923674E43""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_154") } - //Comp_VMALL_DICTIONARY_EXCLUDE_155 - test("Comp_VMALL_DICTIONARY_EXCLUDE_155", Include) { + //Comp_DICTIONARY_EXCLUDE_155 + test("Comp_DICTIONARY_EXCLUDE_155", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId<>gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId<>gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_155") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId<>gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId<>gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_155") } - //Comp_VMALL_DICTIONARY_EXCLUDE_156 - test("Comp_VMALL_DICTIONARY_EXCLUDE_156", Include) { + //Comp_DICTIONARY_EXCLUDE_156 + test("Comp_DICTIONARY_EXCLUDE_156", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId != Latest_areaId order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_156") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId != Latest_areaId order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_156") } - //Comp_VMALL_DICTIONARY_EXCLUDE_157 - test("Comp_VMALL_DICTIONARY_EXCLUDE_157", Include) { + //Comp_DICTIONARY_EXCLUDE_157 + test("Comp_DICTIONARY_EXCLUDE_157", Include) { - checkAnswer(s"""select gamePointId, gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_160") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId >1000 order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_160") } - //Comp_VMALL_DICTIONARY_EXCLUDE_161 - test("Comp_VMALL_DICTIONARY_EXCLUDE_161", Include) { + //Comp_DICTIONARY_EXCLUDE_161 + test("Comp_DICTIONARY_EXCLUDE_161", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId IS NULL order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_161") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId IS NULL order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_161") } - //Comp_VMALL_DICTIONARY_EXCLUDE_162 - test("Comp_VMALL_DICTIONARY_EXCLUDE_162", Include) { + //Comp_DICTIONARY_EXCLUDE_162 + test("Comp_DICTIONARY_EXCLUDE_162", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId IS NOT NULL order by gamePointId""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_162") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId IS NOT NULL order by gamePointId""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_162") } - //Comp_VMALL_DICTIONARY_EXCLUDE_163 - test("Comp_VMALL_DICTIONARY_EXCLUDE_163", Include) { + //Comp_DICTIONARY_EXCLUDE_163 + test("Comp_DICTIONARY_EXCLUDE_163", Include) { - checkAnswer(s"""Select count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_163") + checkAnswer(s"""Select count(productionDate) from Comp_DICTIONARY_EXCLUDE""", + s"""Select count(productionDate) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_163") } - //Comp_VMALL_DICTIONARY_EXCLUDE_164 - test("Comp_VMALL_DICTIONARY_EXCLUDE_164", Include) { + //Comp_DICTIONARY_EXCLUDE_164 + test("Comp_DICTIONARY_EXCLUDE_164", Include) { - checkAnswer(s"""select count(DISTINCT productionDate) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT productionDate) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_164") + checkAnswer(s"""select count(DISTINCT productionDate) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT productionDate) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_164") } - //Comp_VMALL_DICTIONARY_EXCLUDE_165 - test("Comp_VMALL_DICTIONARY_EXCLUDE_165", Include) { + //Comp_DICTIONARY_EXCLUDE_165 + test("Comp_DICTIONARY_EXCLUDE_165", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from Comp_VMALL_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", - s"""select sum(productionDate)+10 as a ,productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_165") + checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from Comp_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", + s"""select sum(productionDate)+10 as a ,productionDate from Comp_DICTIONARY_EXCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_165") } - //Comp_VMALL_DICTIONARY_EXCLUDE_166 - test("Comp_VMALL_DICTIONARY_EXCLUDE_166", Include) { + //Comp_DICTIONARY_EXCLUDE_166 + test("Comp_DICTIONARY_EXCLUDE_166", Include) { - checkAnswer(s"""select max(productionDate),min(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select max(productionDate),min(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_166") + checkAnswer(s"""select max(productionDate),min(productionDate) from Comp_DICTIONARY_EXCLUDE""", + s"""select max(productionDate),min(productionDate) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_166") } - //Comp_VMALL_DICTIONARY_EXCLUDE_167 - test("Comp_VMALL_DICTIONARY_EXCLUDE_167", Include) { + //Comp_DICTIONARY_EXCLUDE_167 + test("Comp_DICTIONARY_EXCLUDE_167", Include) { - checkAnswer(s"""select sum(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_167") + checkAnswer(s"""select sum(productionDate) a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_167") } - //Comp_VMALL_DICTIONARY_EXCLUDE_168 - test("Comp_VMALL_DICTIONARY_EXCLUDE_168", Include) { + //Comp_DICTIONARY_EXCLUDE_168 + test("Comp_DICTIONARY_EXCLUDE_168", Include) { - checkAnswer(s"""select avg(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select avg(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_168") + checkAnswer(s"""select avg(productionDate) a from Comp_DICTIONARY_EXCLUDE""", + s"""select avg(productionDate) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_168") } - //Comp_VMALL_DICTIONARY_EXCLUDE_169 - test("Comp_VMALL_DICTIONARY_EXCLUDE_169", Include) { + //Comp_DICTIONARY_EXCLUDE_169 + test("Comp_DICTIONARY_EXCLUDE_169", Include) { - checkAnswer(s"""select min(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select min(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_169") + checkAnswer(s"""select min(productionDate) a from Comp_DICTIONARY_EXCLUDE""", + s"""select min(productionDate) a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_169") } - //Comp_VMALL_DICTIONARY_EXCLUDE_170 - test("Comp_VMALL_DICTIONARY_EXCLUDE_170", Include) { + //Comp_DICTIONARY_EXCLUDE_170 + test("Comp_DICTIONARY_EXCLUDE_170", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_171 - test("Comp_VMALL_DICTIONARY_EXCLUDE_171", Include) { + //Comp_DICTIONARY_EXCLUDE_171 + test("Comp_DICTIONARY_EXCLUDE_171", Include) { - sql(s"""select var_pop(gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select var_pop(gamePointId) as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_172 - test("Comp_VMALL_DICTIONARY_EXCLUDE_172", Include) { + //Comp_DICTIONARY_EXCLUDE_172 + test("Comp_DICTIONARY_EXCLUDE_172", Include) { - sql(s"""select var_samp(gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select var_samp(gamePointId) as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_173 - test("Comp_VMALL_DICTIONARY_EXCLUDE_173", Include) { + //Comp_DICTIONARY_EXCLUDE_173 + test("Comp_DICTIONARY_EXCLUDE_173", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_174 - test("Comp_VMALL_DICTIONARY_EXCLUDE_174", Include) { + //Comp_DICTIONARY_EXCLUDE_174 + test("Comp_DICTIONARY_EXCLUDE_174", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_175 - test("Comp_VMALL_DICTIONARY_EXCLUDE_175", Include) { + //Comp_DICTIONARY_EXCLUDE_175 + test("Comp_DICTIONARY_EXCLUDE_175", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_176 - test("Comp_VMALL_DICTIONARY_EXCLUDE_176", Include) { + //Comp_DICTIONARY_EXCLUDE_176 + test("Comp_DICTIONARY_EXCLUDE_176", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_177 - test("Comp_VMALL_DICTIONARY_EXCLUDE_177", Include) { + //Comp_DICTIONARY_EXCLUDE_177 + test("Comp_DICTIONARY_EXCLUDE_177", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_177") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_EXCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_177") } - //Comp_VMALL_DICTIONARY_EXCLUDE_178 - test("Comp_VMALL_DICTIONARY_EXCLUDE_178", Include) { + //Comp_DICTIONARY_EXCLUDE_178 + test("Comp_DICTIONARY_EXCLUDE_178", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_179 - test("Comp_VMALL_DICTIONARY_EXCLUDE_179", Include) { + //Comp_DICTIONARY_EXCLUDE_179 + test("Comp_DICTIONARY_EXCLUDE_179", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_180 - test("Comp_VMALL_DICTIONARY_EXCLUDE_180", Include) { + //Comp_DICTIONARY_EXCLUDE_180 + test("Comp_DICTIONARY_EXCLUDE_180", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_181 - test("Comp_VMALL_DICTIONARY_EXCLUDE_181", Include) { + //Comp_DICTIONARY_EXCLUDE_181 + test("Comp_DICTIONARY_EXCLUDE_181", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from Comp_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_182 - test("Comp_VMALL_DICTIONARY_EXCLUDE_182", Include) { + //Comp_DICTIONARY_EXCLUDE_182 + test("Comp_DICTIONARY_EXCLUDE_182", Include) { - sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE order by productionDate) t""").collect + sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from Comp_DICTIONARY_EXCLUDE order by productionDate) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_183 - test("Comp_VMALL_DICTIONARY_EXCLUDE_183", Include) { + //Comp_DICTIONARY_EXCLUDE_183 + test("Comp_DICTIONARY_EXCLUDE_183", Include) { - sql(s"""select last(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE order by a""").collect + sql(s"""select last(productionDate) a from Comp_DICTIONARY_EXCLUDE order by a""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_184 - test("Comp_VMALL_DICTIONARY_EXCLUDE_184", Include) { + //Comp_DICTIONARY_EXCLUDE_184 + test("Comp_DICTIONARY_EXCLUDE_184", Include) { - sql(s"""select FIRST(productionDate) a from (select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE order by productionDate) t""").collect + sql(s"""select FIRST(productionDate) a from (select productionDate from Comp_DICTIONARY_EXCLUDE order by productionDate) t""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_185 - test("Comp_VMALL_DICTIONARY_EXCLUDE_185", Include) { + //Comp_DICTIONARY_EXCLUDE_185 + test("Comp_DICTIONARY_EXCLUDE_185", Include) { - checkAnswer(s"""select productionDate,count(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", - s"""select productionDate,count(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_185") + checkAnswer(s"""select productionDate,count(productionDate) a from Comp_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", + s"""select productionDate,count(productionDate) a from Comp_DICTIONARY_EXCLUDE_hive group by productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_185") } - //Comp_VMALL_DICTIONARY_EXCLUDE_186 - test("Comp_VMALL_DICTIONARY_EXCLUDE_186", Include) { + //Comp_DICTIONARY_EXCLUDE_186 + test("Comp_DICTIONARY_EXCLUDE_186", Include) { - checkAnswer(s"""select Lower(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE order by productionDate""", - s"""select Lower(productionDate) a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_186") + checkAnswer(s"""select Lower(productionDate) a from Comp_DICTIONARY_EXCLUDE order by productionDate""", + s"""select Lower(productionDate) a from Comp_DICTIONARY_EXCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_186") } - //Comp_VMALL_DICTIONARY_EXCLUDE_187 - test("Comp_VMALL_DICTIONARY_EXCLUDE_187", Include) { + //Comp_DICTIONARY_EXCLUDE_187 + test("Comp_DICTIONARY_EXCLUDE_187", Include) { - checkAnswer(s"""select distinct productionDate from Comp_VMALL_DICTIONARY_EXCLUDE order by productionDate""", - s"""select distinct productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_187") + checkAnswer(s"""select distinct productionDate from Comp_DICTIONARY_EXCLUDE order by productionDate""", + s"""select distinct productionDate from Comp_DICTIONARY_EXCLUDE_hive order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_187") } - //Comp_VMALL_DICTIONARY_EXCLUDE_188 - test("Comp_VMALL_DICTIONARY_EXCLUDE_188", Include) { + //Comp_DICTIONARY_EXCLUDE_188 + test("Comp_DICTIONARY_EXCLUDE_188", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE order by productionDate limit 101""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by productionDate limit 101""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_188") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE order by productionDate limit 101""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive order by productionDate limit 101""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_188") } - //Comp_VMALL_DICTIONARY_EXCLUDE_189 - test("Comp_VMALL_DICTIONARY_EXCLUDE_189", Include) { + //Comp_DICTIONARY_EXCLUDE_189 + test("Comp_DICTIONARY_EXCLUDE_189", Include) { - checkAnswer(s"""select productionDate as a from Comp_VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select productionDate as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_189") + checkAnswer(s"""select productionDate as a from Comp_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select productionDate as a from Comp_DICTIONARY_EXCLUDE_hive order by a asc limit 10""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_189") } - //Comp_VMALL_DICTIONARY_EXCLUDE_190 - test("Comp_VMALL_DICTIONARY_EXCLUDE_190", Include) { + //Comp_DICTIONARY_EXCLUDE_190 + test("Comp_DICTIONARY_EXCLUDE_190", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_190") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_190") } - //Comp_VMALL_DICTIONARY_EXCLUDE_191 - test("Comp_VMALL_DICTIONARY_EXCLUDE_191", Include) { + //Comp_DICTIONARY_EXCLUDE_191 + test("Comp_DICTIONARY_EXCLUDE_191", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_191") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_191") } - //Comp_VMALL_DICTIONARY_EXCLUDE_192 - test("Comp_VMALL_DICTIONARY_EXCLUDE_192", Include) { + //Comp_DICTIONARY_EXCLUDE_192 + test("Comp_DICTIONARY_EXCLUDE_192", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_192") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_192") } - //Comp_VMALL_DICTIONARY_EXCLUDE_193 - test("Comp_VMALL_DICTIONARY_EXCLUDE_193", Include) { + //Comp_DICTIONARY_EXCLUDE_193 + test("Comp_DICTIONARY_EXCLUDE_193", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_193") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_193") } - //Comp_VMALL_DICTIONARY_EXCLUDE_194 - test("Comp_VMALL_DICTIONARY_EXCLUDE_194", Include) { + //Comp_DICTIONARY_EXCLUDE_194 + test("Comp_DICTIONARY_EXCLUDE_194", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_194") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_194") } - //Comp_VMALL_DICTIONARY_EXCLUDE_195 - test("Comp_VMALL_DICTIONARY_EXCLUDE_195", Include) { + //Comp_DICTIONARY_EXCLUDE_195 + test("Comp_DICTIONARY_EXCLUDE_195", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate<>productionDate order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_195") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate<>productionDate order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_195") } - //Comp_VMALL_DICTIONARY_EXCLUDE_196 - test("Comp_VMALL_DICTIONARY_EXCLUDE_196", Include) { + //Comp_DICTIONARY_EXCLUDE_196 + test("Comp_DICTIONARY_EXCLUDE_196", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate != Latest_areaId order by productionDate""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_196") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate != Latest_areaId order by productionDate""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_196") } - //Comp_VMALL_DICTIONARY_EXCLUDE_197 - test("Comp_VMALL_DICTIONARY_EXCLUDE_197", Include) { + //Comp_DICTIONARY_EXCLUDE_197 + test("Comp_DICTIONARY_EXCLUDE_197", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId'100084' order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId >'100084' order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_235") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId >'100084' order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId >'100084' order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_235") } - //Comp_VMALL_DICTIONARY_EXCLUDE_236 - test("Comp_VMALL_DICTIONARY_EXCLUDE_236", Include) { + //Comp_DICTIONARY_EXCLUDE_236 + test("Comp_DICTIONARY_EXCLUDE_236", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_236") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_236") } - //Comp_VMALL_DICTIONARY_EXCLUDE_237 - test("Comp_VMALL_DICTIONARY_EXCLUDE_237", Include) { + //Comp_DICTIONARY_EXCLUDE_237 + test("Comp_DICTIONARY_EXCLUDE_237", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_237") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_237") } - //Comp_VMALL_DICTIONARY_EXCLUDE_238 - test("Comp_VMALL_DICTIONARY_EXCLUDE_238", Include) { + //Comp_DICTIONARY_EXCLUDE_238 + test("Comp_DICTIONARY_EXCLUDE_238", Include) { - checkAnswer(s"""select deviceInformationId, deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_241") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId >1000 order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_241") } - //Comp_VMALL_DICTIONARY_EXCLUDE_242 - test("Comp_VMALL_DICTIONARY_EXCLUDE_242", Include) { + //Comp_DICTIONARY_EXCLUDE_242 + test("Comp_DICTIONARY_EXCLUDE_242", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId IS NULL order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_242") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId IS NULL order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_242") } - //Comp_VMALL_DICTIONARY_EXCLUDE_243 - test("Comp_VMALL_DICTIONARY_EXCLUDE_243", Include) { + //Comp_DICTIONARY_EXCLUDE_243 + test("Comp_DICTIONARY_EXCLUDE_243", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_243") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_243") } - //Comp_VMALL_DICTIONARY_EXCLUDE_244 - test("Comp_VMALL_DICTIONARY_EXCLUDE_244", Include) { + //Comp_DICTIONARY_EXCLUDE_244 + test("Comp_DICTIONARY_EXCLUDE_244", Include) { - checkAnswer(s"""select sum(imei)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_244") + checkAnswer(s"""select sum(imei)+10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(imei)+10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_244") } - //Comp_VMALL_DICTIONARY_EXCLUDE_245 - test("Comp_VMALL_DICTIONARY_EXCLUDE_245", Include) { + //Comp_DICTIONARY_EXCLUDE_245 + test("Comp_DICTIONARY_EXCLUDE_245", Include) { - checkAnswer(s"""select sum(imei)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_245") + checkAnswer(s"""select sum(imei)*10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(imei)*10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_245") } - //Comp_VMALL_DICTIONARY_EXCLUDE_246 - test("Comp_VMALL_DICTIONARY_EXCLUDE_246", Include) { + //Comp_DICTIONARY_EXCLUDE_246 + test("Comp_DICTIONARY_EXCLUDE_246", Include) { - checkAnswer(s"""select sum(imei)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_246") + checkAnswer(s"""select sum(imei)/10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(imei)/10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_246") } - //Comp_VMALL_DICTIONARY_EXCLUDE_247 - test("Comp_VMALL_DICTIONARY_EXCLUDE_247", Include) { + //Comp_DICTIONARY_EXCLUDE_247 + test("Comp_DICTIONARY_EXCLUDE_247", Include) { - checkAnswer(s"""select sum(imei)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_247") + checkAnswer(s"""select sum(imei)-10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(imei)-10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_247") } - //Comp_VMALL_DICTIONARY_EXCLUDE_248 - test("Comp_VMALL_DICTIONARY_EXCLUDE_248", Include) { + //Comp_DICTIONARY_EXCLUDE_248 + test("Comp_DICTIONARY_EXCLUDE_248", Include) { - checkAnswer(s"""select sum(contractNumber)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_248") + checkAnswer(s"""select sum(contractNumber)+10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)+10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_248") } - //Comp_VMALL_DICTIONARY_EXCLUDE_249 - test("Comp_VMALL_DICTIONARY_EXCLUDE_249", Include) { + //Comp_DICTIONARY_EXCLUDE_249 + test("Comp_DICTIONARY_EXCLUDE_249", Include) { - checkAnswer(s"""select sum(contractNumber)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_249") + checkAnswer(s"""select sum(contractNumber)*10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)*10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_249") } - //Comp_VMALL_DICTIONARY_EXCLUDE_250 - test("Comp_VMALL_DICTIONARY_EXCLUDE_250", Include) { + //Comp_DICTIONARY_EXCLUDE_250 + test("Comp_DICTIONARY_EXCLUDE_250", Include) { - checkAnswer(s"""select sum(contractNumber)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_250") + checkAnswer(s"""select sum(contractNumber)/10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)/10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_250") } - //Comp_VMALL_DICTIONARY_EXCLUDE_251 - test("Comp_VMALL_DICTIONARY_EXCLUDE_251", Include) { + //Comp_DICTIONARY_EXCLUDE_251 + test("Comp_DICTIONARY_EXCLUDE_251", Include) { - checkAnswer(s"""select sum(contractNumber)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_251") + checkAnswer(s"""select sum(contractNumber)-10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)-10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_251") } - //Comp_VMALL_DICTIONARY_EXCLUDE_252 - test("Comp_VMALL_DICTIONARY_EXCLUDE_252", Include) { + //Comp_DICTIONARY_EXCLUDE_252 + test("Comp_DICTIONARY_EXCLUDE_252", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_252") + checkAnswer(s"""select sum(Latest_DAY)+10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)+10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_252") } - //Comp_VMALL_DICTIONARY_EXCLUDE_253 - test("Comp_VMALL_DICTIONARY_EXCLUDE_253", Include) { + //Comp_DICTIONARY_EXCLUDE_253 + test("Comp_DICTIONARY_EXCLUDE_253", Include) { - checkAnswer(s"""select sum(Latest_DAY)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_253") + checkAnswer(s"""select sum(Latest_DAY)*10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)*10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_253") } - //Comp_VMALL_DICTIONARY_EXCLUDE_254 - test("Comp_VMALL_DICTIONARY_EXCLUDE_254", Include) { + //Comp_DICTIONARY_EXCLUDE_254 + test("Comp_DICTIONARY_EXCLUDE_254", Include) { - checkAnswer(s"""select sum(Latest_DAY)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_254") + checkAnswer(s"""select sum(Latest_DAY)/10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)/10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_254") } - //Comp_VMALL_DICTIONARY_EXCLUDE_255 - test("Comp_VMALL_DICTIONARY_EXCLUDE_255", Include) { + //Comp_DICTIONARY_EXCLUDE_255 + test("Comp_DICTIONARY_EXCLUDE_255", Include) { - checkAnswer(s"""select sum(Latest_DAY)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_255") + checkAnswer(s"""select sum(Latest_DAY)-10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)-10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_255") } - //Comp_VMALL_DICTIONARY_EXCLUDE_256 - test("Comp_VMALL_DICTIONARY_EXCLUDE_256", Include) { + //Comp_DICTIONARY_EXCLUDE_256 + test("Comp_DICTIONARY_EXCLUDE_256", Include) { - sql(s"""select sum(gamePointId)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamePointId)+10 as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_257 - test("Comp_VMALL_DICTIONARY_EXCLUDE_257", Include) { + //Comp_DICTIONARY_EXCLUDE_257 + test("Comp_DICTIONARY_EXCLUDE_257", Include) { - sql(s"""select sum(gamePointId)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamePointId)*10 as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_258 - test("Comp_VMALL_DICTIONARY_EXCLUDE_258", Include) { + //Comp_DICTIONARY_EXCLUDE_258 + test("Comp_DICTIONARY_EXCLUDE_258", Include) { - sql(s"""select sum(gamePointId)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamePointId)/10 as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_259 - test("Comp_VMALL_DICTIONARY_EXCLUDE_259", Include) { + //Comp_DICTIONARY_EXCLUDE_259 + test("Comp_DICTIONARY_EXCLUDE_259", Include) { - sql(s"""select sum(gamePointId)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamePointId)-10 as a from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_260 - test("Comp_VMALL_DICTIONARY_EXCLUDE_260", Include) { + //Comp_DICTIONARY_EXCLUDE_260 + test("Comp_DICTIONARY_EXCLUDE_260", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_260") + checkAnswer(s"""select sum(productionDate)+10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)+10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_260") } - //Comp_VMALL_DICTIONARY_EXCLUDE_261 - test("Comp_VMALL_DICTIONARY_EXCLUDE_261", Include) { + //Comp_DICTIONARY_EXCLUDE_261 + test("Comp_DICTIONARY_EXCLUDE_261", Include) { - checkAnswer(s"""select sum(productionDate)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_261") + checkAnswer(s"""select sum(productionDate)*10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)*10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_261") } - //Comp_VMALL_DICTIONARY_EXCLUDE_262 - test("Comp_VMALL_DICTIONARY_EXCLUDE_262", Include) { + //Comp_DICTIONARY_EXCLUDE_262 + test("Comp_DICTIONARY_EXCLUDE_262", Include) { - checkAnswer(s"""select sum(productionDate)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_262") + checkAnswer(s"""select sum(productionDate)/10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)/10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_262") } - //Comp_VMALL_DICTIONARY_EXCLUDE_263 - test("Comp_VMALL_DICTIONARY_EXCLUDE_263", Include) { + //Comp_DICTIONARY_EXCLUDE_263 + test("Comp_DICTIONARY_EXCLUDE_263", Include) { - checkAnswer(s"""select sum(productionDate)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_263") + checkAnswer(s"""select sum(productionDate)-10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)-10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_263") } - //Comp_VMALL_DICTIONARY_EXCLUDE_264 - test("Comp_VMALL_DICTIONARY_EXCLUDE_264", Include) { + //Comp_DICTIONARY_EXCLUDE_264 + test("Comp_DICTIONARY_EXCLUDE_264", Include) { - checkAnswer(s"""select sum(deviceInformationId)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)+10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_264") + checkAnswer(s"""select sum(deviceInformationId)+10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)+10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_264") } - //Comp_VMALL_DICTIONARY_EXCLUDE_265 - test("Comp_VMALL_DICTIONARY_EXCLUDE_265", Include) { + //Comp_DICTIONARY_EXCLUDE_265 + test("Comp_DICTIONARY_EXCLUDE_265", Include) { - checkAnswer(s"""select sum(deviceInformationId)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)*10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_265") + checkAnswer(s"""select sum(deviceInformationId)*10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)*10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_265") } - //Comp_VMALL_DICTIONARY_EXCLUDE_266 - test("Comp_VMALL_DICTIONARY_EXCLUDE_266", Include) { + //Comp_DICTIONARY_EXCLUDE_266 + test("Comp_DICTIONARY_EXCLUDE_266", Include) { - checkAnswer(s"""select sum(deviceInformationId)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)/10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_266") + checkAnswer(s"""select sum(deviceInformationId)/10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)/10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_266") } - //Comp_VMALL_DICTIONARY_EXCLUDE_267 - test("Comp_VMALL_DICTIONARY_EXCLUDE_267", Include) { + //Comp_DICTIONARY_EXCLUDE_267 + test("Comp_DICTIONARY_EXCLUDE_267", Include) { - checkAnswer(s"""select sum(deviceInformationId)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)-10 as a from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_267") + checkAnswer(s"""select sum(deviceInformationId)-10 as a from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)-10 as a from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_267") } - //Comp_VMALL_DICTIONARY_EXCLUDE_292 - test("Comp_VMALL_DICTIONARY_EXCLUDE_292", Include) { + //Comp_DICTIONARY_EXCLUDE_292 + test("Comp_DICTIONARY_EXCLUDE_292", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '2015-09-30%'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_292") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE where productiondate LIKE '2015-09-30%'""", + s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_292") } - //Comp_VMALL_DICTIONARY_EXCLUDE_293 - test("Comp_VMALL_DICTIONARY_EXCLUDE_293", Include) { + //Comp_DICTIONARY_EXCLUDE_293 + test("Comp_DICTIONARY_EXCLUDE_293", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '% %'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate LIKE '% %'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_293") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE where productiondate LIKE '% %'""", + s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate LIKE '% %'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_293") } - //Comp_VMALL_DICTIONARY_EXCLUDE_294 - test("Comp_VMALL_DICTIONARY_EXCLUDE_294", Include) { + //Comp_DICTIONARY_EXCLUDE_294 + test("Comp_DICTIONARY_EXCLUDE_294", Include) { - checkAnswer(s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '%12:07:28'""", - s"""SELECT productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_294") + checkAnswer(s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE where productiondate LIKE '%12:07:28'""", + s"""SELECT productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_294") } - //Comp_VMALL_DICTIONARY_EXCLUDE_295 - test("Comp_VMALL_DICTIONARY_EXCLUDE_295", Include) { + //Comp_DICTIONARY_EXCLUDE_295 + test("Comp_DICTIONARY_EXCLUDE_295", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractnumber like '922337204%' """, - s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractnumber like '922337204%' """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_295") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_EXCLUDE where contractnumber like '922337204%' """, + s"""select contractnumber from Comp_DICTIONARY_EXCLUDE_hive where contractnumber like '922337204%' """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_295") } - //Comp_VMALL_DICTIONARY_EXCLUDE_296 - test("Comp_VMALL_DICTIONARY_EXCLUDE_296", Include) { + //Comp_DICTIONARY_EXCLUDE_296 + test("Comp_DICTIONARY_EXCLUDE_296", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractnumber like '%047800'""", - s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractnumber like '%047800'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_296") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_EXCLUDE where contractnumber like '%047800'""", + s"""select contractnumber from Comp_DICTIONARY_EXCLUDE_hive where contractnumber like '%047800'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_296") } - //Comp_VMALL_DICTIONARY_EXCLUDE_297 - test("Comp_VMALL_DICTIONARY_EXCLUDE_297", Include) { + //Comp_DICTIONARY_EXCLUDE_297 + test("Comp_DICTIONARY_EXCLUDE_297", Include) { - checkAnswer(s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractnumber like '%720%'""", - s"""select contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractnumber like '%720%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_297") + checkAnswer(s"""select contractnumber from Comp_DICTIONARY_EXCLUDE where contractnumber like '%720%'""", + s"""select contractnumber from Comp_DICTIONARY_EXCLUDE_hive where contractnumber like '%720%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_297") } - //Comp_VMALL_DICTIONARY_EXCLUDE_298 - test("Comp_VMALL_DICTIONARY_EXCLUDE_298", Include) { + //Comp_DICTIONARY_EXCLUDE_298 + test("Comp_DICTIONARY_EXCLUDE_298", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '12345678%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_298") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY like '12345678%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_298") } - //Comp_VMALL_DICTIONARY_EXCLUDE_299 - test("Comp_VMALL_DICTIONARY_EXCLUDE_299", Include) { + //Comp_DICTIONARY_EXCLUDE_299 + test("Comp_DICTIONARY_EXCLUDE_299", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '%5678%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_299") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY like '%5678%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_299") } - //Comp_VMALL_DICTIONARY_EXCLUDE_300 - test("Comp_VMALL_DICTIONARY_EXCLUDE_300", Include) { + //Comp_DICTIONARY_EXCLUDE_300 + test("Comp_DICTIONARY_EXCLUDE_300", Include) { - checkAnswer(s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '1234567%'""", - s"""SELECT Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_300") + checkAnswer(s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY like '1234567%'""", + s"""SELECT Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_300") } - //Comp_VMALL_DICTIONARY_EXCLUDE_301 - test("Comp_VMALL_DICTIONARY_EXCLUDE_301", Include) { + //Comp_DICTIONARY_EXCLUDE_301 + test("Comp_DICTIONARY_EXCLUDE_301", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointID like '1.1098347722%'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_301") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE where gamepointID like '1.1098347722%'""", + s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_301") } - //Comp_VMALL_DICTIONARY_EXCLUDE_302 - test("Comp_VMALL_DICTIONARY_EXCLUDE_302", Include) { + //Comp_DICTIONARY_EXCLUDE_302 + test("Comp_DICTIONARY_EXCLUDE_302", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointID like '%8347722%'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointID like '%8347722%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_302") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE where gamepointID like '%8347722%'""", + s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE_hive where gamepointID like '%8347722%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_302") } - //Comp_VMALL_DICTIONARY_EXCLUDE_303 - test("Comp_VMALL_DICTIONARY_EXCLUDE_303", Include) { + //Comp_DICTIONARY_EXCLUDE_303 + test("Comp_DICTIONARY_EXCLUDE_303", Include) { - checkAnswer(s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointID like '%7512E42'""", - s"""SELECT gamepointID from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointID like '%7512E42'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_303") + checkAnswer(s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE where gamepointID like '%7512E42'""", + s"""SELECT gamepointID from Comp_DICTIONARY_EXCLUDE_hive where gamepointID like '%7512E42'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_303") } - //Comp_VMALL_DICTIONARY_EXCLUDE_304 - test("Comp_VMALL_DICTIONARY_EXCLUDE_304", Include) { + //Comp_DICTIONARY_EXCLUDE_304 + test("Comp_DICTIONARY_EXCLUDE_304", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '1000%'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid like '1000%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_304") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid like '1000%'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid like '1000%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_304") } - //Comp_VMALL_DICTIONARY_EXCLUDE_305 - test("Comp_VMALL_DICTIONARY_EXCLUDE_305", Include) { + //Comp_DICTIONARY_EXCLUDE_305 + test("Comp_DICTIONARY_EXCLUDE_305", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '%00%'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid like '%00%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_305") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid like '%00%'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid like '%00%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_305") } - //Comp_VMALL_DICTIONARY_EXCLUDE_306 - test("Comp_VMALL_DICTIONARY_EXCLUDE_306", Include) { + //Comp_DICTIONARY_EXCLUDE_306 + test("Comp_DICTIONARY_EXCLUDE_306", Include) { - checkAnswer(s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '%0084'""", - s"""SELECT deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid like '%0084'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_306") + checkAnswer(s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid like '%0084'""", + s"""SELECT deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid like '%0084'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_306") } - //Comp_VMALL_DICTIONARY_EXCLUDE_307 - test("Comp_VMALL_DICTIONARY_EXCLUDE_307", Include) { + //Comp_DICTIONARY_EXCLUDE_307 + test("Comp_DICTIONARY_EXCLUDE_307", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei like '1AA10%'""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei like '1AA10%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_307") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei like '1AA10%'""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei like '1AA10%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_307") } - //Comp_VMALL_DICTIONARY_EXCLUDE_308 - test("Comp_VMALL_DICTIONARY_EXCLUDE_308", Include) { + //Comp_DICTIONARY_EXCLUDE_308 + test("Comp_DICTIONARY_EXCLUDE_308", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei like '%A10%'""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei like '%A10%'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_308") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei like '%A10%'""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei like '%A10%'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_308") } - //Comp_VMALL_DICTIONARY_EXCLUDE_309 - test("Comp_VMALL_DICTIONARY_EXCLUDE_309", Include) { + //Comp_DICTIONARY_EXCLUDE_309 + test("Comp_DICTIONARY_EXCLUDE_309", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei like '%00084'""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei like '%00084'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_309") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei like '%00084'""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei like '%00084'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_309") } - //Comp_VMALL_DICTIONARY_EXCLUDE_310 - test("Comp_VMALL_DICTIONARY_EXCLUDE_310", Include) { + //Comp_DICTIONARY_EXCLUDE_310 + test("Comp_DICTIONARY_EXCLUDE_310", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_310") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_310") } - //Comp_VMALL_DICTIONARY_EXCLUDE_311 - test("Comp_VMALL_DICTIONARY_EXCLUDE_311", Include) { + //Comp_DICTIONARY_EXCLUDE_311 + test("Comp_DICTIONARY_EXCLUDE_311", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_311") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_311") } - //Comp_VMALL_DICTIONARY_EXCLUDE_312 - test("Comp_VMALL_DICTIONARY_EXCLUDE_312", Include) { + //Comp_DICTIONARY_EXCLUDE_312 + test("Comp_DICTIONARY_EXCLUDE_312", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid in (100081,100078,10008)""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_312") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid in (100081,100078,10008)""", + s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_312") } - //Comp_VMALL_DICTIONARY_EXCLUDE_313 - test("Comp_VMALL_DICTIONARY_EXCLUDE_313", Include) { + //Comp_DICTIONARY_EXCLUDE_313 + test("Comp_DICTIONARY_EXCLUDE_313", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid not in (100081,100078,10008)""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_313") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid not in (100081,100078,10008)""", + s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_313") } - //Comp_VMALL_DICTIONARY_EXCLUDE_314 - test("Comp_VMALL_DICTIONARY_EXCLUDE_314", Include) { + //Comp_DICTIONARY_EXCLUDE_314 + test("Comp_DICTIONARY_EXCLUDE_314", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", - s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_314") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_EXCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", + s"""select productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_314") } - //Comp_VMALL_DICTIONARY_EXCLUDE_315 - test("Comp_VMALL_DICTIONARY_EXCLUDE_315", Include) { + //Comp_DICTIONARY_EXCLUDE_315 + test("Comp_DICTIONARY_EXCLUDE_315", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", - s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_315") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_EXCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", + s"""select productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_315") } - //Comp_VMALL_DICTIONARY_EXCLUDE_316 - test("Comp_VMALL_DICTIONARY_EXCLUDE_316", Include) { + //Comp_DICTIONARY_EXCLUDE_316 + test("Comp_DICTIONARY_EXCLUDE_316", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_316") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_EXCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from Comp_DICTIONARY_EXCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_316") } - //Comp_VMALL_DICTIONARY_EXCLUDE_317 - test("Comp_VMALL_DICTIONARY_EXCLUDE_317", Include) { + //Comp_DICTIONARY_EXCLUDE_317 + test("Comp_DICTIONARY_EXCLUDE_317", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_317") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_EXCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from Comp_DICTIONARY_EXCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_317") } - //Comp_VMALL_DICTIONARY_EXCLUDE_318 - test("Comp_VMALL_DICTIONARY_EXCLUDE_318", Include) { + //Comp_DICTIONARY_EXCLUDE_318 + test("Comp_DICTIONARY_EXCLUDE_318", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_318") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_318") } - //Comp_VMALL_DICTIONARY_EXCLUDE_319 - test("Comp_VMALL_DICTIONARY_EXCLUDE_319", Include) { + //Comp_DICTIONARY_EXCLUDE_319 + test("Comp_DICTIONARY_EXCLUDE_319", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_319") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_319") } - //Comp_VMALL_DICTIONARY_EXCLUDE_322 - test("Comp_VMALL_DICTIONARY_EXCLUDE_322", Include) { + //Comp_DICTIONARY_EXCLUDE_322 + test("Comp_DICTIONARY_EXCLUDE_322", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei !='1AA100077'""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei !='1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_322") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei !='1AA100077'""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei !='1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_322") } - //Comp_VMALL_DICTIONARY_EXCLUDE_323 - test("Comp_VMALL_DICTIONARY_EXCLUDE_323", Include) { + //Comp_DICTIONARY_EXCLUDE_323 + test("Comp_DICTIONARY_EXCLUDE_323", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei NOT LIKE '1AA100077'""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_323") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei NOT LIKE '1AA100077'""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_323") } - //Comp_VMALL_DICTIONARY_EXCLUDE_324 - test("Comp_VMALL_DICTIONARY_EXCLUDE_324", Include) { + //Comp_DICTIONARY_EXCLUDE_324 + test("Comp_DICTIONARY_EXCLUDE_324", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid !=100078""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid !=100078""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_324") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid !=100078""", + s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid !=100078""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_324") } - //Comp_VMALL_DICTIONARY_EXCLUDE_325 - test("Comp_VMALL_DICTIONARY_EXCLUDE_325", Include) { + //Comp_DICTIONARY_EXCLUDE_325 + test("Comp_DICTIONARY_EXCLUDE_325", Include) { - checkAnswer(s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationid NOT LIKE 100079""", - s"""select deviceinformationid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_325") + checkAnswer(s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE where deviceinformationid NOT LIKE 100079""", + s"""select deviceinformationid from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_325") } - //Comp_VMALL_DICTIONARY_EXCLUDE_326 - test("Comp_VMALL_DICTIONARY_EXCLUDE_326", Include) { + //Comp_DICTIONARY_EXCLUDE_326 + test("Comp_DICTIONARY_EXCLUDE_326", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate !='2015-10-07 12:07:28'""", - s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_326") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_EXCLUDE where productiondate !='2015-10-07 12:07:28'""", + s"""select productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_326") } - //Comp_VMALL_DICTIONARY_EXCLUDE_327 - ignore("Comp_VMALL_DICTIONARY_EXCLUDE_327", Include) { + //Comp_DICTIONARY_EXCLUDE_327 + ignore("Comp_DICTIONARY_EXCLUDE_327", Include) { - checkAnswer(s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", - s"""select productiondate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_327") + checkAnswer(s"""select productiondate from Comp_DICTIONARY_EXCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", + s"""select productiondate from Comp_DICTIONARY_EXCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_327") } - //Comp_VMALL_DICTIONARY_EXCLUDE_328 - test("Comp_VMALL_DICTIONARY_EXCLUDE_328", Include) { + //Comp_DICTIONARY_EXCLUDE_328 + test("Comp_DICTIONARY_EXCLUDE_328", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointid !=6.8591561117512E42""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_328") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_EXCLUDE where gamepointid !=6.8591561117512E42""", + s"""select gamepointid from Comp_DICTIONARY_EXCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_328") } - //Comp_VMALL_DICTIONARY_EXCLUDE_329 - test("Comp_VMALL_DICTIONARY_EXCLUDE_329", Include) { + //Comp_DICTIONARY_EXCLUDE_329 + test("Comp_DICTIONARY_EXCLUDE_329", Include) { - checkAnswer(s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", - s"""select gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_329") + checkAnswer(s"""select gamepointid from Comp_DICTIONARY_EXCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", + s"""select gamepointid from Comp_DICTIONARY_EXCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_329") } - //Comp_VMALL_DICTIONARY_EXCLUDE_330 - test("Comp_VMALL_DICTIONARY_EXCLUDE_330", Include) { + //Comp_DICTIONARY_EXCLUDE_330 + test("Comp_DICTIONARY_EXCLUDE_330", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY != 1234567890123520.0000000000""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_330") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY != 1234567890123520.0000000000""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_330") } - //Comp_VMALL_DICTIONARY_EXCLUDE_331 - test("Comp_VMALL_DICTIONARY_EXCLUDE_331", Include) { + //Comp_DICTIONARY_EXCLUDE_331 + test("Comp_DICTIONARY_EXCLUDE_331", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_331") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_331") } - //Comp_VMALL_DICTIONARY_EXCLUDE_335 - test("Comp_VMALL_DICTIONARY_EXCLUDE_335", Include) { + //Comp_DICTIONARY_EXCLUDE_335 + test("Comp_DICTIONARY_EXCLUDE_335", Include) { - checkAnswer(s"""SELECT productiondate,IMEI from Comp_VMALL_DICTIONARY_EXCLUDE where IMEI RLIKE '1AA100077'""", - s"""SELECT productiondate,IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_335") + checkAnswer(s"""SELECT productiondate,IMEI from Comp_DICTIONARY_EXCLUDE where IMEI RLIKE '1AA100077'""", + s"""SELECT productiondate,IMEI from Comp_DICTIONARY_EXCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_335") } - //Comp_VMALL_DICTIONARY_EXCLUDE_336 - test("Comp_VMALL_DICTIONARY_EXCLUDE_336", Include) { + //Comp_DICTIONARY_EXCLUDE_336 + test("Comp_DICTIONARY_EXCLUDE_336", Include) { - checkAnswer(s"""SELECT deviceinformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceinformationId RLIKE '100079'""", - s"""SELECT deviceinformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_336") + checkAnswer(s"""SELECT deviceinformationId from Comp_DICTIONARY_EXCLUDE where deviceinformationId RLIKE '100079'""", + s"""SELECT deviceinformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_336") } - //Comp_VMALL_DICTIONARY_EXCLUDE_337 - test("Comp_VMALL_DICTIONARY_EXCLUDE_337", Include) { + //Comp_DICTIONARY_EXCLUDE_337 + test("Comp_DICTIONARY_EXCLUDE_337", Include) { - checkAnswer(s"""SELECT gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE where gamepointid RLIKE '1.61922711065643E42'""", - s"""SELECT gamepointid from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_337") + checkAnswer(s"""SELECT gamepointid from Comp_DICTIONARY_EXCLUDE where gamepointid RLIKE '1.61922711065643E42'""", + s"""SELECT gamepointid from Comp_DICTIONARY_EXCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_337") } - //Comp_VMALL_DICTIONARY_EXCLUDE_338 - test("Comp_VMALL_DICTIONARY_EXCLUDE_338", Include) { + //Comp_DICTIONARY_EXCLUDE_338 + test("Comp_DICTIONARY_EXCLUDE_338", Include) { - checkAnswer(s"""SELECT Latest_Day from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", - s"""SELECT Latest_Day from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_338") + checkAnswer(s"""SELECT Latest_Day from Comp_DICTIONARY_EXCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", + s"""SELECT Latest_Day from Comp_DICTIONARY_EXCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_338") } - //Comp_VMALL_DICTIONARY_EXCLUDE_339 - test("Comp_VMALL_DICTIONARY_EXCLUDE_339", Include) { + //Comp_DICTIONARY_EXCLUDE_339 + test("Comp_DICTIONARY_EXCLUDE_339", Include) { - checkAnswer(s"""SELECT contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractnumber RLIKE '9223372047800'""", - s"""SELECT contractnumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_339") + checkAnswer(s"""SELECT contractnumber from Comp_DICTIONARY_EXCLUDE where contractnumber RLIKE '9223372047800'""", + s"""SELECT contractnumber from Comp_DICTIONARY_EXCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_339") } - //Comp_VMALL_DICTIONARY_EXCLUDE_340 - test("Comp_VMALL_DICTIONARY_EXCLUDE_340", Include) { + //Comp_DICTIONARY_EXCLUDE_340 + test("Comp_DICTIONARY_EXCLUDE_340", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.productiondate=b.productiondate""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.productiondate=b.productiondate""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_340") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.productiondate=b.productiondate""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.productiondate=b.productiondate""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_340") } - //Comp_VMALL_DICTIONARY_EXCLUDE_341 - test("Comp_VMALL_DICTIONARY_EXCLUDE_341", Include) { + //Comp_DICTIONARY_EXCLUDE_341 + test("Comp_DICTIONARY_EXCLUDE_341", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.deviceinformationid=b.deviceinformationid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_341") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.deviceinformationid=b.deviceinformationid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_341") } - //Comp_VMALL_DICTIONARY_EXCLUDE_342 - test("Comp_VMALL_DICTIONARY_EXCLUDE_342", Include) { + //Comp_DICTIONARY_EXCLUDE_342 + test("Comp_DICTIONARY_EXCLUDE_342", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.imei=b.imei""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.imei=b.imei""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_342") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.imei=b.imei""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.imei=b.imei""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_342") } - //Comp_VMALL_DICTIONARY_EXCLUDE_343 - test("Comp_VMALL_DICTIONARY_EXCLUDE_343", Include) { + //Comp_DICTIONARY_EXCLUDE_343 + test("Comp_DICTIONARY_EXCLUDE_343", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.gamepointid=b.gamepointid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.gamepointid=b.gamepointid""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_343") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.gamepointid=b.gamepointid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.gamepointid=b.gamepointid""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_343") } - //Comp_VMALL_DICTIONARY_EXCLUDE_344 - test("Comp_VMALL_DICTIONARY_EXCLUDE_344", Include) { + //Comp_DICTIONARY_EXCLUDE_344 + test("Comp_DICTIONARY_EXCLUDE_344", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.Latest_Day=b.Latest_Day""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.Latest_Day=b.Latest_Day""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_344") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.Latest_Day=b.Latest_Day""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.Latest_Day=b.Latest_Day""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_344") } - //Comp_VMALL_DICTIONARY_EXCLUDE_345 - test("Comp_VMALL_DICTIONARY_EXCLUDE_345", Include) { + //Comp_DICTIONARY_EXCLUDE_345 + test("Comp_DICTIONARY_EXCLUDE_345", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE a join Comp_VMALL_DICTIONARY_EXCLUDE b on a.contractnumber=b.contractnumber""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive a join Comp_VMALL_DICTIONARY_EXCLUDE_hive b on a.contractnumber=b.contractnumber""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_345") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE a join Comp_DICTIONARY_EXCLUDE b on a.contractnumber=b.contractnumber""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from Comp_DICTIONARY_EXCLUDE_hive a join Comp_DICTIONARY_EXCLUDE_hive b on a.contractnumber=b.contractnumber""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_345") } - //Comp_VMALL_DICTIONARY_EXCLUDE_346 - test("Comp_VMALL_DICTIONARY_EXCLUDE_346", Include) { + //Comp_DICTIONARY_EXCLUDE_346 + test("Comp_DICTIONARY_EXCLUDE_346", Include) { - checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_346") + checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_DICTIONARY_EXCLUDE""", + s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_346") } - //Comp_VMALL_DICTIONARY_EXCLUDE_347 - test("Comp_VMALL_DICTIONARY_EXCLUDE_347", Include) { + //Comp_DICTIONARY_EXCLUDE_347 + test("Comp_DICTIONARY_EXCLUDE_347", Include) { - checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_347") + checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_DICTIONARY_EXCLUDE""", + s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_347") } - //Comp_VMALL_DICTIONARY_EXCLUDE_348 - test("Comp_VMALL_DICTIONARY_EXCLUDE_348", Include) { + //Comp_DICTIONARY_EXCLUDE_348 + test("Comp_DICTIONARY_EXCLUDE_348", Include) { - sql(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_349 - test("Comp_VMALL_DICTIONARY_EXCLUDE_349", Include) { + //Comp_DICTIONARY_EXCLUDE_349 + test("Comp_DICTIONARY_EXCLUDE_349", Include) { - checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_349") + checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_DICTIONARY_EXCLUDE""", + s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_349") } - //Comp_VMALL_DICTIONARY_EXCLUDE_350 - test("Comp_VMALL_DICTIONARY_EXCLUDE_350", Include) { + //Comp_DICTIONARY_EXCLUDE_350 + test("Comp_DICTIONARY_EXCLUDE_350", Include) { - checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_350") + checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_DICTIONARY_EXCLUDE""", + s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_350") } - //Comp_VMALL_DICTIONARY_EXCLUDE_351 - test("Comp_VMALL_DICTIONARY_EXCLUDE_351", Include) { + //Comp_DICTIONARY_EXCLUDE_351 + test("Comp_DICTIONARY_EXCLUDE_351", Include) { - checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_351") + checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_DICTIONARY_EXCLUDE""", + s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_351") } - //Comp_VMALL_DICTIONARY_EXCLUDE_352 - test("Comp_VMALL_DICTIONARY_EXCLUDE_352", Include) { + //Comp_DICTIONARY_EXCLUDE_352 + test("Comp_DICTIONARY_EXCLUDE_352", Include) { - checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_352") + checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_352") } - //Comp_VMALL_DICTIONARY_EXCLUDE_353 - test("Comp_VMALL_DICTIONARY_EXCLUDE_353", Include) { + //Comp_DICTIONARY_EXCLUDE_353 + test("Comp_DICTIONARY_EXCLUDE_353", Include) { - checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_353") + checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_353") } - //Comp_VMALL_DICTIONARY_EXCLUDE_354 - test("Comp_VMALL_DICTIONARY_EXCLUDE_354", Include) { + //Comp_DICTIONARY_EXCLUDE_354 + test("Comp_DICTIONARY_EXCLUDE_354", Include) { - sql(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from Comp_VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from Comp_DICTIONARY_EXCLUDE""").collect } - //Comp_VMALL_DICTIONARY_EXCLUDE_355 - test("Comp_VMALL_DICTIONARY_EXCLUDE_355", Include) { + //Comp_DICTIONARY_EXCLUDE_355 + test("Comp_DICTIONARY_EXCLUDE_355", Include) { - checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_355") + checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_355") } - //Comp_VMALL_DICTIONARY_EXCLUDE_356 - test("Comp_VMALL_DICTIONARY_EXCLUDE_356", Include) { + //Comp_DICTIONARY_EXCLUDE_356 + test("Comp_DICTIONARY_EXCLUDE_356", Include) { - checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_356") + checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_356") } - //Comp_VMALL_DICTIONARY_EXCLUDE_357 - test("Comp_VMALL_DICTIONARY_EXCLUDE_357", Include) { + //Comp_DICTIONARY_EXCLUDE_357 + test("Comp_DICTIONARY_EXCLUDE_357", Include) { - checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_357") + checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_357") } - //Comp_VMALL_DICTIONARY_EXCLUDE_358 - test("Comp_VMALL_DICTIONARY_EXCLUDE_358", Include) { + //Comp_DICTIONARY_EXCLUDE_358 + test("Comp_DICTIONARY_EXCLUDE_358", Include) { - checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_358") + checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_DICTIONARY_EXCLUDE""", + s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_358") } - //Comp_VMALL_DICTIONARY_EXCLUDE_359 - test("Comp_VMALL_DICTIONARY_EXCLUDE_359", Include) { + //Comp_DICTIONARY_EXCLUDE_359 + test("Comp_DICTIONARY_EXCLUDE_359", Include) { - checkAnswer(s"""select count(MAC) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(MAC) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_359") + checkAnswer(s"""select count(MAC) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(MAC) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_359") } - //Comp_VMALL_DICTIONARY_EXCLUDE_360 - test("Comp_VMALL_DICTIONARY_EXCLUDE_360", Include) { + //Comp_DICTIONARY_EXCLUDE_360 + test("Comp_DICTIONARY_EXCLUDE_360", Include) { - checkAnswer(s"""select count(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(gamePointId) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_360") + checkAnswer(s"""select count(gamePointId) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(gamePointId) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_360") } - //Comp_VMALL_DICTIONARY_EXCLUDE_361 - test("Comp_VMALL_DICTIONARY_EXCLUDE_361", Include) { + //Comp_DICTIONARY_EXCLUDE_361 + test("Comp_DICTIONARY_EXCLUDE_361", Include) { - checkAnswer(s"""select count(contractNumber) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(contractNumber) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_361") + checkAnswer(s"""select count(contractNumber) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(contractNumber) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_361") } - //Comp_VMALL_DICTIONARY_EXCLUDE_362 - test("Comp_VMALL_DICTIONARY_EXCLUDE_362", Include) { + //Comp_DICTIONARY_EXCLUDE_362 + test("Comp_DICTIONARY_EXCLUDE_362", Include) { - checkAnswer(s"""select count(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(Latest_DAY) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_362") + checkAnswer(s"""select count(Latest_DAY) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(Latest_DAY) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_362") } - //Comp_VMALL_DICTIONARY_EXCLUDE_363 - test("Comp_VMALL_DICTIONARY_EXCLUDE_363", Include) { + //Comp_DICTIONARY_EXCLUDE_363 + test("Comp_DICTIONARY_EXCLUDE_363", Include) { - checkAnswer(s"""select count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(productionDate) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_363") + checkAnswer(s"""select count(productionDate) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(productionDate) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_363") } - //Comp_VMALL_DICTIONARY_EXCLUDE_364 - test("Comp_VMALL_DICTIONARY_EXCLUDE_364", Include) { + //Comp_DICTIONARY_EXCLUDE_364 + test("Comp_DICTIONARY_EXCLUDE_364", Include) { - checkAnswer(s"""select count(deviceInformationId) from Comp_VMALL_DICTIONARY_EXCLUDE""", - s"""select count(deviceInformationId) from Comp_VMALL_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_364") + checkAnswer(s"""select count(deviceInformationId) from Comp_DICTIONARY_EXCLUDE""", + s"""select count(deviceInformationId) from Comp_DICTIONARY_EXCLUDE_hive""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_364") } - //Comp_VMALL_DICTIONARY_EXCLUDE_365 - test("Comp_VMALL_DICTIONARY_EXCLUDE_365", Include) { + //Comp_DICTIONARY_EXCLUDE_365 + test("Comp_DICTIONARY_EXCLUDE_365", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber != '9223372047700'""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber != '9223372047700'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_365") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where contractNumber != '9223372047700'""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where contractNumber != '9223372047700'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_365") } - //Comp_VMALL_DICTIONARY_EXCLUDE_366 - test("Comp_VMALL_DICTIONARY_EXCLUDE_366", Include) { + //Comp_DICTIONARY_EXCLUDE_366 + test("Comp_DICTIONARY_EXCLUDE_366", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_366") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_366") } - //Comp_VMALL_DICTIONARY_EXCLUDE_367 - test("Comp_VMALL_DICTIONARY_EXCLUDE_367", Include) { + //Comp_DICTIONARY_EXCLUDE_367 + test("Comp_DICTIONARY_EXCLUDE_367", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_367") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_367") } - //Comp_VMALL_DICTIONARY_EXCLUDE_368 - test("Comp_VMALL_DICTIONARY_EXCLUDE_368", Include) { + //Comp_DICTIONARY_EXCLUDE_368 + test("Comp_DICTIONARY_EXCLUDE_368", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_368") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_368") } - //Comp_VMALL_DICTIONARY_EXCLUDE_369 - test("Comp_VMALL_DICTIONARY_EXCLUDE_369", Include) { + //Comp_DICTIONARY_EXCLUDE_369 + test("Comp_DICTIONARY_EXCLUDE_369", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_369") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_369") } - //Comp_VMALL_DICTIONARY_EXCLUDE_370 - test("Comp_VMALL_DICTIONARY_EXCLUDE_370", Include) { + //Comp_DICTIONARY_EXCLUDE_370 + test("Comp_DICTIONARY_EXCLUDE_370", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_370") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC,deviceColor """, "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_370") } - //Comp_VMALL_DICTIONARY_EXCLUDE_371 - test("Comp_VMALL_DICTIONARY_EXCLUDE_371", Include) { + //Comp_DICTIONARY_EXCLUDE_371 + test("Comp_DICTIONARY_EXCLUDE_371", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_371") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_371") } - //Comp_VMALL_DICTIONARY_EXCLUDE_372 - test("Comp_VMALL_DICTIONARY_EXCLUDE_372", Include) { + //Comp_DICTIONARY_EXCLUDE_372 + test("Comp_DICTIONARY_EXCLUDE_372", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_372") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_372") } - //Comp_VMALL_DICTIONARY_EXCLUDE_373 - ignore("Comp_VMALL_DICTIONARY_EXCLUDE_373", Include) { + //Comp_DICTIONARY_EXCLUDE_373 + ignore("Comp_DICTIONARY_EXCLUDE_373", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_373") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where productionDate not like cast('2015-09-18 12:07:28.0' as timestamp) order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_373") } - //Comp_VMALL_DICTIONARY_EXCLUDE_374 - test("Comp_VMALL_DICTIONARY_EXCLUDE_374", Include) { + //Comp_DICTIONARY_EXCLUDE_374 + test("Comp_DICTIONARY_EXCLUDE_374", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor""", - s"""select imei,deviceInformationId,MAC,deviceColor from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_374") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor""", + s"""select imei,deviceInformationId,MAC,deviceColor from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC,deviceColor""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_374") } - //Comp_VMALL_DICTIONARY_EXCLUDE_375 - test("Comp_VMALL_DICTIONARY_EXCLUDE_375", Include) { + //Comp_DICTIONARY_EXCLUDE_375 + test("Comp_DICTIONARY_EXCLUDE_375", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei is not null""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_375") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei is not null""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_375") } - //Comp_VMALL_DICTIONARY_EXCLUDE_376 - test("Comp_VMALL_DICTIONARY_EXCLUDE_376", Include) { + //Comp_DICTIONARY_EXCLUDE_376 + test("Comp_DICTIONARY_EXCLUDE_376", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId is not null""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_376") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId is not null""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_376") } - //Comp_VMALL_DICTIONARY_EXCLUDE_377 - test("Comp_VMALL_DICTIONARY_EXCLUDE_377", Include) { + //Comp_DICTIONARY_EXCLUDE_377 + test("Comp_DICTIONARY_EXCLUDE_377", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber is not null""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_377") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber is not null""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_377") } - //Comp_VMALL_DICTIONARY_EXCLUDE_378 - test("Comp_VMALL_DICTIONARY_EXCLUDE_378", Include) { + //Comp_DICTIONARY_EXCLUDE_378 + test("Comp_DICTIONARY_EXCLUDE_378", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY is not null""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_378") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY is not null""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_378") } - //Comp_VMALL_DICTIONARY_EXCLUDE_379 - test("Comp_VMALL_DICTIONARY_EXCLUDE_379", Include) { + //Comp_DICTIONARY_EXCLUDE_379 + test("Comp_DICTIONARY_EXCLUDE_379", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate is not null""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_379") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate is not null""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_379") } - //Comp_VMALL_DICTIONARY_EXCLUDE_380 - test("Comp_VMALL_DICTIONARY_EXCLUDE_380", Include) { + //Comp_DICTIONARY_EXCLUDE_380 + test("Comp_DICTIONARY_EXCLUDE_380", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId is not null""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId is not null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_380") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId is not null""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId is not null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_380") } - //Comp_VMALL_DICTIONARY_EXCLUDE_381 - test("Comp_VMALL_DICTIONARY_EXCLUDE_381", Include) { + //Comp_DICTIONARY_EXCLUDE_381 + test("Comp_DICTIONARY_EXCLUDE_381", Include) { - checkAnswer(s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE where imei is null""", - s"""select imei from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_381") + checkAnswer(s"""select imei from Comp_DICTIONARY_EXCLUDE where imei is null""", + s"""select imei from Comp_DICTIONARY_EXCLUDE_hive where imei is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_381") } - //Comp_VMALL_DICTIONARY_EXCLUDE_382 - test("Comp_VMALL_DICTIONARY_EXCLUDE_382", Include) { + //Comp_DICTIONARY_EXCLUDE_382 + test("Comp_DICTIONARY_EXCLUDE_382", Include) { - checkAnswer(s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE where gamePointId is null""", - s"""select gamePointId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where gamePointId is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_382") + checkAnswer(s"""select gamePointId from Comp_DICTIONARY_EXCLUDE where gamePointId is null""", + s"""select gamePointId from Comp_DICTIONARY_EXCLUDE_hive where gamePointId is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_382") } - //Comp_VMALL_DICTIONARY_EXCLUDE_383 - test("Comp_VMALL_DICTIONARY_EXCLUDE_383", Include) { + //Comp_DICTIONARY_EXCLUDE_383 + test("Comp_DICTIONARY_EXCLUDE_383", Include) { - checkAnswer(s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE where contractNumber is null""", - s"""select contractNumber from Comp_VMALL_DICTIONARY_EXCLUDE_hive where contractNumber is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_383") + checkAnswer(s"""select contractNumber from Comp_DICTIONARY_EXCLUDE where contractNumber is null""", + s"""select contractNumber from Comp_DICTIONARY_EXCLUDE_hive where contractNumber is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_383") } - //Comp_VMALL_DICTIONARY_EXCLUDE_384 - test("Comp_VMALL_DICTIONARY_EXCLUDE_384", Include) { + //Comp_DICTIONARY_EXCLUDE_384 + test("Comp_DICTIONARY_EXCLUDE_384", Include) { - checkAnswer(s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE where Latest_DAY is null""", - s"""select Latest_DAY from Comp_VMALL_DICTIONARY_EXCLUDE_hive where Latest_DAY is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_384") + checkAnswer(s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE where Latest_DAY is null""", + s"""select Latest_DAY from Comp_DICTIONARY_EXCLUDE_hive where Latest_DAY is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_384") } - //Comp_VMALL_DICTIONARY_EXCLUDE_385 - test("Comp_VMALL_DICTIONARY_EXCLUDE_385", Include) { + //Comp_DICTIONARY_EXCLUDE_385 + test("Comp_DICTIONARY_EXCLUDE_385", Include) { - checkAnswer(s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE where productionDate is null""", - s"""select productionDate from Comp_VMALL_DICTIONARY_EXCLUDE_hive where productionDate is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_385") + checkAnswer(s"""select productionDate from Comp_DICTIONARY_EXCLUDE where productionDate is null""", + s"""select productionDate from Comp_DICTIONARY_EXCLUDE_hive where productionDate is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_385") } - //Comp_VMALL_DICTIONARY_EXCLUDE_386 - test("Comp_VMALL_DICTIONARY_EXCLUDE_386", Include) { + //Comp_DICTIONARY_EXCLUDE_386 + test("Comp_DICTIONARY_EXCLUDE_386", Include) { - checkAnswer(s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE where deviceInformationId is null""", - s"""select deviceInformationId from Comp_VMALL_DICTIONARY_EXCLUDE_hive where deviceInformationId is null""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_386") + checkAnswer(s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE where deviceInformationId is null""", + s"""select deviceInformationId from Comp_DICTIONARY_EXCLUDE_hive where deviceInformationId is null""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_386") } - //Comp_VMALL_DICTIONARY_EXCLUDE_387 - test("Comp_VMALL_DICTIONARY_EXCLUDE_387", Include) { + //Comp_DICTIONARY_EXCLUDE_387 + test("Comp_DICTIONARY_EXCLUDE_387", Include) { - checkAnswer(s"""select count(*) from Comp_VMALL_DICTIONARY_EXCLUDE where imei = '1AA1'""", - s"""select count(*) from Comp_VMALL_DICTIONARY_EXCLUDE_hive where imei = '1AA1'""", "QueriesCompactionTestCase_Comp_VMALL_DICTIONARY_EXCLUDE_387") + checkAnswer(s"""select count(*) from Comp_DICTIONARY_EXCLUDE where imei = '1AA1'""", + s"""select count(*) from Comp_DICTIONARY_EXCLUDE_hive where imei = '1AA1'""", "QueriesCompactionTestCase_DICTIONARY_EXCLUDE_387") } @@ -6833,9 +6833,9 @@ class QueriesCompactionTestCase extends QueryTest with BeforeAndAfterAll { } override def afterAll { - sql("drop table if exists Comp_VMALL_DICTIONARY_INCLUDE") - sql("drop table if exists Comp_VMALL_DICTIONARY_INCLUDE_hive") - sql("drop table if exists Comp_VMALL_DICTIONARY_EXCLUDE") - sql("drop table if exists Comp_VMALL_DICTIONARY_EXCLUDE_hive") + sql("drop table if exists Comp_DICTIONARY_INCLUDE") + sql("drop table if exists Comp_DICTIONARY_INCLUDE_hive") + sql("drop table if exists Comp_DICTIONARY_EXCLUDE") + sql("drop table if exists Comp_DICTIONARY_EXCLUDE_hive") } } \ No newline at end of file diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesExcludeDictionaryTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesExcludeDictionaryTestCase.scala index 03c2f98df82..03ceffe59be 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesExcludeDictionaryTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesExcludeDictionaryTestCase.scala @@ -28,3850 +28,3850 @@ import org.scalatest.BeforeAndAfterAll class QueriesExcludeDictionaryTestCase extends QueryTest with BeforeAndAfterAll { - //VMALL_DICTIONARY_EXCLUDE_CreateCube - test("VMALL_DICTIONARY_EXCLUDE_CreateCube", Include) { - sql(s"""drop table if exists VMALL_DICTIONARY_EXCLUDE""").collect - sql(s"""drop table if exists VMALL_DICTIONARY_EXCLUDE1_hive""").collect + //DICTIONARY_EXCLUDE_CreateCube + test("Queries_DICTIONARY_EXCLUDE_CreateCube", Include) { + sql(s"""drop table if exists TABLE_DICTIONARY_EXCLUDE""").collect + sql(s"""drop table if exists TABLE_DICTIONARY_EXCLUDE1_hive""").collect - sql(s"""create table VMALL_DICTIONARY_EXCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect + sql(s"""create table TABLE_DICTIONARY_EXCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect - sql(s"""create table VMALL_DICTIONARY_EXCLUDE1_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect + sql(s"""create table TABLE_DICTIONARY_EXCLUDE1_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect } - //VMALL_DICTIONARY_EXCLUDE_CreateCube_count - test("VMALL_DICTIONARY_EXCLUDE_CreateCube_count", Include) { + //DICTIONARY_EXCLUDE_CreateCube_count + test("Queries_DICTIONARY_EXCLUDE_CreateCube_count", Include) { - sql(s"""select count(*) from VMALL_DICTIONARY_EXCLUDE""").collect + sql(s"""select count(*) from TABLE_DICTIONARY_EXCLUDE""").collect } - //VMALL_DICTIONARY_EXCLUDE_DataLoad - test("VMALL_DICTIONARY_EXCLUDE_DataLoad", Include) { + //DICTIONARY_EXCLUDE_DataLoad + test("Queries_DICTIONARY_EXCLUDE_DataLoad", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table VMALL_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table TABLE_DICTIONARY_EXCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table VMALL_DICTIONARY_EXCLUDE1_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table TABLE_DICTIONARY_EXCLUDE1_hive """).collect } - //VMALL_DICTIONARY_EXCLUDE_CreateCube1 - test("VMALL_DICTIONARY_EXCLUDE_CreateCube1", Include) { - sql(s"""drop table if exists VMALL_DICTIONARY_EXCLUDE1""").collect + //DICTIONARY_EXCLUDE_CreateCube1 + test("Queries_DICTIONARY_EXCLUDE_CreateCube1", Include) { + sql(s"""drop table if exists TABLE_DICTIONARY_EXCLUDE1""").collect - sql(s"""create table VMALL_DICTIONARY_EXCLUDE1 (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect + sql(s"""create table TABLE_DICTIONARY_EXCLUDE1 (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei')""").collect } - //VMALL_DICTIONARY_EXCLUDE_DataLoad1 - test("VMALL_DICTIONARY_EXCLUDE_DataLoad1", Include) { + //DICTIONARY_EXCLUDE_DataLoad1 + test("Queries_DICTIONARY_EXCLUDE_DataLoad1", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table VMALL_DICTIONARY_EXCLUDE1 options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table TABLE_DICTIONARY_EXCLUDE1 options ('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect } - //VMALL_DICTIONARY_EXCLUDE_001 - test("VMALL_DICTIONARY_EXCLUDE_001", Include) { + //DICTIONARY_EXCLUDE_001 + test("Queries_DICTIONARY_EXCLUDE_001", Include) { - checkAnswer(s"""Select count(imei) from VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(imei) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_001") + checkAnswer(s"""Select count(imei) from TABLE_DICTIONARY_EXCLUDE""", + s"""Select count(imei) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_001") } - //VMALL_DICTIONARY_EXCLUDE_002 - test("VMALL_DICTIONARY_EXCLUDE_002", Include) { + //DICTIONARY_EXCLUDE_002 + test("Queries_DICTIONARY_EXCLUDE_002", Include) { - checkAnswer(s"""select count(DISTINCT imei) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT imei) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_002") + checkAnswer(s"""select count(DISTINCT imei) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT imei) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_002") } - //VMALL_DICTIONARY_EXCLUDE_003 - test("VMALL_DICTIONARY_EXCLUDE_003", Include) { + //DICTIONARY_EXCLUDE_003 + test("Queries_DICTIONARY_EXCLUDE_003", Include) { - checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from VMALL_DICTIONARY_EXCLUDE group by imei order by imei""", - s"""select sum(Latest_month)+10 as a ,imei from VMALL_DICTIONARY_EXCLUDE1_hive group by imei order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_003") + checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from TABLE_DICTIONARY_EXCLUDE group by imei order by imei""", + s"""select sum(Latest_month)+10 as a ,imei from TABLE_DICTIONARY_EXCLUDE1_hive group by imei order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_003") } - //VMALL_DICTIONARY_EXCLUDE_004 - test("VMALL_DICTIONARY_EXCLUDE_004", Include) { + //DICTIONARY_EXCLUDE_004 + test("Queries_DICTIONARY_EXCLUDE_004", Include) { - checkAnswer(s"""select max(imei),min(imei) from VMALL_DICTIONARY_EXCLUDE""", - s"""select max(imei),min(imei) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_004") + checkAnswer(s"""select max(imei),min(imei) from TABLE_DICTIONARY_EXCLUDE""", + s"""select max(imei),min(imei) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_004") } - //VMALL_DICTIONARY_EXCLUDE_005 - test("VMALL_DICTIONARY_EXCLUDE_005", Include) { + //DICTIONARY_EXCLUDE_005 + test("Queries_DICTIONARY_EXCLUDE_005", Include) { - checkAnswer(s"""select min(imei), max(imei) Total from VMALL_DICTIONARY_EXCLUDE group by channelsId order by Total""", - s"""select min(imei), max(imei) Total from VMALL_DICTIONARY_EXCLUDE1_hive group by channelsId order by Total""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_005") + checkAnswer(s"""select min(imei), max(imei) Total from TABLE_DICTIONARY_EXCLUDE group by channelsId order by Total""", + s"""select min(imei), max(imei) Total from TABLE_DICTIONARY_EXCLUDE1_hive group by channelsId order by Total""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_005") } - //VMALL_DICTIONARY_EXCLUDE_006 - test("VMALL_DICTIONARY_EXCLUDE_006", Include) { + //DICTIONARY_EXCLUDE_006 + test("Queries_DICTIONARY_EXCLUDE_006", Include) { - sql(s"""select last(imei) a from VMALL_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect + sql(s"""select last(imei) a from TABLE_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect } - //VMALL_DICTIONARY_EXCLUDE_007 - test("VMALL_DICTIONARY_EXCLUDE_007", Include) { + //DICTIONARY_EXCLUDE_007 + test("Queries_DICTIONARY_EXCLUDE_007", Include) { - sql(s"""select FIRST(imei) a from VMALL_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect + sql(s"""select FIRST(imei) a from TABLE_DICTIONARY_EXCLUDE group by imei order by imei limit 1""").collect } - //VMALL_DICTIONARY_EXCLUDE_008 - test("VMALL_DICTIONARY_EXCLUDE_008", Include) { + //DICTIONARY_EXCLUDE_008 + test("Queries_DICTIONARY_EXCLUDE_008", Include) { - checkAnswer(s"""select imei,count(imei) a from VMALL_DICTIONARY_EXCLUDE group by imei order by imei""", - s"""select imei,count(imei) a from VMALL_DICTIONARY_EXCLUDE1_hive group by imei order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_008") + checkAnswer(s"""select imei,count(imei) a from TABLE_DICTIONARY_EXCLUDE group by imei order by imei""", + s"""select imei,count(imei) a from TABLE_DICTIONARY_EXCLUDE1_hive group by imei order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_008") } - //VMALL_DICTIONARY_EXCLUDE_009 - test("VMALL_DICTIONARY_EXCLUDE_009", Include) { + //DICTIONARY_EXCLUDE_009 + test("Queries_DICTIONARY_EXCLUDE_009", Include) { - checkAnswer(s"""select Lower(imei) a from VMALL_DICTIONARY_EXCLUDE order by imei""", - s"""select Lower(imei) a from VMALL_DICTIONARY_EXCLUDE1_hive order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_009") + checkAnswer(s"""select Lower(imei) a from TABLE_DICTIONARY_EXCLUDE order by imei""", + s"""select Lower(imei) a from TABLE_DICTIONARY_EXCLUDE1_hive order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_009") } - //VMALL_DICTIONARY_EXCLUDE_010 - test("VMALL_DICTIONARY_EXCLUDE_010", Include) { + //DICTIONARY_EXCLUDE_010 + test("Queries_DICTIONARY_EXCLUDE_010", Include) { - checkAnswer(s"""select distinct imei from VMALL_DICTIONARY_EXCLUDE order by imei""", - s"""select distinct imei from VMALL_DICTIONARY_EXCLUDE1_hive order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_010") + checkAnswer(s"""select distinct imei from TABLE_DICTIONARY_EXCLUDE order by imei""", + s"""select distinct imei from TABLE_DICTIONARY_EXCLUDE1_hive order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_010") } - //VMALL_DICTIONARY_EXCLUDE_011 - test("VMALL_DICTIONARY_EXCLUDE_011", Include) { + //DICTIONARY_EXCLUDE_011 + test("Queries_DICTIONARY_EXCLUDE_011", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE order by imei limit 101 """, - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive order by imei limit 101 """, "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_011") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE order by imei limit 101 """, + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive order by imei limit 101 """, "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_011") } - //VMALL_DICTIONARY_EXCLUDE_012 - test("VMALL_DICTIONARY_EXCLUDE_012", Include) { + //DICTIONARY_EXCLUDE_012 + test("Queries_DICTIONARY_EXCLUDE_012", Include) { - sql(s"""select imei as a from VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""").collect + sql(s"""select imei as a from TABLE_DICTIONARY_EXCLUDE order by a asc limit 10""").collect } - //VMALL_DICTIONARY_EXCLUDE_013 - test("VMALL_DICTIONARY_EXCLUDE_013", Include) { + //DICTIONARY_EXCLUDE_013 + test("Queries_DICTIONARY_EXCLUDE_013", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_013") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_013") } - //VMALL_DICTIONARY_EXCLUDE_014 - test("VMALL_DICTIONARY_EXCLUDE_014", Include) { + //DICTIONARY_EXCLUDE_014 + test("Queries_DICTIONARY_EXCLUDE_014", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei !='1AA100064' order by imei""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei !='1AA100064' order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_014") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei !='1AA100064' order by imei""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei !='1AA100064' order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_014") } - //VMALL_DICTIONARY_EXCLUDE_015 - test("VMALL_DICTIONARY_EXCLUDE_015", Include) { + //DICTIONARY_EXCLUDE_015 + test("Queries_DICTIONARY_EXCLUDE_015", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_015") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_015") } - //VMALL_DICTIONARY_EXCLUDE_016 - test("VMALL_DICTIONARY_EXCLUDE_016", Include) { + //DICTIONARY_EXCLUDE_016 + test("Queries_DICTIONARY_EXCLUDE_016", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei !='1AA100012' order by imei""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei !='1AA100012' order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_016") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei !='1AA100012' order by imei""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei !='1AA100012' order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_016") } - //VMALL_DICTIONARY_EXCLUDE_017 - test("VMALL_DICTIONARY_EXCLUDE_017", Include) { + //DICTIONARY_EXCLUDE_017 + test("Queries_DICTIONARY_EXCLUDE_017", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei >'1AA100012' order by imei""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei >'1AA100012' order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_017") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei >'1AA100012' order by imei""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei >'1AA100012' order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_017") } - //VMALL_DICTIONARY_EXCLUDE_018 - test("VMALL_DICTIONARY_EXCLUDE_018", Include) { + //DICTIONARY_EXCLUDE_018 + test("Queries_DICTIONARY_EXCLUDE_018", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei<>imei""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei<>imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_018") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei<>imei""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei<>imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_018") } - //VMALL_DICTIONARY_EXCLUDE_019 - test("VMALL_DICTIONARY_EXCLUDE_019", Include) { + //DICTIONARY_EXCLUDE_019 + test("Queries_DICTIONARY_EXCLUDE_019", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei != Latest_areaId order by imei""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei != Latest_areaId order by imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_019") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei != Latest_areaId order by imei""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei != Latest_areaId order by imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_019") } - //VMALL_DICTIONARY_EXCLUDE_020 - test("VMALL_DICTIONARY_EXCLUDE_020", Include) { + //DICTIONARY_EXCLUDE_020 + test("Queries_DICTIONARY_EXCLUDE_020", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where Latest_areaId9223372047700 order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_070") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber >9223372047700 order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_070") } - //VMALL_DICTIONARY_EXCLUDE_071 - test("VMALL_DICTIONARY_EXCLUDE_071", Include) { + //DICTIONARY_EXCLUDE_071 + test("Queries_DICTIONARY_EXCLUDE_071", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where contractNumber<>contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber<>contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_071") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber<>contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber<>contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_071") } - //VMALL_DICTIONARY_EXCLUDE_072 - test("VMALL_DICTIONARY_EXCLUDE_072", Include) { + //DICTIONARY_EXCLUDE_072 + test("Queries_DICTIONARY_EXCLUDE_072", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where contractNumber != Latest_areaId order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_072") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber != Latest_areaId order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_072") } - //VMALL_DICTIONARY_EXCLUDE_073 - test("VMALL_DICTIONARY_EXCLUDE_073", Include) { + //DICTIONARY_EXCLUDE_073 + test("Queries_DICTIONARY_EXCLUDE_073", Include) { - checkAnswer(s"""select contractNumber, contractNumber from VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber >1000 order by contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_076") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber >1000 order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber >1000 order by contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_076") } - //VMALL_DICTIONARY_EXCLUDE_077 - test("VMALL_DICTIONARY_EXCLUDE_077", Include) { + //DICTIONARY_EXCLUDE_077 + test("Queries_DICTIONARY_EXCLUDE_077", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where contractNumber IS NULL order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber IS NULL order by contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_077") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber IS NULL order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber IS NULL order by contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_077") } - //VMALL_DICTIONARY_EXCLUDE_078 - test("VMALL_DICTIONARY_EXCLUDE_078", Include) { + //DICTIONARY_EXCLUDE_078 + test("Queries_DICTIONARY_EXCLUDE_078", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_078") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_078") } - //VMALL_DICTIONARY_EXCLUDE_079 - test("VMALL_DICTIONARY_EXCLUDE_079", Include) { + //DICTIONARY_EXCLUDE_079 + test("Queries_DICTIONARY_EXCLUDE_079", Include) { - checkAnswer(s"""Select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_079") + checkAnswer(s"""Select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE""", + s"""Select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_079") } - //VMALL_DICTIONARY_EXCLUDE_080 - test("VMALL_DICTIONARY_EXCLUDE_080", Include) { + //DICTIONARY_EXCLUDE_080 + test("Queries_DICTIONARY_EXCLUDE_080", Include) { - checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT Latest_DAY) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_080") + checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT Latest_DAY) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_080") } - //VMALL_DICTIONARY_EXCLUDE_081 - test("VMALL_DICTIONARY_EXCLUDE_081", Include) { + //DICTIONARY_EXCLUDE_081 + test("Queries_DICTIONARY_EXCLUDE_081", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from VMALL_DICTIONARY_EXCLUDE group by Latest_DAY order by a""", - s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive group by Latest_DAY order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_081") + checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from TABLE_DICTIONARY_EXCLUDE group by Latest_DAY order by a""", + s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive group by Latest_DAY order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_081") } - //VMALL_DICTIONARY_EXCLUDE_082 - test("VMALL_DICTIONARY_EXCLUDE_082", Include) { + //DICTIONARY_EXCLUDE_082 + test("Queries_DICTIONARY_EXCLUDE_082", Include) { - checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE""", - s"""select max(Latest_DAY),min(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_082") + checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE""", + s"""select max(Latest_DAY),min(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_082") } - //VMALL_DICTIONARY_EXCLUDE_083 - test("VMALL_DICTIONARY_EXCLUDE_083", Include) { + //DICTIONARY_EXCLUDE_083 + test("Queries_DICTIONARY_EXCLUDE_083", Include) { - checkAnswer(s"""select sum(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_083") + checkAnswer(s"""select sum(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_083") } - //VMALL_DICTIONARY_EXCLUDE_084 - test("VMALL_DICTIONARY_EXCLUDE_084", Include) { + //DICTIONARY_EXCLUDE_084 + test("Queries_DICTIONARY_EXCLUDE_084", Include) { - checkAnswer(s"""select avg(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select avg(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_084") + checkAnswer(s"""select avg(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select avg(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_084") } - //VMALL_DICTIONARY_EXCLUDE_085 - test("VMALL_DICTIONARY_EXCLUDE_085", Include) { + //DICTIONARY_EXCLUDE_085 + test("Queries_DICTIONARY_EXCLUDE_085", Include) { - checkAnswer(s"""select min(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select min(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_085") + checkAnswer(s"""select min(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select min(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_085") } - //VMALL_DICTIONARY_EXCLUDE_086 - test("VMALL_DICTIONARY_EXCLUDE_086", Include) { + //DICTIONARY_EXCLUDE_086 + test("Queries_DICTIONARY_EXCLUDE_086", Include) { - sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_087 - test("VMALL_DICTIONARY_EXCLUDE_087", Include) { + //DICTIONARY_EXCLUDE_087 + test("Queries_DICTIONARY_EXCLUDE_087", Include) { - sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_088 - test("VMALL_DICTIONARY_EXCLUDE_088", Include) { + //DICTIONARY_EXCLUDE_088 + test("Queries_DICTIONARY_EXCLUDE_088", Include) { - sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_089 - test("VMALL_DICTIONARY_EXCLUDE_089", Include) { + //DICTIONARY_EXCLUDE_089 + test("Queries_DICTIONARY_EXCLUDE_089", Include) { - sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_090 - test("VMALL_DICTIONARY_EXCLUDE_090", Include) { + //DICTIONARY_EXCLUDE_090 + test("Queries_DICTIONARY_EXCLUDE_090", Include) { - sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_091 - test("VMALL_DICTIONARY_EXCLUDE_091", Include) { + //DICTIONARY_EXCLUDE_091 + test("Queries_DICTIONARY_EXCLUDE_091", Include) { - sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_092 - test("VMALL_DICTIONARY_EXCLUDE_092", Include) { + //DICTIONARY_EXCLUDE_092 + test("Queries_DICTIONARY_EXCLUDE_092", Include) { - sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_093 - test("VMALL_DICTIONARY_EXCLUDE_093", Include) { + //DICTIONARY_EXCLUDE_093 + test("Queries_DICTIONARY_EXCLUDE_093", Include) { - checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(Latest_DAY,Latest_DAY) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_093") + checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select corr(Latest_DAY,Latest_DAY) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_093") } - //VMALL_DICTIONARY_EXCLUDE_094 - test("VMALL_DICTIONARY_EXCLUDE_094", Include) { + //DICTIONARY_EXCLUDE_094 + test("Queries_DICTIONARY_EXCLUDE_094", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_095 - test("VMALL_DICTIONARY_EXCLUDE_095", Include) { + //DICTIONARY_EXCLUDE_095 + test("Queries_DICTIONARY_EXCLUDE_095", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_096 - test("VMALL_DICTIONARY_EXCLUDE_096", Include) { + //DICTIONARY_EXCLUDE_096 + test("Queries_DICTIONARY_EXCLUDE_096", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_097 - test("VMALL_DICTIONARY_EXCLUDE_097", Include) { + //DICTIONARY_EXCLUDE_097 + test("Queries_DICTIONARY_EXCLUDE_097", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_098 - test("VMALL_DICTIONARY_EXCLUDE_098", Include) { + //DICTIONARY_EXCLUDE_098 + test("Queries_DICTIONARY_EXCLUDE_098", Include) { - sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_099 - test("VMALL_DICTIONARY_EXCLUDE_099", Include) { + //DICTIONARY_EXCLUDE_099 + test("Queries_DICTIONARY_EXCLUDE_099", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select Latest_DAY, Latest_DAY+ 10 as a from VMALL_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_099") + checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from TABLE_DICTIONARY_EXCLUDE order by a""", + s"""select Latest_DAY, Latest_DAY+ 10 as a from TABLE_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_099") } - //VMALL_DICTIONARY_EXCLUDE_100 - test("VMALL_DICTIONARY_EXCLUDE_100", Include) { + //DICTIONARY_EXCLUDE_100 + test("Queries_DICTIONARY_EXCLUDE_100", Include) { - checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from VMALL_DICTIONARY_EXCLUDE group by channelsId order by d, Total""", - s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from VMALL_DICTIONARY_EXCLUDE1_hive group by channelsId order by d,Total""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_100") + checkAnswer(s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from TABLE_DICTIONARY_EXCLUDE group by channelsId order by d, Total""", + s"""select min(Latest_DAY) d, max(Latest_DAY+ 10) Total from TABLE_DICTIONARY_EXCLUDE1_hive group by channelsId order by d,Total""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_100") } - //VMALL_DICTIONARY_EXCLUDE_101 - test("VMALL_DICTIONARY_EXCLUDE_101", Include) { + //DICTIONARY_EXCLUDE_101 + test("Queries_DICTIONARY_EXCLUDE_101", Include) { - sql(s"""select last(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE order by a""").collect + sql(s"""select last(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE order by a""").collect } - //VMALL_DICTIONARY_EXCLUDE_102 - test("VMALL_DICTIONARY_EXCLUDE_102", Include) { + //DICTIONARY_EXCLUDE_102 + test("Queries_DICTIONARY_EXCLUDE_102", Include) { - sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect + sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_103 - test("VMALL_DICTIONARY_EXCLUDE_103", Include) { + //DICTIONARY_EXCLUDE_103 + test("Queries_DICTIONARY_EXCLUDE_103", Include) { - checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE group by Latest_DAY order by Latest_DAY""", - s"""select Latest_DAY,count(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE1_hive group by Latest_DAY order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_103") + checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE group by Latest_DAY order by Latest_DAY""", + s"""select Latest_DAY,count(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE1_hive group by Latest_DAY order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_103") } - //VMALL_DICTIONARY_EXCLUDE_104 - test("VMALL_DICTIONARY_EXCLUDE_104", Include) { + //DICTIONARY_EXCLUDE_104 + test("Queries_DICTIONARY_EXCLUDE_104", Include) { - checkAnswer(s"""select Lower(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select Lower(Latest_DAY) a from VMALL_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_104") + checkAnswer(s"""select Lower(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE order by a""", + s"""select Lower(Latest_DAY) a from TABLE_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_104") } - //VMALL_DICTIONARY_EXCLUDE_105 - test("VMALL_DICTIONARY_EXCLUDE_105", Include) { + //DICTIONARY_EXCLUDE_105 + test("Queries_DICTIONARY_EXCLUDE_105", Include) { - checkAnswer(s"""select distinct Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY""", - s"""select distinct Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_105") + checkAnswer(s"""select distinct Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY""", + s"""select distinct Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_105") } - //VMALL_DICTIONARY_EXCLUDE_106 - test("VMALL_DICTIONARY_EXCLUDE_106", Include) { + //DICTIONARY_EXCLUDE_106 + test("Queries_DICTIONARY_EXCLUDE_106", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE order by Latest_DAY limit 101""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive order by Latest_DAY limit 101""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_106") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE order by Latest_DAY limit 101""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive order by Latest_DAY limit 101""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_106") } - //VMALL_DICTIONARY_EXCLUDE_107 - test("VMALL_DICTIONARY_EXCLUDE_107", Include) { + //DICTIONARY_EXCLUDE_107 + test("Queries_DICTIONARY_EXCLUDE_107", Include) { - checkAnswer(s"""select Latest_DAY as a from VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select Latest_DAY as a from VMALL_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_107") + checkAnswer(s"""select Latest_DAY as a from TABLE_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select Latest_DAY as a from TABLE_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_107") } - //VMALL_DICTIONARY_EXCLUDE_108 - test("VMALL_DICTIONARY_EXCLUDE_108", Include) { + //DICTIONARY_EXCLUDE_108 + test("Queries_DICTIONARY_EXCLUDE_108", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_108") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_108") } - //VMALL_DICTIONARY_EXCLUDE_109 - test("VMALL_DICTIONARY_EXCLUDE_109", Include) { + //DICTIONARY_EXCLUDE_109 + test("Queries_DICTIONARY_EXCLUDE_109", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_109") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_109") } - //VMALL_DICTIONARY_EXCLUDE_110 - test("VMALL_DICTIONARY_EXCLUDE_110", Include) { + //DICTIONARY_EXCLUDE_110 + test("Queries_DICTIONARY_EXCLUDE_110", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_110") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_110") } - //VMALL_DICTIONARY_EXCLUDE_111 - test("VMALL_DICTIONARY_EXCLUDE_111", Include) { + //DICTIONARY_EXCLUDE_111 + test("Queries_DICTIONARY_EXCLUDE_111", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_111") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_111") } - //VMALL_DICTIONARY_EXCLUDE_112 - test("VMALL_DICTIONARY_EXCLUDE_112", Include) { + //DICTIONARY_EXCLUDE_112 + test("Queries_DICTIONARY_EXCLUDE_112", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_112") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_112") } - //VMALL_DICTIONARY_EXCLUDE_113 - test("VMALL_DICTIONARY_EXCLUDE_113", Include) { + //DICTIONARY_EXCLUDE_113 + test("Queries_DICTIONARY_EXCLUDE_113", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY<>Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY<>Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_113") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY<>Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY<>Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_113") } - //VMALL_DICTIONARY_EXCLUDE_114 - test("VMALL_DICTIONARY_EXCLUDE_114", Include) { + //DICTIONARY_EXCLUDE_114 + test("Queries_DICTIONARY_EXCLUDE_114", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_114") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_114") } - //VMALL_DICTIONARY_EXCLUDE_115 - test("VMALL_DICTIONARY_EXCLUDE_115", Include) { + //DICTIONARY_EXCLUDE_115 + test("Queries_DICTIONARY_EXCLUDE_115", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_118") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY >1000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_118") } - //VMALL_DICTIONARY_EXCLUDE_119 - test("VMALL_DICTIONARY_EXCLUDE_119", Include) { + //DICTIONARY_EXCLUDE_119 + test("Queries_DICTIONARY_EXCLUDE_119", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NULL order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_119") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY IS NULL order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_119") } - //VMALL_DICTIONARY_EXCLUDE_120 - test("VMALL_DICTIONARY_EXCLUDE_120", Include) { + //DICTIONARY_EXCLUDE_120 + test("Queries_DICTIONARY_EXCLUDE_120", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_120") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_120") } - //VMALL_DICTIONARY_EXCLUDE_121 - test("VMALL_DICTIONARY_EXCLUDE_121", Include) { + //DICTIONARY_EXCLUDE_121 + test("Queries_DICTIONARY_EXCLUDE_121", Include) { - checkAnswer(s"""Select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_121") + checkAnswer(s"""Select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE""", + s"""Select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_121") } - //VMALL_DICTIONARY_EXCLUDE_122 - test("VMALL_DICTIONARY_EXCLUDE_122", Include) { + //DICTIONARY_EXCLUDE_122 + test("Queries_DICTIONARY_EXCLUDE_122", Include) { - checkAnswer(s"""select count(DISTINCT gamePointId) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT gamePointId) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_122") + checkAnswer(s"""select count(DISTINCT gamePointId) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT gamePointId) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_122") } - //VMALL_DICTIONARY_EXCLUDE_123 - test("VMALL_DICTIONARY_EXCLUDE_123", Include) { + //DICTIONARY_EXCLUDE_123 + test("Queries_DICTIONARY_EXCLUDE_123", Include) { - checkAnswer(s"""select sum(gamePointId)+10 as a ,gamePointId from VMALL_DICTIONARY_EXCLUDE group by gamePointId order by a""", - s"""select sum(gamePointId)+10 as a ,gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive group by gamePointId order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_123") + checkAnswer(s"""select sum(gamePointId)+10 as a ,gamePointId from TABLE_DICTIONARY_EXCLUDE group by gamePointId order by a""", + s"""select sum(gamePointId)+10 as a ,gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive group by gamePointId order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_123") } - //VMALL_DICTIONARY_EXCLUDE_124 - test("VMALL_DICTIONARY_EXCLUDE_124", Include) { + //DICTIONARY_EXCLUDE_124 + test("Queries_DICTIONARY_EXCLUDE_124", Include) { - checkAnswer(s"""select max(gamePointId),min(gamePointId) from VMALL_DICTIONARY_EXCLUDE""", - s"""select max(gamePointId),min(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_124") + checkAnswer(s"""select max(gamePointId),min(gamePointId) from TABLE_DICTIONARY_EXCLUDE""", + s"""select max(gamePointId),min(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_124") } - //VMALL_DICTIONARY_EXCLUDE_125 - ignore("VMALL_DICTIONARY_EXCLUDE_125", Include) { + //DICTIONARY_EXCLUDE_125 + ignore("Queries_DICTIONARY_EXCLUDE_125", Include) { - checkAnswer(s"""select sum(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select sum(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_125") + checkAnswer(s"""select sum(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select sum(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_125") } - //VMALL_DICTIONARY_EXCLUDE_126 - ignore("VMALL_DICTIONARY_EXCLUDE_126", Include) { + //DICTIONARY_EXCLUDE_126 + ignore("Queries_DICTIONARY_EXCLUDE_126", Include) { - checkAnswer(s"""select avg(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select avg(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_126") + checkAnswer(s"""select avg(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select avg(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_126") } - //VMALL_DICTIONARY_EXCLUDE_127 - test("VMALL_DICTIONARY_EXCLUDE_127", Include) { + //DICTIONARY_EXCLUDE_127 + test("Queries_DICTIONARY_EXCLUDE_127", Include) { - checkAnswer(s"""select min(gamePointId) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select min(gamePointId) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_127") + checkAnswer(s"""select min(gamePointId) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select min(gamePointId) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_127") } - //VMALL_DICTIONARY_EXCLUDE_128 - test("VMALL_DICTIONARY_EXCLUDE_128", Include) { + //DICTIONARY_EXCLUDE_128 + test("Queries_DICTIONARY_EXCLUDE_128", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_129 - test("VMALL_DICTIONARY_EXCLUDE_129", Include) { + //DICTIONARY_EXCLUDE_129 + test("Queries_DICTIONARY_EXCLUDE_129", Include) { - sql(s"""select var_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select var_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_130 - test("VMALL_DICTIONARY_EXCLUDE_130", Include) { + //DICTIONARY_EXCLUDE_130 + test("Queries_DICTIONARY_EXCLUDE_130", Include) { - sql(s"""select var_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select var_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_131 - test("VMALL_DICTIONARY_EXCLUDE_131", Include) { + //DICTIONARY_EXCLUDE_131 + test("Queries_DICTIONARY_EXCLUDE_131", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_132 - test("VMALL_DICTIONARY_EXCLUDE_132", Include) { + //DICTIONARY_EXCLUDE_132 + test("Queries_DICTIONARY_EXCLUDE_132", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_133 - test("VMALL_DICTIONARY_EXCLUDE_133", Include) { + //DICTIONARY_EXCLUDE_133 + test("Queries_DICTIONARY_EXCLUDE_133", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_134 - test("VMALL_DICTIONARY_EXCLUDE_134", Include) { + //DICTIONARY_EXCLUDE_134 + test("Queries_DICTIONARY_EXCLUDE_134", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_135 - test("VMALL_DICTIONARY_EXCLUDE_135", Include) { + //DICTIONARY_EXCLUDE_135 + test("Queries_DICTIONARY_EXCLUDE_135", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_135") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_135") } - //VMALL_DICTIONARY_EXCLUDE_136 - test("VMALL_DICTIONARY_EXCLUDE_136", Include) { + //DICTIONARY_EXCLUDE_136 + test("Queries_DICTIONARY_EXCLUDE_136", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_137 - test("VMALL_DICTIONARY_EXCLUDE_137", Include) { + //DICTIONARY_EXCLUDE_137 + test("Queries_DICTIONARY_EXCLUDE_137", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_138 - test("VMALL_DICTIONARY_EXCLUDE_138", Include) { + //DICTIONARY_EXCLUDE_138 + test("Queries_DICTIONARY_EXCLUDE_138", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_139 - test("VMALL_DICTIONARY_EXCLUDE_139", Include) { + //DICTIONARY_EXCLUDE_139 + test("Queries_DICTIONARY_EXCLUDE_139", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_140 - test("VMALL_DICTIONARY_EXCLUDE_140", Include) { + //DICTIONARY_EXCLUDE_140 + test("Queries_DICTIONARY_EXCLUDE_140", Include) { - sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_141 - test("VMALL_DICTIONARY_EXCLUDE_141", Include) { + //DICTIONARY_EXCLUDE_141 + test("Queries_DICTIONARY_EXCLUDE_141", Include) { - checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select gamePointId, gamePointId+ 10 as a from VMALL_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_141") + checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from TABLE_DICTIONARY_EXCLUDE order by a""", + s"""select gamePointId, gamePointId+ 10 as a from TABLE_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_141") } - //VMALL_DICTIONARY_EXCLUDE_142 - test("VMALL_DICTIONARY_EXCLUDE_142", Include) { + //DICTIONARY_EXCLUDE_142 + test("Queries_DICTIONARY_EXCLUDE_142", Include) { - checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from VMALL_DICTIONARY_EXCLUDE group by channelsId order by Total""", - s"""select min(gamePointId), max(gamePointId+ 10) Total from VMALL_DICTIONARY_EXCLUDE1_hive group by channelsId order by Total""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_142") + checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from TABLE_DICTIONARY_EXCLUDE group by channelsId order by Total""", + s"""select min(gamePointId), max(gamePointId+ 10) Total from TABLE_DICTIONARY_EXCLUDE1_hive group by channelsId order by Total""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_142") } - //VMALL_DICTIONARY_EXCLUDE_143 - test("VMALL_DICTIONARY_EXCLUDE_143", Include) { + //DICTIONARY_EXCLUDE_143 + test("Queries_DICTIONARY_EXCLUDE_143", Include) { - sql(s"""select last(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select last(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_144 - ignore("VMALL_DICTIONARY_EXCLUDE_144", Include) { + //DICTIONARY_EXCLUDE_144 + ignore("Queries_DICTIONARY_EXCLUDE_144", Include) { - checkAnswer(s"""select FIRST(gamePointId) a from VMALL_DICTIONARY_EXCLUDE order by a""", - s"""select FIRST(gamePointId) a from VMALL_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_144") + checkAnswer(s"""select FIRST(gamePointId) a from TABLE_DICTIONARY_EXCLUDE order by a""", + s"""select FIRST(gamePointId) a from TABLE_DICTIONARY_EXCLUDE1_hive order by a""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_144") } - //VMALL_DICTIONARY_EXCLUDE_145 - test("VMALL_DICTIONARY_EXCLUDE_145", Include) { + //DICTIONARY_EXCLUDE_145 + test("Queries_DICTIONARY_EXCLUDE_145", Include) { - checkAnswer(s"""select gamePointId,count(gamePointId) a from VMALL_DICTIONARY_EXCLUDE group by gamePointId order by gamePointId""", - s"""select gamePointId,count(gamePointId) a from VMALL_DICTIONARY_EXCLUDE1_hive group by gamePointId order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_145") + checkAnswer(s"""select gamePointId,count(gamePointId) a from TABLE_DICTIONARY_EXCLUDE group by gamePointId order by gamePointId""", + s"""select gamePointId,count(gamePointId) a from TABLE_DICTIONARY_EXCLUDE1_hive group by gamePointId order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_145") } - //VMALL_DICTIONARY_EXCLUDE_146 - test("VMALL_DICTIONARY_EXCLUDE_146", Include) { + //DICTIONARY_EXCLUDE_146 + test("Queries_DICTIONARY_EXCLUDE_146", Include) { - checkAnswer(s"""select Lower(gamePointId) a from VMALL_DICTIONARY_EXCLUDE order by gamePointId""", - s"""select Lower(gamePointId) a from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_146") + checkAnswer(s"""select Lower(gamePointId) a from TABLE_DICTIONARY_EXCLUDE order by gamePointId""", + s"""select Lower(gamePointId) a from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_146") } - //VMALL_DICTIONARY_EXCLUDE_147 - test("VMALL_DICTIONARY_EXCLUDE_147", Include) { + //DICTIONARY_EXCLUDE_147 + test("Queries_DICTIONARY_EXCLUDE_147", Include) { - checkAnswer(s"""select distinct gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId""", - s"""select distinct gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_147") + checkAnswer(s"""select distinct gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId""", + s"""select distinct gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_147") } - //VMALL_DICTIONARY_EXCLUDE_148 - test("VMALL_DICTIONARY_EXCLUDE_148", Include) { + //DICTIONARY_EXCLUDE_148 + test("Queries_DICTIONARY_EXCLUDE_148", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId limit 101""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId limit 101""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_148") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId limit 101""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId limit 101""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_148") } - //VMALL_DICTIONARY_EXCLUDE_149 - test("VMALL_DICTIONARY_EXCLUDE_149", Include) { + //DICTIONARY_EXCLUDE_149 + test("Queries_DICTIONARY_EXCLUDE_149", Include) { - checkAnswer(s"""select gamePointId as a from VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select gamePointId as a from VMALL_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_149") + checkAnswer(s"""select gamePointId as a from TABLE_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select gamePointId as a from TABLE_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_149") } - //VMALL_DICTIONARY_EXCLUDE_150 - test("VMALL_DICTIONARY_EXCLUDE_150", Include) { + //DICTIONARY_EXCLUDE_150 + test("Queries_DICTIONARY_EXCLUDE_150", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_150") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_150") } - //VMALL_DICTIONARY_EXCLUDE_151 - test("VMALL_DICTIONARY_EXCLUDE_151", Include) { + //DICTIONARY_EXCLUDE_151 + test("Queries_DICTIONARY_EXCLUDE_151", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_151") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_151") } - //VMALL_DICTIONARY_EXCLUDE_152 - test("VMALL_DICTIONARY_EXCLUDE_152", Include) { + //DICTIONARY_EXCLUDE_152 + test("Queries_DICTIONARY_EXCLUDE_152", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_152") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_152") } - //VMALL_DICTIONARY_EXCLUDE_153 - test("VMALL_DICTIONARY_EXCLUDE_153", Include) { + //DICTIONARY_EXCLUDE_153 + test("Queries_DICTIONARY_EXCLUDE_153", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId !=4.70133553923674E43""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_153") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId !=4.70133553923674E43""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId !=4.70133553923674E43""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_153") } - //VMALL_DICTIONARY_EXCLUDE_154 - test("VMALL_DICTIONARY_EXCLUDE_154", Include) { + //DICTIONARY_EXCLUDE_154 + test("Queries_DICTIONARY_EXCLUDE_154", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId >4.70133553923674E43""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId >4.70133553923674E43""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_154") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId >4.70133553923674E43""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId >4.70133553923674E43""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_154") } - //VMALL_DICTIONARY_EXCLUDE_155 - test("VMALL_DICTIONARY_EXCLUDE_155", Include) { + //DICTIONARY_EXCLUDE_155 + test("Queries_DICTIONARY_EXCLUDE_155", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId<>gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId<>gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_155") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId<>gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId<>gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_155") } - //VMALL_DICTIONARY_EXCLUDE_156 - test("VMALL_DICTIONARY_EXCLUDE_156", Include) { + //DICTIONARY_EXCLUDE_156 + test("Queries_DICTIONARY_EXCLUDE_156", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId != Latest_areaId order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_156") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId != Latest_areaId order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_156") } - //VMALL_DICTIONARY_EXCLUDE_157 - test("VMALL_DICTIONARY_EXCLUDE_157", Include) { + //DICTIONARY_EXCLUDE_157 + test("Queries_DICTIONARY_EXCLUDE_157", Include) { - checkAnswer(s"""select gamePointId, gamePointId from VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId >1000 order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_160") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId >1000 order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId >1000 order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_160") } - //VMALL_DICTIONARY_EXCLUDE_161 - test("VMALL_DICTIONARY_EXCLUDE_161", Include) { + //DICTIONARY_EXCLUDE_161 + test("Queries_DICTIONARY_EXCLUDE_161", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId IS NULL order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId IS NULL order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_161") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId IS NULL order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId IS NULL order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_161") } - //VMALL_DICTIONARY_EXCLUDE_162 - test("VMALL_DICTIONARY_EXCLUDE_162", Include) { + //DICTIONARY_EXCLUDE_162 + test("Queries_DICTIONARY_EXCLUDE_162", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId IS NOT NULL order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_162") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId IS NOT NULL order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_162") } - //VMALL_DICTIONARY_EXCLUDE_163 - test("VMALL_DICTIONARY_EXCLUDE_163", Include) { + //DICTIONARY_EXCLUDE_163 + test("Queries_DICTIONARY_EXCLUDE_163", Include) { - checkAnswer(s"""Select count(productionDate) from VMALL_DICTIONARY_EXCLUDE""", - s"""Select count(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_163") + checkAnswer(s"""Select count(productionDate) from TABLE_DICTIONARY_EXCLUDE""", + s"""Select count(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_163") } - //VMALL_DICTIONARY_EXCLUDE_164 - test("VMALL_DICTIONARY_EXCLUDE_164", Include) { + //DICTIONARY_EXCLUDE_164 + test("Queries_DICTIONARY_EXCLUDE_164", Include) { - checkAnswer(s"""select count(DISTINCT productionDate) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(DISTINCT productionDate) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_164") + checkAnswer(s"""select count(DISTINCT productionDate) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(DISTINCT productionDate) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_164") } - //VMALL_DICTIONARY_EXCLUDE_165 - test("VMALL_DICTIONARY_EXCLUDE_165", Include) { + //DICTIONARY_EXCLUDE_165 + test("Queries_DICTIONARY_EXCLUDE_165", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from VMALL_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", - s"""select sum(productionDate)+10 as a ,productionDate from VMALL_DICTIONARY_EXCLUDE1_hive group by productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_165") + checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from TABLE_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", + s"""select sum(productionDate)+10 as a ,productionDate from TABLE_DICTIONARY_EXCLUDE1_hive group by productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_165") } - //VMALL_DICTIONARY_EXCLUDE_166 - test("VMALL_DICTIONARY_EXCLUDE_166", Include) { + //DICTIONARY_EXCLUDE_166 + test("Queries_DICTIONARY_EXCLUDE_166", Include) { - checkAnswer(s"""select max(productionDate),min(productionDate) from VMALL_DICTIONARY_EXCLUDE""", - s"""select max(productionDate),min(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_166") + checkAnswer(s"""select max(productionDate),min(productionDate) from TABLE_DICTIONARY_EXCLUDE""", + s"""select max(productionDate),min(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_166") } - //VMALL_DICTIONARY_EXCLUDE_167 - test("VMALL_DICTIONARY_EXCLUDE_167", Include) { + //DICTIONARY_EXCLUDE_167 + test("Queries_DICTIONARY_EXCLUDE_167", Include) { - checkAnswer(s"""select sum(productionDate) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_167") + checkAnswer(s"""select sum(productionDate) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_167") } - //VMALL_DICTIONARY_EXCLUDE_168 - test("VMALL_DICTIONARY_EXCLUDE_168", Include) { + //DICTIONARY_EXCLUDE_168 + test("Queries_DICTIONARY_EXCLUDE_168", Include) { - checkAnswer(s"""select avg(productionDate) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select avg(productionDate) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_168") + checkAnswer(s"""select avg(productionDate) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select avg(productionDate) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_168") } - //VMALL_DICTIONARY_EXCLUDE_169 - test("VMALL_DICTIONARY_EXCLUDE_169", Include) { + //DICTIONARY_EXCLUDE_169 + test("Queries_DICTIONARY_EXCLUDE_169", Include) { - checkAnswer(s"""select min(productionDate) a from VMALL_DICTIONARY_EXCLUDE""", - s"""select min(productionDate) a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_169") + checkAnswer(s"""select min(productionDate) a from TABLE_DICTIONARY_EXCLUDE""", + s"""select min(productionDate) a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_169") } - //VMALL_DICTIONARY_EXCLUDE_170 - test("VMALL_DICTIONARY_EXCLUDE_170", Include) { + //DICTIONARY_EXCLUDE_170 + test("Queries_DICTIONARY_EXCLUDE_170", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_171 - ignore("VMALL_DICTIONARY_EXCLUDE_171", Include) { + //DICTIONARY_EXCLUDE_171 + ignore("Queries_DICTIONARY_EXCLUDE_171", Include) { - checkAnswer(s"""select var_pop(gamePointId) as a from (select * from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select var_pop(gamePointId) as a from (select * from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_171") + checkAnswer(s"""select var_pop(gamePointId) as a from (select * from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select var_pop(gamePointId) as a from (select * from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_171") } - //VMALL_DICTIONARY_EXCLUDE_172 - ignore("VMALL_DICTIONARY_EXCLUDE_172", Include) { + //DICTIONARY_EXCLUDE_172 + ignore("Queries_DICTIONARY_EXCLUDE_172", Include) { - checkAnswer(s"""select var_samp(gamePointId) as a from (select * from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select var_samp(gamePointId) as a from (select * from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_172") + checkAnswer(s"""select var_samp(gamePointId) as a from (select * from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select var_samp(gamePointId) as a from (select * from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_172") } - //VMALL_DICTIONARY_EXCLUDE_173 - test("VMALL_DICTIONARY_EXCLUDE_173", Include) { + //DICTIONARY_EXCLUDE_173 + test("Queries_DICTIONARY_EXCLUDE_173", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_174 - test("VMALL_DICTIONARY_EXCLUDE_174", Include) { + //DICTIONARY_EXCLUDE_174 + test("Queries_DICTIONARY_EXCLUDE_174", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_175 - test("VMALL_DICTIONARY_EXCLUDE_175", Include) { + //DICTIONARY_EXCLUDE_175 + test("Queries_DICTIONARY_EXCLUDE_175", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_176 - test("VMALL_DICTIONARY_EXCLUDE_176", Include) { + //DICTIONARY_EXCLUDE_176 + test("Queries_DICTIONARY_EXCLUDE_176", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_177 - test("VMALL_DICTIONARY_EXCLUDE_177", Include) { + //DICTIONARY_EXCLUDE_177 + test("Queries_DICTIONARY_EXCLUDE_177", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_177") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_177") } - //VMALL_DICTIONARY_EXCLUDE_178 - test("VMALL_DICTIONARY_EXCLUDE_178", Include) { + //DICTIONARY_EXCLUDE_178 + test("Queries_DICTIONARY_EXCLUDE_178", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_179 - test("VMALL_DICTIONARY_EXCLUDE_179", Include) { + //DICTIONARY_EXCLUDE_179 + test("Queries_DICTIONARY_EXCLUDE_179", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_180 - test("VMALL_DICTIONARY_EXCLUDE_180", Include) { + //DICTIONARY_EXCLUDE_180 + test("Queries_DICTIONARY_EXCLUDE_180", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_181 - test("VMALL_DICTIONARY_EXCLUDE_181", Include) { + //DICTIONARY_EXCLUDE_181 + test("Queries_DICTIONARY_EXCLUDE_181", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_182 - test("VMALL_DICTIONARY_EXCLUDE_182", Include) { + //DICTIONARY_EXCLUDE_182 + test("Queries_DICTIONARY_EXCLUDE_182", Include) { - sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from VMALL_DICTIONARY_EXCLUDE order by productionDate) t""").collect + sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from TABLE_DICTIONARY_EXCLUDE order by productionDate) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_183 - test("VMALL_DICTIONARY_EXCLUDE_183", Include) { + //DICTIONARY_EXCLUDE_183 + test("Queries_DICTIONARY_EXCLUDE_183", Include) { - sql(s"""select last(productionDate) a from VMALL_DICTIONARY_EXCLUDE order by a""").collect + sql(s"""select last(productionDate) a from TABLE_DICTIONARY_EXCLUDE order by a""").collect } - //VMALL_DICTIONARY_EXCLUDE_184 - test("VMALL_DICTIONARY_EXCLUDE_184", Include) { + //DICTIONARY_EXCLUDE_184 + test("Queries_DICTIONARY_EXCLUDE_184", Include) { - sql(s"""select FIRST(productionDate) a from (select productionDate from VMALL_DICTIONARY_EXCLUDE order by productionDate) t""").collect + sql(s"""select FIRST(productionDate) a from (select productionDate from TABLE_DICTIONARY_EXCLUDE order by productionDate) t""").collect } - //VMALL_DICTIONARY_EXCLUDE_185 - test("VMALL_DICTIONARY_EXCLUDE_185", Include) { + //DICTIONARY_EXCLUDE_185 + test("Queries_DICTIONARY_EXCLUDE_185", Include) { - checkAnswer(s"""select productionDate,count(productionDate) a from VMALL_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", - s"""select productionDate,count(productionDate) a from VMALL_DICTIONARY_EXCLUDE1_hive group by productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_185") + checkAnswer(s"""select productionDate,count(productionDate) a from TABLE_DICTIONARY_EXCLUDE group by productionDate order by productionDate""", + s"""select productionDate,count(productionDate) a from TABLE_DICTIONARY_EXCLUDE1_hive group by productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_185") } - //VMALL_DICTIONARY_EXCLUDE_186 - test("VMALL_DICTIONARY_EXCLUDE_186", Include) { + //DICTIONARY_EXCLUDE_186 + test("Queries_DICTIONARY_EXCLUDE_186", Include) { - checkAnswer(s"""select Lower(productionDate) a from VMALL_DICTIONARY_EXCLUDE order by productionDate""", - s"""select Lower(productionDate) a from VMALL_DICTIONARY_EXCLUDE1_hive order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_186") + checkAnswer(s"""select Lower(productionDate) a from TABLE_DICTIONARY_EXCLUDE order by productionDate""", + s"""select Lower(productionDate) a from TABLE_DICTIONARY_EXCLUDE1_hive order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_186") } - //VMALL_DICTIONARY_EXCLUDE_187 - test("VMALL_DICTIONARY_EXCLUDE_187", Include) { + //DICTIONARY_EXCLUDE_187 + test("Queries_DICTIONARY_EXCLUDE_187", Include) { - checkAnswer(s"""select distinct productionDate from VMALL_DICTIONARY_EXCLUDE order by productionDate""", - s"""select distinct productionDate from VMALL_DICTIONARY_EXCLUDE1_hive order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_187") + checkAnswer(s"""select distinct productionDate from TABLE_DICTIONARY_EXCLUDE order by productionDate""", + s"""select distinct productionDate from TABLE_DICTIONARY_EXCLUDE1_hive order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_187") } - //VMALL_DICTIONARY_EXCLUDE_188 - test("VMALL_DICTIONARY_EXCLUDE_188", Include) { + //DICTIONARY_EXCLUDE_188 + test("Queries_DICTIONARY_EXCLUDE_188", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE order by productionDate limit 101""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive order by productionDate limit 101""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_188") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE order by productionDate limit 101""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive order by productionDate limit 101""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_188") } - //VMALL_DICTIONARY_EXCLUDE_189 - test("VMALL_DICTIONARY_EXCLUDE_189", Include) { + //DICTIONARY_EXCLUDE_189 + test("Queries_DICTIONARY_EXCLUDE_189", Include) { - checkAnswer(s"""select productionDate as a from VMALL_DICTIONARY_EXCLUDE order by a asc limit 10""", - s"""select productionDate as a from VMALL_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_189") + checkAnswer(s"""select productionDate as a from TABLE_DICTIONARY_EXCLUDE order by a asc limit 10""", + s"""select productionDate as a from TABLE_DICTIONARY_EXCLUDE1_hive order by a asc limit 10""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_189") } - //VMALL_DICTIONARY_EXCLUDE_190 - test("VMALL_DICTIONARY_EXCLUDE_190", Include) { + //DICTIONARY_EXCLUDE_190 + test("Queries_DICTIONARY_EXCLUDE_190", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_190") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_190") } - //VMALL_DICTIONARY_EXCLUDE_191 - test("VMALL_DICTIONARY_EXCLUDE_191", Include) { + //DICTIONARY_EXCLUDE_191 + test("Queries_DICTIONARY_EXCLUDE_191", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_191") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_191") } - //VMALL_DICTIONARY_EXCLUDE_192 - test("VMALL_DICTIONARY_EXCLUDE_192", Include) { + //DICTIONARY_EXCLUDE_192 + test("Queries_DICTIONARY_EXCLUDE_192", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_192") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_192") } - //VMALL_DICTIONARY_EXCLUDE_193 - test("VMALL_DICTIONARY_EXCLUDE_193", Include) { + //DICTIONARY_EXCLUDE_193 + test("Queries_DICTIONARY_EXCLUDE_193", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_193") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_193") } - //VMALL_DICTIONARY_EXCLUDE_194 - test("VMALL_DICTIONARY_EXCLUDE_194", Include) { + //DICTIONARY_EXCLUDE_194 + test("Queries_DICTIONARY_EXCLUDE_194", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_194") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_194") } - //VMALL_DICTIONARY_EXCLUDE_195 - test("VMALL_DICTIONARY_EXCLUDE_195", Include) { + //DICTIONARY_EXCLUDE_195 + test("Queries_DICTIONARY_EXCLUDE_195", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate<>productionDate order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate<>productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_195") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate<>productionDate order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate<>productionDate order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_195") } - //VMALL_DICTIONARY_EXCLUDE_196 - test("VMALL_DICTIONARY_EXCLUDE_196", Include) { + //DICTIONARY_EXCLUDE_196 + test("Queries_DICTIONARY_EXCLUDE_196", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate != Latest_areaId order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate != Latest_areaId order by productionDate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_196") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate != Latest_areaId order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate != Latest_areaId order by productionDate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_196") } - //VMALL_DICTIONARY_EXCLUDE_197 - test("VMALL_DICTIONARY_EXCLUDE_197", Include) { + //DICTIONARY_EXCLUDE_197 + test("Queries_DICTIONARY_EXCLUDE_197", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where Latest_areaId100084 order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_235") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId >100084 order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_235") } - //VMALL_DICTIONARY_EXCLUDE_236 - test("VMALL_DICTIONARY_EXCLUDE_236", Include) { + //DICTIONARY_EXCLUDE_236 + test("Queries_DICTIONARY_EXCLUDE_236", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_236") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_236") } - //VMALL_DICTIONARY_EXCLUDE_237 - test("VMALL_DICTIONARY_EXCLUDE_237", Include) { + //DICTIONARY_EXCLUDE_237 + test("Queries_DICTIONARY_EXCLUDE_237", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_237") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_237") } - //VMALL_DICTIONARY_EXCLUDE_238 - test("VMALL_DICTIONARY_EXCLUDE_238", Include) { + //DICTIONARY_EXCLUDE_238 + test("Queries_DICTIONARY_EXCLUDE_238", Include) { - checkAnswer(s"""select deviceInformationId, deviceInformationId from VMALL_DICTIONARY_EXCLUDE where Latest_areaId1000 order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_241") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId >1000 order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_241") } - //VMALL_DICTIONARY_EXCLUDE_242 - test("VMALL_DICTIONARY_EXCLUDE_242", Include) { + //DICTIONARY_EXCLUDE_242 + test("Queries_DICTIONARY_EXCLUDE_242", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId IS NULL order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_242") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId IS NULL order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_242") } - //VMALL_DICTIONARY_EXCLUDE_243 - test("VMALL_DICTIONARY_EXCLUDE_243", Include) { + //DICTIONARY_EXCLUDE_243 + test("Queries_DICTIONARY_EXCLUDE_243", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_243") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_243") } - //VMALL_DICTIONARY_EXCLUDE_244 - test("VMALL_DICTIONARY_EXCLUDE_244", Include) { + //DICTIONARY_EXCLUDE_244 + test("Queries_DICTIONARY_EXCLUDE_244", Include) { - checkAnswer(s"""select sum(imei)+10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)+10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_244") + checkAnswer(s"""select sum(imei)+10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(imei)+10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_244") } - //VMALL_DICTIONARY_EXCLUDE_245 - test("VMALL_DICTIONARY_EXCLUDE_245", Include) { + //DICTIONARY_EXCLUDE_245 + test("Queries_DICTIONARY_EXCLUDE_245", Include) { - checkAnswer(s"""select sum(imei)*10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)*10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_245") + checkAnswer(s"""select sum(imei)*10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(imei)*10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_245") } - //VMALL_DICTIONARY_EXCLUDE_246 - test("VMALL_DICTIONARY_EXCLUDE_246", Include) { + //DICTIONARY_EXCLUDE_246 + test("Queries_DICTIONARY_EXCLUDE_246", Include) { - checkAnswer(s"""select sum(imei)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_246") + checkAnswer(s"""select sum(imei)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(imei)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_246") } - //VMALL_DICTIONARY_EXCLUDE_247 - test("VMALL_DICTIONARY_EXCLUDE_247", Include) { + //DICTIONARY_EXCLUDE_247 + test("Queries_DICTIONARY_EXCLUDE_247", Include) { - checkAnswer(s"""select sum(imei)-10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(imei)-10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_247") + checkAnswer(s"""select sum(imei)-10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(imei)-10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_247") } - //VMALL_DICTIONARY_EXCLUDE_248 - test("VMALL_DICTIONARY_EXCLUDE_248", Include) { + //DICTIONARY_EXCLUDE_248 + test("Queries_DICTIONARY_EXCLUDE_248", Include) { - checkAnswer(s"""select sum(contractNumber)+10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)+10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_248") + checkAnswer(s"""select sum(contractNumber)+10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)+10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_248") } - //VMALL_DICTIONARY_EXCLUDE_249 - test("VMALL_DICTIONARY_EXCLUDE_249", Include) { + //DICTIONARY_EXCLUDE_249 + test("Queries_DICTIONARY_EXCLUDE_249", Include) { - checkAnswer(s"""select sum(contractNumber)*10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)*10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_249") + checkAnswer(s"""select sum(contractNumber)*10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)*10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_249") } - //VMALL_DICTIONARY_EXCLUDE_250 - test("VMALL_DICTIONARY_EXCLUDE_250", Include) { + //DICTIONARY_EXCLUDE_250 + test("Queries_DICTIONARY_EXCLUDE_250", Include) { - checkAnswer(s"""select sum(contractNumber)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_250") + checkAnswer(s"""select sum(contractNumber)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_250") } - //VMALL_DICTIONARY_EXCLUDE_251 - test("VMALL_DICTIONARY_EXCLUDE_251", Include) { + //DICTIONARY_EXCLUDE_251 + test("Queries_DICTIONARY_EXCLUDE_251", Include) { - checkAnswer(s"""select sum(contractNumber)-10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber)-10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_251") + checkAnswer(s"""select sum(contractNumber)-10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber)-10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_251") } - //VMALL_DICTIONARY_EXCLUDE_252 - test("VMALL_DICTIONARY_EXCLUDE_252", Include) { + //DICTIONARY_EXCLUDE_252 + test("Queries_DICTIONARY_EXCLUDE_252", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)+10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_252") + checkAnswer(s"""select sum(Latest_DAY)+10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)+10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_252") } - //VMALL_DICTIONARY_EXCLUDE_253 - test("VMALL_DICTIONARY_EXCLUDE_253", Include) { + //DICTIONARY_EXCLUDE_253 + test("Queries_DICTIONARY_EXCLUDE_253", Include) { - checkAnswer(s"""select sum(Latest_DAY)*10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)*10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_253") + checkAnswer(s"""select sum(Latest_DAY)*10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)*10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_253") } - //VMALL_DICTIONARY_EXCLUDE_254 - test("VMALL_DICTIONARY_EXCLUDE_254", Include) { + //DICTIONARY_EXCLUDE_254 + test("Queries_DICTIONARY_EXCLUDE_254", Include) { - checkAnswer(s"""select sum(Latest_DAY)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_254") + checkAnswer(s"""select sum(Latest_DAY)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_254") } - //VMALL_DICTIONARY_EXCLUDE_255 - test("VMALL_DICTIONARY_EXCLUDE_255", Include) { + //DICTIONARY_EXCLUDE_255 + test("Queries_DICTIONARY_EXCLUDE_255", Include) { - checkAnswer(s"""select sum(Latest_DAY)-10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_DAY)-10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_255") + checkAnswer(s"""select sum(Latest_DAY)-10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_DAY)-10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_255") } - //VMALL_DICTIONARY_EXCLUDE_256 - ignore("VMALL_DICTIONARY_EXCLUDE_256", Include) { + //DICTIONARY_EXCLUDE_256 + ignore("Queries_DICTIONARY_EXCLUDE_256", Include) { - checkAnswer(s"""select sum(gamePointId)+10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select sum(gamePointId)+10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_256") + checkAnswer(s"""select sum(gamePointId)+10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select sum(gamePointId)+10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_256") } - //VMALL_DICTIONARY_EXCLUDE_257 - ignore("VMALL_DICTIONARY_EXCLUDE_257", Include) { + //DICTIONARY_EXCLUDE_257 + ignore("Queries_DICTIONARY_EXCLUDE_257", Include) { - checkAnswer(s"""select sum(gamePointId)*10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select sum(gamePointId)*10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_257") + checkAnswer(s"""select sum(gamePointId)*10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select sum(gamePointId)*10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_257") } - //VMALL_DICTIONARY_EXCLUDE_258 - test("VMALL_DICTIONARY_EXCLUDE_258", Include) { + //DICTIONARY_EXCLUDE_258 + test("Queries_DICTIONARY_EXCLUDE_258", Include) { - checkAnswer(s"""select sum(gamePointId)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(gamePointId)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_258") + checkAnswer(s"""select sum(gamePointId)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(gamePointId)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_258") } - //VMALL_DICTIONARY_EXCLUDE_259 - ignore("VMALL_DICTIONARY_EXCLUDE_259", Include) { + //DICTIONARY_EXCLUDE_259 + ignore("Queries_DICTIONARY_EXCLUDE_259", Include) { - checkAnswer(s"""select sum(gamePointId)-10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select sum(gamePointId)-10 as a from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_259") + checkAnswer(s"""select sum(gamePointId)-10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select sum(gamePointId)-10 as a from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_259") } - //VMALL_DICTIONARY_EXCLUDE_260 - test("VMALL_DICTIONARY_EXCLUDE_260", Include) { + //DICTIONARY_EXCLUDE_260 + test("Queries_DICTIONARY_EXCLUDE_260", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)+10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_260") + checkAnswer(s"""select sum(productionDate)+10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)+10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_260") } - //VMALL_DICTIONARY_EXCLUDE_261 - test("VMALL_DICTIONARY_EXCLUDE_261", Include) { + //DICTIONARY_EXCLUDE_261 + test("Queries_DICTIONARY_EXCLUDE_261", Include) { - checkAnswer(s"""select sum(productionDate)*10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)*10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_261") + checkAnswer(s"""select sum(productionDate)*10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)*10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_261") } - //VMALL_DICTIONARY_EXCLUDE_262 - test("VMALL_DICTIONARY_EXCLUDE_262", Include) { + //DICTIONARY_EXCLUDE_262 + test("Queries_DICTIONARY_EXCLUDE_262", Include) { - checkAnswer(s"""select sum(productionDate)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_262") + checkAnswer(s"""select sum(productionDate)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_262") } - //VMALL_DICTIONARY_EXCLUDE_263 - test("VMALL_DICTIONARY_EXCLUDE_263", Include) { + //DICTIONARY_EXCLUDE_263 + test("Queries_DICTIONARY_EXCLUDE_263", Include) { - checkAnswer(s"""select sum(productionDate)-10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate)-10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_263") + checkAnswer(s"""select sum(productionDate)-10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate)-10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_263") } - //VMALL_DICTIONARY_EXCLUDE_264 - test("VMALL_DICTIONARY_EXCLUDE_264", Include) { + //DICTIONARY_EXCLUDE_264 + test("Queries_DICTIONARY_EXCLUDE_264", Include) { - checkAnswer(s"""select sum(deviceInformationId)+10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)+10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_264") + checkAnswer(s"""select sum(deviceInformationId)+10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)+10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_264") } - //VMALL_DICTIONARY_EXCLUDE_265 - test("VMALL_DICTIONARY_EXCLUDE_265", Include) { + //DICTIONARY_EXCLUDE_265 + test("Queries_DICTIONARY_EXCLUDE_265", Include) { - checkAnswer(s"""select sum(deviceInformationId)*10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)*10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_265") + checkAnswer(s"""select sum(deviceInformationId)*10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)*10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_265") } - //VMALL_DICTIONARY_EXCLUDE_266 - test("VMALL_DICTIONARY_EXCLUDE_266", Include) { + //DICTIONARY_EXCLUDE_266 + test("Queries_DICTIONARY_EXCLUDE_266", Include) { - checkAnswer(s"""select sum(deviceInformationId)/10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)/10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_266") + checkAnswer(s"""select sum(deviceInformationId)/10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)/10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_266") } - //VMALL_DICTIONARY_EXCLUDE_267 - test("VMALL_DICTIONARY_EXCLUDE_267", Include) { + //DICTIONARY_EXCLUDE_267 + test("Queries_DICTIONARY_EXCLUDE_267", Include) { - checkAnswer(s"""select sum(deviceInformationId)-10 as a from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceInformationId)-10 as a from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_267") + checkAnswer(s"""select sum(deviceInformationId)-10 as a from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(deviceInformationId)-10 as a from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_267") } - //VMALL_DICTIONARY_EXCLUDE_292 - test("VMALL_DICTIONARY_EXCLUDE_292", Include) { + //DICTIONARY_EXCLUDE_292 + test("Queries_DICTIONARY_EXCLUDE_292", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '2015-09-30%'""", - s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '2015-09-30%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_292") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate LIKE '2015-09-30%'""", + s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '2015-09-30%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_292") } - //VMALL_DICTIONARY_EXCLUDE_293 - test("VMALL_DICTIONARY_EXCLUDE_293", Include) { + //DICTIONARY_EXCLUDE_293 + test("Queries_DICTIONARY_EXCLUDE_293", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '% %'""", - s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '% %'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_293") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate LIKE '% %'""", + s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '% %'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_293") } - //VMALL_DICTIONARY_EXCLUDE_294 - test("VMALL_DICTIONARY_EXCLUDE_294", Include) { + //DICTIONARY_EXCLUDE_294 + test("Queries_DICTIONARY_EXCLUDE_294", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate LIKE '%12:07:28'""", - s"""SELECT productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '%12:07:28'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_294") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate LIKE '%12:07:28'""", + s"""SELECT productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate LIKE '%12:07:28'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_294") } - //VMALL_DICTIONARY_EXCLUDE_295 - test("VMALL_DICTIONARY_EXCLUDE_295", Include) { + //DICTIONARY_EXCLUDE_295 + test("Queries_DICTIONARY_EXCLUDE_295", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE where contractnumber like '922337204%' """, - s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractnumber like '922337204%' """, "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_295") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE where contractnumber like '922337204%' """, + s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractnumber like '922337204%' """, "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_295") } - //VMALL_DICTIONARY_EXCLUDE_296 - test("VMALL_DICTIONARY_EXCLUDE_296", Include) { + //DICTIONARY_EXCLUDE_296 + test("Queries_DICTIONARY_EXCLUDE_296", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE where contractnumber like '%047800'""", - s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractnumber like '%047800'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_296") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE where contractnumber like '%047800'""", + s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractnumber like '%047800'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_296") } - //VMALL_DICTIONARY_EXCLUDE_297 - test("VMALL_DICTIONARY_EXCLUDE_297", Include) { + //DICTIONARY_EXCLUDE_297 + test("Queries_DICTIONARY_EXCLUDE_297", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE where contractnumber like '%720%'""", - s"""select contractnumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractnumber like '%720%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_297") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE where contractnumber like '%720%'""", + s"""select contractnumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractnumber like '%720%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_297") } - //VMALL_DICTIONARY_EXCLUDE_298 - test("VMALL_DICTIONARY_EXCLUDE_298", Include) { + //DICTIONARY_EXCLUDE_298 + test("Queries_DICTIONARY_EXCLUDE_298", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '12345678%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '12345678%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_298") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY like '12345678%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '12345678%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_298") } - //VMALL_DICTIONARY_EXCLUDE_299 - test("VMALL_DICTIONARY_EXCLUDE_299", Include) { + //DICTIONARY_EXCLUDE_299 + test("Queries_DICTIONARY_EXCLUDE_299", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '%5678%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '%5678%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_299") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY like '%5678%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '%5678%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_299") } - //VMALL_DICTIONARY_EXCLUDE_300 - test("VMALL_DICTIONARY_EXCLUDE_300", Include) { + //DICTIONARY_EXCLUDE_300 + test("Queries_DICTIONARY_EXCLUDE_300", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY like '1234567%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '1234567%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_300") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY like '1234567%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY like '1234567%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_300") } - //VMALL_DICTIONARY_EXCLUDE_301 - test("VMALL_DICTIONARY_EXCLUDE_301", Include) { + //DICTIONARY_EXCLUDE_301 + test("Queries_DICTIONARY_EXCLUDE_301", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE where gamepointID like '1.1098347722%'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointID like '1.1098347722%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_301") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE where gamepointID like '1.1098347722%'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointID like '1.1098347722%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_301") } - //VMALL_DICTIONARY_EXCLUDE_302 - test("VMALL_DICTIONARY_EXCLUDE_302", Include) { + //DICTIONARY_EXCLUDE_302 + test("Queries_DICTIONARY_EXCLUDE_302", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE where gamepointID like '%8347722%'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointID like '%8347722%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_302") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE where gamepointID like '%8347722%'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointID like '%8347722%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_302") } - //VMALL_DICTIONARY_EXCLUDE_303 - test("VMALL_DICTIONARY_EXCLUDE_303", Include) { + //DICTIONARY_EXCLUDE_303 + test("Queries_DICTIONARY_EXCLUDE_303", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE where gamepointID like '%7512E42'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointID like '%7512E42'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_303") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE where gamepointID like '%7512E42'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointID like '%7512E42'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_303") } - //VMALL_DICTIONARY_EXCLUDE_304 - test("VMALL_DICTIONARY_EXCLUDE_304", Include) { + //DICTIONARY_EXCLUDE_304 + test("Queries_DICTIONARY_EXCLUDE_304", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '1000%'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '1000%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_304") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid like '1000%'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '1000%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_304") } - //VMALL_DICTIONARY_EXCLUDE_305 - test("VMALL_DICTIONARY_EXCLUDE_305", Include) { + //DICTIONARY_EXCLUDE_305 + test("Queries_DICTIONARY_EXCLUDE_305", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '%00%'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '%00%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_305") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid like '%00%'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '%00%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_305") } - //VMALL_DICTIONARY_EXCLUDE_306 - test("VMALL_DICTIONARY_EXCLUDE_306", Include) { + //DICTIONARY_EXCLUDE_306 + test("Queries_DICTIONARY_EXCLUDE_306", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid like '%0084'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '%0084'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_306") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid like '%0084'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid like '%0084'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_306") } - //VMALL_DICTIONARY_EXCLUDE_307 - test("VMALL_DICTIONARY_EXCLUDE_307", Include) { + //DICTIONARY_EXCLUDE_307 + test("Queries_DICTIONARY_EXCLUDE_307", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei like '1AA10%'""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei like '1AA10%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_307") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei like '1AA10%'""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei like '1AA10%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_307") } - //VMALL_DICTIONARY_EXCLUDE_308 - test("VMALL_DICTIONARY_EXCLUDE_308", Include) { + //DICTIONARY_EXCLUDE_308 + test("Queries_DICTIONARY_EXCLUDE_308", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei like '%A10%'""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei like '%A10%'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_308") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei like '%A10%'""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei like '%A10%'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_308") } - //VMALL_DICTIONARY_EXCLUDE_309 - test("VMALL_DICTIONARY_EXCLUDE_309", Include) { + //DICTIONARY_EXCLUDE_309 + test("Queries_DICTIONARY_EXCLUDE_309", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei like '%00084'""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei like '%00084'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_309") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei like '%00084'""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei like '%00084'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_309") } - //VMALL_DICTIONARY_EXCLUDE_310 - test("VMALL_DICTIONARY_EXCLUDE_310", Include) { + //DICTIONARY_EXCLUDE_310 + test("Queries_DICTIONARY_EXCLUDE_310", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_310") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_310") } - //VMALL_DICTIONARY_EXCLUDE_311 - test("VMALL_DICTIONARY_EXCLUDE_311", Include) { + //DICTIONARY_EXCLUDE_311 + test("Queries_DICTIONARY_EXCLUDE_311", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_311") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_311") } - //VMALL_DICTIONARY_EXCLUDE_312 - test("VMALL_DICTIONARY_EXCLUDE_312", Include) { + //DICTIONARY_EXCLUDE_312 + test("Queries_DICTIONARY_EXCLUDE_312", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid in (100081,100078,10008)""", - s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid in (100081,100078,10008)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_312") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid in (100081,100078,10008)""", + s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid in (100081,100078,10008)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_312") } - //VMALL_DICTIONARY_EXCLUDE_313 - test("VMALL_DICTIONARY_EXCLUDE_313", Include) { + //DICTIONARY_EXCLUDE_313 + test("Queries_DICTIONARY_EXCLUDE_313", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid not in (100081,100078,10008)""", - s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_313") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid not in (100081,100078,10008)""", + s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_313") } - //VMALL_DICTIONARY_EXCLUDE_314 - test("VMALL_DICTIONARY_EXCLUDE_314", Include) { + //DICTIONARY_EXCLUDE_314 + test("Queries_DICTIONARY_EXCLUDE_314", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", - s"""select productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_314") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", + s"""select productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_314") } - //VMALL_DICTIONARY_EXCLUDE_315 - test("VMALL_DICTIONARY_EXCLUDE_315", Include) { + //DICTIONARY_EXCLUDE_315 + test("Queries_DICTIONARY_EXCLUDE_315", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", - s"""select productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_315") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", + s"""select productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_315") } - //VMALL_DICTIONARY_EXCLUDE_316 - test("VMALL_DICTIONARY_EXCLUDE_316", Include) { + //DICTIONARY_EXCLUDE_316 + test("Queries_DICTIONARY_EXCLUDE_316", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_316") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_316") } - //VMALL_DICTIONARY_EXCLUDE_317 - test("VMALL_DICTIONARY_EXCLUDE_317", Include) { + //DICTIONARY_EXCLUDE_317 + test("Queries_DICTIONARY_EXCLUDE_317", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_317") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_317") } - //VMALL_DICTIONARY_EXCLUDE_318 - test("VMALL_DICTIONARY_EXCLUDE_318", Include) { + //DICTIONARY_EXCLUDE_318 + test("Queries_DICTIONARY_EXCLUDE_318", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_318") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_318") } - //VMALL_DICTIONARY_EXCLUDE_319 - test("VMALL_DICTIONARY_EXCLUDE_319", Include) { + //DICTIONARY_EXCLUDE_319 + test("Queries_DICTIONARY_EXCLUDE_319", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_319") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_319") } - //VMALL_DICTIONARY_EXCLUDE_322 - test("VMALL_DICTIONARY_EXCLUDE_322", Include) { + //DICTIONARY_EXCLUDE_322 + test("Queries_DICTIONARY_EXCLUDE_322", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei !='1AA100077'""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei !='1AA100077'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_322") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei !='1AA100077'""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei !='1AA100077'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_322") } - //VMALL_DICTIONARY_EXCLUDE_323 - test("VMALL_DICTIONARY_EXCLUDE_323", Include) { + //DICTIONARY_EXCLUDE_323 + test("Queries_DICTIONARY_EXCLUDE_323", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei NOT LIKE '1AA100077'""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei NOT LIKE '1AA100077'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_323") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei NOT LIKE '1AA100077'""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei NOT LIKE '1AA100077'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_323") } - //VMALL_DICTIONARY_EXCLUDE_324 - test("VMALL_DICTIONARY_EXCLUDE_324", Include) { + //DICTIONARY_EXCLUDE_324 + test("Queries_DICTIONARY_EXCLUDE_324", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid !=100078""", - s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid !=100078""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_324") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid !=100078""", + s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid !=100078""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_324") } - //VMALL_DICTIONARY_EXCLUDE_325 - test("VMALL_DICTIONARY_EXCLUDE_325", Include) { + //DICTIONARY_EXCLUDE_325 + test("Queries_DICTIONARY_EXCLUDE_325", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE where deviceinformationid NOT LIKE 100079""", - s"""select deviceinformationid from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationid NOT LIKE 100079""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_325") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE where deviceinformationid NOT LIKE 100079""", + s"""select deviceinformationid from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationid NOT LIKE 100079""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_325") } - //VMALL_DICTIONARY_EXCLUDE_326 - test("VMALL_DICTIONARY_EXCLUDE_326", Include) { + //DICTIONARY_EXCLUDE_326 + test("Queries_DICTIONARY_EXCLUDE_326", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate !='2015-10-07 12:07:28'""", - s"""select productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_326") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate !='2015-10-07 12:07:28'""", + s"""select productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_326") } - //VMALL_DICTIONARY_EXCLUDE_327 - ignore("VMALL_DICTIONARY_EXCLUDE_327", Include) { + //DICTIONARY_EXCLUDE_327 + ignore("Queries_DICTIONARY_EXCLUDE_327", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_EXCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", - s"""select productiondate from VMALL_DICTIONARY_EXCLUDE1_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_327") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_EXCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", + s"""select productiondate from TABLE_DICTIONARY_EXCLUDE1_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_327") } - //VMALL_DICTIONARY_EXCLUDE_328 - test("VMALL_DICTIONARY_EXCLUDE_328", Include) { + //DICTIONARY_EXCLUDE_328 + test("Queries_DICTIONARY_EXCLUDE_328", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE where gamepointid !=6.8591561117512E42""", - s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointid !=6.8591561117512E42""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_328") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE where gamepointid !=6.8591561117512E42""", + s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointid !=6.8591561117512E42""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_328") } - //VMALL_DICTIONARY_EXCLUDE_329 - test("VMALL_DICTIONARY_EXCLUDE_329", Include) { + //DICTIONARY_EXCLUDE_329 + test("Queries_DICTIONARY_EXCLUDE_329", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", - s"""select gamepointid from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_329") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", + s"""select gamepointid from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_329") } - //VMALL_DICTIONARY_EXCLUDE_330 - test("VMALL_DICTIONARY_EXCLUDE_330", Include) { + //DICTIONARY_EXCLUDE_330 + test("Queries_DICTIONARY_EXCLUDE_330", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY != 1234567890123520.0000000000""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_330") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY != 1234567890123520.0000000000""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_330") } - //VMALL_DICTIONARY_EXCLUDE_331 - test("VMALL_DICTIONARY_EXCLUDE_331", Include) { + //DICTIONARY_EXCLUDE_331 + test("Queries_DICTIONARY_EXCLUDE_331", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_331") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_331") } - //VMALL_DICTIONARY_EXCLUDE_335 - test("VMALL_DICTIONARY_EXCLUDE_335", Include) { + //DICTIONARY_EXCLUDE_335 + test("Queries_DICTIONARY_EXCLUDE_335", Include) { - checkAnswer(s"""SELECT productiondate,IMEI from VMALL_DICTIONARY_EXCLUDE where IMEI RLIKE '1AA100077'""", - s"""SELECT productiondate,IMEI from VMALL_DICTIONARY_EXCLUDE1_hive where IMEI RLIKE '1AA100077'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_335") + checkAnswer(s"""SELECT productiondate,IMEI from TABLE_DICTIONARY_EXCLUDE where IMEI RLIKE '1AA100077'""", + s"""SELECT productiondate,IMEI from TABLE_DICTIONARY_EXCLUDE1_hive where IMEI RLIKE '1AA100077'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_335") } - //VMALL_DICTIONARY_EXCLUDE_336 - test("VMALL_DICTIONARY_EXCLUDE_336", Include) { + //DICTIONARY_EXCLUDE_336 + test("Queries_DICTIONARY_EXCLUDE_336", Include) { - checkAnswer(s"""SELECT deviceinformationId from VMALL_DICTIONARY_EXCLUDE where deviceinformationId RLIKE '100079'""", - s"""SELECT deviceinformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceinformationId RLIKE '100079'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_336") + checkAnswer(s"""SELECT deviceinformationId from TABLE_DICTIONARY_EXCLUDE where deviceinformationId RLIKE '100079'""", + s"""SELECT deviceinformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceinformationId RLIKE '100079'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_336") } - //VMALL_DICTIONARY_EXCLUDE_337 - test("VMALL_DICTIONARY_EXCLUDE_337", Include) { + //DICTIONARY_EXCLUDE_337 + test("Queries_DICTIONARY_EXCLUDE_337", Include) { - checkAnswer(s"""SELECT gamepointid from VMALL_DICTIONARY_EXCLUDE where gamepointid RLIKE '1.61922711065643E42'""", - s"""SELECT gamepointid from VMALL_DICTIONARY_EXCLUDE1_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_337") + checkAnswer(s"""SELECT gamepointid from TABLE_DICTIONARY_EXCLUDE where gamepointid RLIKE '1.61922711065643E42'""", + s"""SELECT gamepointid from TABLE_DICTIONARY_EXCLUDE1_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_337") } - //VMALL_DICTIONARY_EXCLUDE_338 - test("VMALL_DICTIONARY_EXCLUDE_338", Include) { + //DICTIONARY_EXCLUDE_338 + test("Queries_DICTIONARY_EXCLUDE_338", Include) { - checkAnswer(s"""SELECT Latest_Day from VMALL_DICTIONARY_EXCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", - s"""SELECT Latest_Day from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_338") + checkAnswer(s"""SELECT Latest_Day from TABLE_DICTIONARY_EXCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", + s"""SELECT Latest_Day from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_338") } - //VMALL_DICTIONARY_EXCLUDE_339 - test("VMALL_DICTIONARY_EXCLUDE_339", Include) { + //DICTIONARY_EXCLUDE_339 + test("Queries_DICTIONARY_EXCLUDE_339", Include) { - checkAnswer(s"""SELECT contractnumber from VMALL_DICTIONARY_EXCLUDE where contractnumber RLIKE '9223372047800'""", - s"""SELECT contractnumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractnumber RLIKE '9223372047800'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_339") + checkAnswer(s"""SELECT contractnumber from TABLE_DICTIONARY_EXCLUDE where contractnumber RLIKE '9223372047800'""", + s"""SELECT contractnumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractnumber RLIKE '9223372047800'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_339") } - //VMALL_DICTIONARY_EXCLUDE_340 - test("VMALL_DICTIONARY_EXCLUDE_340", Include) { + //DICTIONARY_EXCLUDE_340 + test("Queries_DICTIONARY_EXCLUDE_340", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.productiondate=b.productiondate""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.productiondate=b.productiondate""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_340") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.productiondate=b.productiondate""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.productiondate=b.productiondate""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_340") } - //VMALL_DICTIONARY_EXCLUDE_341 - test("VMALL_DICTIONARY_EXCLUDE_341", Include) { + //DICTIONARY_EXCLUDE_341 + test("Queries_DICTIONARY_EXCLUDE_341", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.deviceinformationid=b.deviceinformationid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_341") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.deviceinformationid=b.deviceinformationid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_341") } - //VMALL_DICTIONARY_EXCLUDE_342 - test("VMALL_DICTIONARY_EXCLUDE_342", Include) { + //DICTIONARY_EXCLUDE_342 + test("Queries_DICTIONARY_EXCLUDE_342", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.imei=b.imei""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.imei=b.imei""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_342") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.imei=b.imei""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.imei=b.imei""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_342") } - //VMALL_DICTIONARY_EXCLUDE_343 - test("VMALL_DICTIONARY_EXCLUDE_343", Include) { + //DICTIONARY_EXCLUDE_343 + test("Queries_DICTIONARY_EXCLUDE_343", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.gamepointid=b.gamepointid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.gamepointid=b.gamepointid""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_343") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.gamepointid=b.gamepointid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.gamepointid=b.gamepointid""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_343") } - //VMALL_DICTIONARY_EXCLUDE_344 - test("VMALL_DICTIONARY_EXCLUDE_344", Include) { + //DICTIONARY_EXCLUDE_344 + test("Queries_DICTIONARY_EXCLUDE_344", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.Latest_Day=b.Latest_Day""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.Latest_Day=b.Latest_Day""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_344") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.Latest_Day=b.Latest_Day""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.Latest_Day=b.Latest_Day""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_344") } - //VMALL_DICTIONARY_EXCLUDE_345 - test("VMALL_DICTIONARY_EXCLUDE_345", Include) { + //DICTIONARY_EXCLUDE_345 + test("Queries_DICTIONARY_EXCLUDE_345", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE a join VMALL_DICTIONARY_EXCLUDE b on a.contractnumber=b.contractnumber""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_EXCLUDE1_hive a join VMALL_DICTIONARY_EXCLUDE1_hive b on a.contractnumber=b.contractnumber""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_345") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE a join TABLE_DICTIONARY_EXCLUDE b on a.contractnumber=b.contractnumber""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_EXCLUDE1_hive a join TABLE_DICTIONARY_EXCLUDE1_hive b on a.contractnumber=b.contractnumber""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_345") } - //VMALL_DICTIONARY_EXCLUDE_346 - test("VMALL_DICTIONARY_EXCLUDE_346", Include) { + //DICTIONARY_EXCLUDE_346 + test("Queries_DICTIONARY_EXCLUDE_346", Include) { - checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_346") + checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_346") } - //VMALL_DICTIONARY_EXCLUDE_347 - test("VMALL_DICTIONARY_EXCLUDE_347", Include) { + //DICTIONARY_EXCLUDE_347 + test("Queries_DICTIONARY_EXCLUDE_347", Include) { - checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_347") + checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_347") } - //VMALL_DICTIONARY_EXCLUDE_348 - ignore("VMALL_DICTIONARY_EXCLUDE_348", Include) { + //DICTIONARY_EXCLUDE_348 + ignore("Queries_DICTIONARY_EXCLUDE_348", Include) { - checkAnswer(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_348") + checkAnswer(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_348") } - //VMALL_DICTIONARY_EXCLUDE_349 - test("VMALL_DICTIONARY_EXCLUDE_349", Include) { + //DICTIONARY_EXCLUDE_349 + test("Queries_DICTIONARY_EXCLUDE_349", Include) { - checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_349") + checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_349") } - //VMALL_DICTIONARY_EXCLUDE_350 - test("VMALL_DICTIONARY_EXCLUDE_350", Include) { + //DICTIONARY_EXCLUDE_350 + test("Queries_DICTIONARY_EXCLUDE_350", Include) { - checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_350") + checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_350") } - //VMALL_DICTIONARY_EXCLUDE_351 - test("VMALL_DICTIONARY_EXCLUDE_351", Include) { + //DICTIONARY_EXCLUDE_351 + test("Queries_DICTIONARY_EXCLUDE_351", Include) { - checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_351") + checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_351") } - //VMALL_DICTIONARY_EXCLUDE_352 - test("VMALL_DICTIONARY_EXCLUDE_352", Include) { + //DICTIONARY_EXCLUDE_352 + test("Queries_DICTIONARY_EXCLUDE_352", Include) { - checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_352") + checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_352") } - //VMALL_DICTIONARY_EXCLUDE_353 - test("VMALL_DICTIONARY_EXCLUDE_353", Include) { + //DICTIONARY_EXCLUDE_353 + test("Queries_DICTIONARY_EXCLUDE_353", Include) { - checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_353") + checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_353") } - //VMALL_DICTIONARY_EXCLUDE_354 - ignore("VMALL_DICTIONARY_EXCLUDE_354", Include) { + //DICTIONARY_EXCLUDE_354 + ignore("Queries_DICTIONARY_EXCLUDE_354", Include) { - checkAnswer(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from (select gamePointId from VMALL_DICTIONARY_EXCLUDE order by gamePointId)""", - s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from (select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_354") + checkAnswer(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from (select gamePointId from TABLE_DICTIONARY_EXCLUDE order by gamePointId)""", + s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from (select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_354") } - //VMALL_DICTIONARY_EXCLUDE_355 - test("VMALL_DICTIONARY_EXCLUDE_355", Include) { + //DICTIONARY_EXCLUDE_355 + test("Queries_DICTIONARY_EXCLUDE_355", Include) { - checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_355") + checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_355") } - //VMALL_DICTIONARY_EXCLUDE_356 - test("VMALL_DICTIONARY_EXCLUDE_356", Include) { + //DICTIONARY_EXCLUDE_356 + test("Queries_DICTIONARY_EXCLUDE_356", Include) { - checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_356") + checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_356") } - //VMALL_DICTIONARY_EXCLUDE_357 - test("VMALL_DICTIONARY_EXCLUDE_357", Include) { + //DICTIONARY_EXCLUDE_357 + test("Queries_DICTIONARY_EXCLUDE_357", Include) { - checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from VMALL_DICTIONARY_EXCLUDE""", - s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_357") + checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from TABLE_DICTIONARY_EXCLUDE""", + s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_357") } - //VMALL_DICTIONARY_EXCLUDE_358 - test("VMALL_DICTIONARY_EXCLUDE_358", Include) { + //DICTIONARY_EXCLUDE_358 + test("Queries_DICTIONARY_EXCLUDE_358", Include) { - checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from VMALL_DICTIONARY_EXCLUDE""", - s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_358") + checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from TABLE_DICTIONARY_EXCLUDE""", + s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_358") } - //VMALL_DICTIONARY_EXCLUDE_359 - test("VMALL_DICTIONARY_EXCLUDE_359", Include) { + //DICTIONARY_EXCLUDE_359 + test("Queries_DICTIONARY_EXCLUDE_359", Include) { - checkAnswer(s"""select count(MAC) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(MAC) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_359") + checkAnswer(s"""select count(MAC) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(MAC) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_359") } - //VMALL_DICTIONARY_EXCLUDE_360 - test("VMALL_DICTIONARY_EXCLUDE_360", Include) { + //DICTIONARY_EXCLUDE_360 + test("Queries_DICTIONARY_EXCLUDE_360", Include) { - checkAnswer(s"""select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_360") + checkAnswer(s"""select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_360") } - //VMALL_DICTIONARY_EXCLUDE_361 - test("VMALL_DICTIONARY_EXCLUDE_361", Include) { + //DICTIONARY_EXCLUDE_361 + test("Queries_DICTIONARY_EXCLUDE_361", Include) { - checkAnswer(s"""select count(contractNumber) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_361") + checkAnswer(s"""select count(contractNumber) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_361") } - //VMALL_DICTIONARY_EXCLUDE_362 - test("VMALL_DICTIONARY_EXCLUDE_362", Include) { + //DICTIONARY_EXCLUDE_362 + test("Queries_DICTIONARY_EXCLUDE_362", Include) { - checkAnswer(s"""select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_362") + checkAnswer(s"""select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_362") } - //VMALL_DICTIONARY_EXCLUDE_363 - test("VMALL_DICTIONARY_EXCLUDE_363", Include) { + //DICTIONARY_EXCLUDE_363 + test("Queries_DICTIONARY_EXCLUDE_363", Include) { - checkAnswer(s"""select count(productionDate) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_363") + checkAnswer(s"""select count(productionDate) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_363") } - //VMALL_DICTIONARY_EXCLUDE_364 - test("VMALL_DICTIONARY_EXCLUDE_364", Include) { + //DICTIONARY_EXCLUDE_364 + test("Queries_DICTIONARY_EXCLUDE_364", Include) { - checkAnswer(s"""select count(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE""", - s"""select count(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_364") + checkAnswer(s"""select count(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE""", + s"""select count(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE1_hive""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_364") } - //VMALL_DICTIONARY_EXCLUDE_365 - test("VMALL_DICTIONARY_EXCLUDE_365", Include) { + //DICTIONARY_EXCLUDE_365 + test("Queries_DICTIONARY_EXCLUDE_365", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where contractNumber != '9223372047700'""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber != '9223372047700'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_365") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where contractNumber != '9223372047700'""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber != '9223372047700'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_365") } - //VMALL_DICTIONARY_EXCLUDE_366 - test("VMALL_DICTIONARY_EXCLUDE_366", Include) { + //DICTIONARY_EXCLUDE_366 + test("Queries_DICTIONARY_EXCLUDE_366", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_366") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_366") } - //VMALL_DICTIONARY_EXCLUDE_367 - test("VMALL_DICTIONARY_EXCLUDE_367", Include) { + //DICTIONARY_EXCLUDE_367 + test("Queries_DICTIONARY_EXCLUDE_367", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_367") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_367") } - //VMALL_DICTIONARY_EXCLUDE_368 - test("VMALL_DICTIONARY_EXCLUDE_368", Include) { + //DICTIONARY_EXCLUDE_368 + test("Queries_DICTIONARY_EXCLUDE_368", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_368") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_368") } - //VMALL_DICTIONARY_EXCLUDE_369 - test("VMALL_DICTIONARY_EXCLUDE_369", Include) { + //DICTIONARY_EXCLUDE_369 + test("Queries_DICTIONARY_EXCLUDE_369", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where deviceInformationId != 100075 order by imei,deviceInformationId,MAC,deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId != 100075 order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_369") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where deviceInformationId != 100075 order by imei,deviceInformationId,MAC,deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId != 100075 order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_369") } - //VMALL_DICTIONARY_EXCLUDE_370 - test("VMALL_DICTIONARY_EXCLUDE_370", Include) { + //DICTIONARY_EXCLUDE_370 + test("Queries_DICTIONARY_EXCLUDE_370", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where contractNumber not like '9223372047700' order by deviceInformationId limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber not like '9223372047700' order by deviceInformationId limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_370") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where contractNumber not like '9223372047700' order by deviceInformationId limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber not like '9223372047700' order by deviceInformationId limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_370") } - //VMALL_DICTIONARY_EXCLUDE_371 - test("VMALL_DICTIONARY_EXCLUDE_371", Include) { + //DICTIONARY_EXCLUDE_371 + test("Queries_DICTIONARY_EXCLUDE_371", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei, deviceInformationId, deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei, deviceInformationId, deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_371") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei, deviceInformationId, deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei, deviceInformationId, deviceColor limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_371") } - //VMALL_DICTIONARY_EXCLUDE_372 - test("VMALL_DICTIONARY_EXCLUDE_372", Include) { + //DICTIONARY_EXCLUDE_372 + test("Queries_DICTIONARY_EXCLUDE_372", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_372") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_372") } - //VMALL_DICTIONARY_EXCLUDE_373 - test("VMALL_DICTIONARY_EXCLUDE_373", Include) { + //DICTIONARY_EXCLUDE_373 + test("Queries_DICTIONARY_EXCLUDE_373", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_373") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_373") } - //VMALL_DICTIONARY_EXCLUDE_374 - test("VMALL_DICTIONARY_EXCLUDE_374", Include) { + //DICTIONARY_EXCLUDE_374 + test("Queries_DICTIONARY_EXCLUDE_374", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_374") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_374") } - //VMALL_DICTIONARY_EXCLUDE_375 - test("VMALL_DICTIONARY_EXCLUDE_375", Include) { + //DICTIONARY_EXCLUDE_375 + test("Queries_DICTIONARY_EXCLUDE_375", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei is not null""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_375") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei is not null""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_375") } - //VMALL_DICTIONARY_EXCLUDE_376 - test("VMALL_DICTIONARY_EXCLUDE_376", Include) { + //DICTIONARY_EXCLUDE_376 + test("Queries_DICTIONARY_EXCLUDE_376", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId is not null""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_376") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId is not null""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_376") } - //VMALL_DICTIONARY_EXCLUDE_377 - test("VMALL_DICTIONARY_EXCLUDE_377", Include) { + //DICTIONARY_EXCLUDE_377 + test("Queries_DICTIONARY_EXCLUDE_377", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where contractNumber is not null""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_377") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber is not null""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_377") } - //VMALL_DICTIONARY_EXCLUDE_378 - test("VMALL_DICTIONARY_EXCLUDE_378", Include) { + //DICTIONARY_EXCLUDE_378 + test("Queries_DICTIONARY_EXCLUDE_378", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY is not null""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_378") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY is not null""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_378") } - //VMALL_DICTIONARY_EXCLUDE_379 - test("VMALL_DICTIONARY_EXCLUDE_379", Include) { + //DICTIONARY_EXCLUDE_379 + test("Queries_DICTIONARY_EXCLUDE_379", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate is not null""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_379") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate is not null""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_379") } - //VMALL_DICTIONARY_EXCLUDE_380 - test("VMALL_DICTIONARY_EXCLUDE_380", Include) { + //DICTIONARY_EXCLUDE_380 + test("Queries_DICTIONARY_EXCLUDE_380", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId is not null""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId is not null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_380") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId is not null""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId is not null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_380") } - //VMALL_DICTIONARY_EXCLUDE_381 - test("VMALL_DICTIONARY_EXCLUDE_381", Include) { + //DICTIONARY_EXCLUDE_381 + test("Queries_DICTIONARY_EXCLUDE_381", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_EXCLUDE where imei is null""", - s"""select imei from VMALL_DICTIONARY_EXCLUDE1_hive where imei is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_381") + checkAnswer(s"""select imei from TABLE_DICTIONARY_EXCLUDE where imei is null""", + s"""select imei from TABLE_DICTIONARY_EXCLUDE1_hive where imei is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_381") } - //VMALL_DICTIONARY_EXCLUDE_382 - test("VMALL_DICTIONARY_EXCLUDE_382", Include) { + //DICTIONARY_EXCLUDE_382 + test("Queries_DICTIONARY_EXCLUDE_382", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE where gamePointId is null""", - s"""select gamePointId from VMALL_DICTIONARY_EXCLUDE1_hive where gamePointId is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_382") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE where gamePointId is null""", + s"""select gamePointId from TABLE_DICTIONARY_EXCLUDE1_hive where gamePointId is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_382") } - //VMALL_DICTIONARY_EXCLUDE_383 - test("VMALL_DICTIONARY_EXCLUDE_383", Include) { + //DICTIONARY_EXCLUDE_383 + test("Queries_DICTIONARY_EXCLUDE_383", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE where contractNumber is null""", - s"""select contractNumber from VMALL_DICTIONARY_EXCLUDE1_hive where contractNumber is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_383") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE where contractNumber is null""", + s"""select contractNumber from TABLE_DICTIONARY_EXCLUDE1_hive where contractNumber is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_383") } - //VMALL_DICTIONARY_EXCLUDE_384 - test("VMALL_DICTIONARY_EXCLUDE_384", Include) { + //DICTIONARY_EXCLUDE_384 + test("Queries_DICTIONARY_EXCLUDE_384", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE where Latest_DAY is null""", - s"""select Latest_DAY from VMALL_DICTIONARY_EXCLUDE1_hive where Latest_DAY is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_384") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE where Latest_DAY is null""", + s"""select Latest_DAY from TABLE_DICTIONARY_EXCLUDE1_hive where Latest_DAY is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_384") } - //VMALL_DICTIONARY_EXCLUDE_385 - test("VMALL_DICTIONARY_EXCLUDE_385", Include) { + //DICTIONARY_EXCLUDE_385 + test("Queries_DICTIONARY_EXCLUDE_385", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_EXCLUDE where productionDate is null""", - s"""select productionDate from VMALL_DICTIONARY_EXCLUDE1_hive where productionDate is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_385") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_EXCLUDE where productionDate is null""", + s"""select productionDate from TABLE_DICTIONARY_EXCLUDE1_hive where productionDate is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_385") } - //VMALL_DICTIONARY_EXCLUDE_386 - test("VMALL_DICTIONARY_EXCLUDE_386", Include) { + //DICTIONARY_EXCLUDE_386 + test("Queries_DICTIONARY_EXCLUDE_386", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE where deviceInformationId is null""", - s"""select deviceInformationId from VMALL_DICTIONARY_EXCLUDE1_hive where deviceInformationId is null""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_386") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE where deviceInformationId is null""", + s"""select deviceInformationId from TABLE_DICTIONARY_EXCLUDE1_hive where deviceInformationId is null""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_386") } - //VMALL_DICTIONARY_EXCLUDE_387 - test("VMALL_DICTIONARY_EXCLUDE_387", Include) { + //DICTIONARY_EXCLUDE_387 + test("Queries_DICTIONARY_EXCLUDE_387", Include) { - checkAnswer(s"""select count(*) from VMALL_DICTIONARY_EXCLUDE where imei = '1AA1'""", - s"""select count(*) from VMALL_DICTIONARY_EXCLUDE1_hive where imei = '1AA1'""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_387") + checkAnswer(s"""select count(*) from TABLE_DICTIONARY_EXCLUDE where imei = '1AA1'""", + s"""select count(*) from TABLE_DICTIONARY_EXCLUDE1_hive where imei = '1AA1'""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_387") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_001 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_001", Include) { + //DICTIONARY_EXCLUDE_PushUP_001 + test("Queries_DICTIONARY_EXCLUDE_PushUP_001", Include) { - checkAnswer(s"""select count(imei) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(imei) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_001") + checkAnswer(s"""select count(imei) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(imei) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_001") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_002 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_002", Include) { + //DICTIONARY_EXCLUDE_PushUP_002 + test("Queries_DICTIONARY_EXCLUDE_PushUP_002", Include) { - checkAnswer(s"""select count(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_002") + checkAnswer(s"""select count(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_002") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_003 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_003", Include) { + //DICTIONARY_EXCLUDE_PushUP_003 + test("Queries_DICTIONARY_EXCLUDE_PushUP_003", Include) { - checkAnswer(s"""select count(productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_003") + checkAnswer(s"""select count(productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_003") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_004 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_004", Include) { + //DICTIONARY_EXCLUDE_PushUP_004 + test("Queries_DICTIONARY_EXCLUDE_PushUP_004", Include) { - checkAnswer(s"""select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_004") + checkAnswer(s"""select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_004") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_005 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_005", Include) { + //DICTIONARY_EXCLUDE_PushUP_005 + test("Queries_DICTIONARY_EXCLUDE_PushUP_005", Include) { - checkAnswer(s"""select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_005") + checkAnswer(s"""select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_005") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_006 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_006", Include) { + //DICTIONARY_EXCLUDE_PushUP_006 + test("Queries_DICTIONARY_EXCLUDE_PushUP_006", Include) { - checkAnswer(s"""select count(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_006") + checkAnswer(s"""select count(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_006") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_007 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_007", Include) { + //DICTIONARY_EXCLUDE_PushUP_007 + test("Queries_DICTIONARY_EXCLUDE_PushUP_007", Include) { - checkAnswer(s"""select count(distinct imei) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct imei) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_007") + checkAnswer(s"""select count(distinct imei) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct imei) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_007") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_008 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_008", Include) { + //DICTIONARY_EXCLUDE_PushUP_008 + test("Queries_DICTIONARY_EXCLUDE_PushUP_008", Include) { - checkAnswer(s"""select count(distinct deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_008") + checkAnswer(s"""select count(distinct deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_008") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_009 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_009", Include) { + //DICTIONARY_EXCLUDE_PushUP_009 + test("Queries_DICTIONARY_EXCLUDE_PushUP_009", Include) { - checkAnswer(s"""select count(distinct productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_009") + checkAnswer(s"""select count(distinct productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_009") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_010 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_010", Include) { + //DICTIONARY_EXCLUDE_PushUP_010 + test("Queries_DICTIONARY_EXCLUDE_PushUP_010", Include) { - checkAnswer(s"""select count(distinct gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_010") + checkAnswer(s"""select count(distinct gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_010") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_011 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_011", Include) { + //DICTIONARY_EXCLUDE_PushUP_011 + test("Queries_DICTIONARY_EXCLUDE_PushUP_011", Include) { - checkAnswer(s"""select count(distinct Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_011") + checkAnswer(s"""select count(distinct Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_011") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_012 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_012", Include) { + //DICTIONARY_EXCLUDE_PushUP_012 + test("Queries_DICTIONARY_EXCLUDE_PushUP_012", Include) { - checkAnswer(s"""select count(distinct contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_012") + checkAnswer(s"""select count(distinct contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_012") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_013 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_013", Include) { + //DICTIONARY_EXCLUDE_PushUP_013 + test("Queries_DICTIONARY_EXCLUDE_PushUP_013", Include) { - checkAnswer(s"""select sum(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_013") + checkAnswer(s"""select sum(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_013") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_014 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_014", Include) { + //DICTIONARY_EXCLUDE_PushUP_014 + test("Queries_DICTIONARY_EXCLUDE_PushUP_014", Include) { - checkAnswer(s"""select sum(productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_014") + checkAnswer(s"""select sum(productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_014") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_015 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_015", Include) { + //DICTIONARY_EXCLUDE_PushUP_015 + test("Queries_DICTIONARY_EXCLUDE_PushUP_015", Include) { - sql(s"""select sum(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select sum(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_016 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_016", Include) { + //DICTIONARY_EXCLUDE_PushUP_016 + test("Queries_DICTIONARY_EXCLUDE_PushUP_016", Include) { - checkAnswer(s"""select sum(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_016") + checkAnswer(s"""select sum(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_016") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_017 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_017", Include) { + //DICTIONARY_EXCLUDE_PushUP_017 + test("Queries_DICTIONARY_EXCLUDE_PushUP_017", Include) { - checkAnswer(s"""select sum(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_017") + checkAnswer(s"""select sum(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_017") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_018 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_018", Include) { + //DICTIONARY_EXCLUDE_PushUP_018 + test("Queries_DICTIONARY_EXCLUDE_PushUP_018", Include) { - checkAnswer(s"""select sum(distinct deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_018") + checkAnswer(s"""select sum(distinct deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_018") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_019 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_019", Include) { + //DICTIONARY_EXCLUDE_PushUP_019 + test("Queries_DICTIONARY_EXCLUDE_PushUP_019", Include) { - checkAnswer(s"""select sum(distinct gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_019") + checkAnswer(s"""select sum(distinct gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_019") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_020 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_020", Include) { + //DICTIONARY_EXCLUDE_PushUP_020 + test("Queries_DICTIONARY_EXCLUDE_PushUP_020", Include) { - checkAnswer(s"""select sum(distinct Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_020") + checkAnswer(s"""select sum(distinct Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_020") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_021 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_021", Include) { + //DICTIONARY_EXCLUDE_PushUP_021 + test("Queries_DICTIONARY_EXCLUDE_PushUP_021", Include) { - checkAnswer(s"""select sum(distinct contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_021") + checkAnswer(s"""select sum(distinct contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_021") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_022 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_022", Include) { + //DICTIONARY_EXCLUDE_PushUP_022 + test("Queries_DICTIONARY_EXCLUDE_PushUP_022", Include) { - checkAnswer(s"""select min(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_022") + checkAnswer(s"""select min(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_022") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_023 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_023", Include) { + //DICTIONARY_EXCLUDE_PushUP_023 + test("Queries_DICTIONARY_EXCLUDE_PushUP_023", Include) { - checkAnswer(s"""select min(productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_023") + checkAnswer(s"""select min(productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_023") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_024 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_024", Include) { + //DICTIONARY_EXCLUDE_PushUP_024 + test("Queries_DICTIONARY_EXCLUDE_PushUP_024", Include) { - checkAnswer(s"""select min(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_024") + checkAnswer(s"""select min(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_024") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_025 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_025", Include) { + //DICTIONARY_EXCLUDE_PushUP_025 + test("Queries_DICTIONARY_EXCLUDE_PushUP_025", Include) { - checkAnswer(s"""select min(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_025") + checkAnswer(s"""select min(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_025") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_026 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_026", Include) { + //DICTIONARY_EXCLUDE_PushUP_026 + test("Queries_DICTIONARY_EXCLUDE_PushUP_026", Include) { - checkAnswer(s"""select min(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_026") + checkAnswer(s"""select min(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_026") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_027 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_027", Include) { + //DICTIONARY_EXCLUDE_PushUP_027 + test("Queries_DICTIONARY_EXCLUDE_PushUP_027", Include) { - checkAnswer(s"""select max(imei) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(imei) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_027") + checkAnswer(s"""select max(imei) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(imei) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_027") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_028 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_028", Include) { + //DICTIONARY_EXCLUDE_PushUP_028 + test("Queries_DICTIONARY_EXCLUDE_PushUP_028", Include) { - checkAnswer(s"""select max(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_028") + checkAnswer(s"""select max(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_028") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_029 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_029", Include) { + //DICTIONARY_EXCLUDE_PushUP_029 + test("Queries_DICTIONARY_EXCLUDE_PushUP_029", Include) { - checkAnswer(s"""select max(productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_029") + checkAnswer(s"""select max(productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_029") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_030 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_030", Include) { + //DICTIONARY_EXCLUDE_PushUP_030 + test("Queries_DICTIONARY_EXCLUDE_PushUP_030", Include) { - checkAnswer(s"""select max(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_030") + checkAnswer(s"""select max(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_030") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_031 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_031", Include) { + //DICTIONARY_EXCLUDE_PushUP_031 + test("Queries_DICTIONARY_EXCLUDE_PushUP_031", Include) { - checkAnswer(s"""select max(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_031") + checkAnswer(s"""select max(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_031") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_032 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_032", Include) { + //DICTIONARY_EXCLUDE_PushUP_032 + test("Queries_DICTIONARY_EXCLUDE_PushUP_032", Include) { - checkAnswer(s"""select max(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_032") + checkAnswer(s"""select max(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_032") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_033 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_033", Include) { + //DICTIONARY_EXCLUDE_PushUP_033 + test("Queries_DICTIONARY_EXCLUDE_PushUP_033", Include) { - checkAnswer(s"""select variance(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select variance(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_033") + checkAnswer(s"""select variance(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select variance(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_033") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_034 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_034", Include) { + //DICTIONARY_EXCLUDE_PushUP_034 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_034", Include) { - checkAnswer(s"""select variance(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select variance(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_034") + checkAnswer(s"""select variance(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select variance(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_034") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_035 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_035", Include) { + //DICTIONARY_EXCLUDE_PushUP_035 + test("Queries_DICTIONARY_EXCLUDE_PushUP_035", Include) { - sql(s"""select variance(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select variance(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_036 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_036", Include) { + //DICTIONARY_EXCLUDE_PushUP_036 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_036", Include) { - checkAnswer(s"""select variance(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select variance(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_036") + checkAnswer(s"""select variance(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select variance(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_036") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_037 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_037", Include) { + //DICTIONARY_EXCLUDE_PushUP_037 + test("Queries_DICTIONARY_EXCLUDE_PushUP_037", Include) { - checkAnswer(s"""select variance(contractNumber) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", - s"""select variance(contractNumber) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_037") + checkAnswer(s"""select variance(contractNumber) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", + s"""select variance(contractNumber) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_037") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_038 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_038", Include) { + //DICTIONARY_EXCLUDE_PushUP_038 + test("Queries_DICTIONARY_EXCLUDE_PushUP_038", Include) { - checkAnswer(s"""select var_samp(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select var_samp(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_038") + checkAnswer(s"""select var_samp(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select var_samp(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_038") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_039 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_039", Include) { + //DICTIONARY_EXCLUDE_PushUP_039 + test("Queries_DICTIONARY_EXCLUDE_PushUP_039", Include) { - checkAnswer(s"""select var_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select var_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_039") + checkAnswer(s"""select var_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select var_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_039") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_040 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_040", Include) { + //DICTIONARY_EXCLUDE_PushUP_040 + test("Queries_DICTIONARY_EXCLUDE_PushUP_040", Include) { - sql(s"""select var_samp(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select var_samp(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_041 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_041", Include) { + //DICTIONARY_EXCLUDE_PushUP_041 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_041", Include) { - checkAnswer(s"""select var_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select var_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_041") + checkAnswer(s"""select var_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select var_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_041") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_042 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_042", Include) { + //DICTIONARY_EXCLUDE_PushUP_042 + test("Queries_DICTIONARY_EXCLUDE_PushUP_042", Include) { - sql(s"""select var_samp(contractNumber) from (select contractNumber from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')order by contractNumber)""").collect + sql(s"""select var_samp(contractNumber) from (select contractNumber from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')order by contractNumber)""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_043 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_043", Include) { + //DICTIONARY_EXCLUDE_PushUP_043 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_043", Include) { - checkAnswer(s"""select stddev_pop(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_pop(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_043") + checkAnswer(s"""select stddev_pop(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_pop(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_043") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_044 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_044", Include) { + //DICTIONARY_EXCLUDE_PushUP_044 + test("Queries_DICTIONARY_EXCLUDE_PushUP_044", Include) { - checkAnswer(s"""select stddev_pop(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select stddev_pop(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_044") + checkAnswer(s"""select stddev_pop(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select stddev_pop(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_044") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_045 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_045", Include) { + //DICTIONARY_EXCLUDE_PushUP_045 + test("Queries_DICTIONARY_EXCLUDE_PushUP_045", Include) { - sql(s"""select stddev_pop(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select stddev_pop(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_046 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_046", Include) { + //DICTIONARY_EXCLUDE_PushUP_046 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_046", Include) { - checkAnswer(s"""select stddev_pop(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select stddev_pop(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_046") + checkAnswer(s"""select stddev_pop(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select stddev_pop(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_046") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_047 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_047", Include) { + //DICTIONARY_EXCLUDE_PushUP_047 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_047", Include) { - checkAnswer(s"""select stddev_pop(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_pop(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_047") + checkAnswer(s"""select stddev_pop(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_pop(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_047") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_048 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_048", Include) { + //DICTIONARY_EXCLUDE_PushUP_048 + test("Queries_DICTIONARY_EXCLUDE_PushUP_048", Include) { - checkAnswer(s"""select stddev_samp(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_samp(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_048") + checkAnswer(s"""select stddev_samp(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_samp(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_048") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_049 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_049", Include) { + //DICTIONARY_EXCLUDE_PushUP_049 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_049", Include) { - checkAnswer(s"""select stddev_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select stddev_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_049") + checkAnswer(s"""select stddev_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select stddev_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_049") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_050 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_050", Include) { + //DICTIONARY_EXCLUDE_PushUP_050 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_050", Include) { - checkAnswer(s"""select stddev_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select stddev_samp(gamePointId) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_050") + checkAnswer(s"""select stddev_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select stddev_samp(gamePointId) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_050") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_051 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_051", Include) { + //DICTIONARY_EXCLUDE_PushUP_051 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_051", Include) { - checkAnswer(s"""select stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_051") + checkAnswer(s"""select stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_051") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_053 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_053", Include) { + //DICTIONARY_EXCLUDE_PushUP_053 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_053", Include) { - checkAnswer(s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId),var_samp(deviceInformationId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by deviceinformationId)""", - s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId),var_samp(deviceInformationId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by deviceinformationId)""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_053") + checkAnswer(s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId),var_samp(deviceInformationId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by deviceinformationId)""", + s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId),var_samp(deviceInformationId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by deviceinformationId)""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_053") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_054 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_054", Include) { + //DICTIONARY_EXCLUDE_PushUP_054 + test("Queries_DICTIONARY_EXCLUDE_PushUP_054", Include) { - checkAnswer(s"""select AVG(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(deviceinformationId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_054") + checkAnswer(s"""select AVG(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(deviceinformationId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_054") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_055 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_055", Include) { + //DICTIONARY_EXCLUDE_PushUP_055 + test("Queries_DICTIONARY_EXCLUDE_PushUP_055", Include) { - checkAnswer(s"""select AVG(productionDate) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(productionDate) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_055") + checkAnswer(s"""select AVG(productionDate) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(productionDate) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_055") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_056 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_056", Include) { + //DICTIONARY_EXCLUDE_PushUP_056 + test("Queries_DICTIONARY_EXCLUDE_PushUP_056", Include) { - checkAnswer(s"""select AVG(gamePointId) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(gamePointId) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_056") + checkAnswer(s"""select AVG(gamePointId) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(gamePointId) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_056") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_057 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_057", Include) { + //DICTIONARY_EXCLUDE_PushUP_057 + test("Queries_DICTIONARY_EXCLUDE_PushUP_057", Include) { - checkAnswer(s"""select AVG(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_057") + checkAnswer(s"""select AVG(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_057") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_058 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_058", Include) { + //DICTIONARY_EXCLUDE_PushUP_058 + test("Queries_DICTIONARY_EXCLUDE_PushUP_058", Include) { - checkAnswer(s"""select AVG(contractNumber) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(contractNumber) from VMALL_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_058") + checkAnswer(s"""select AVG(contractNumber) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(contractNumber) from TABLE_DICTIONARY_EXCLUDE1_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_058") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_059 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_059", Include) { + //DICTIONARY_EXCLUDE_PushUP_059 + test("Queries_DICTIONARY_EXCLUDE_PushUP_059", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE group by deviceInformationId limit 5""").collect + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE group by deviceInformationId limit 5""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_060 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_060", Include) { + //DICTIONARY_EXCLUDE_PushUP_060 + test("Queries_DICTIONARY_EXCLUDE_PushUP_060", Include) { - sql(s"""select sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId) from VMALL_DICTIONARY_EXCLUDE group by deviceInformationId order by deviceinformationId limit 5""").collect + sql(s"""select sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId) from TABLE_DICTIONARY_EXCLUDE group by deviceInformationId order by deviceinformationId limit 5""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_061 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_061", Include) { + //DICTIONARY_EXCLUDE_PushUP_061 + test("Queries_DICTIONARY_EXCLUDE_PushUP_061", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')group by deviceInformationId limit 5""").collect + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')group by deviceInformationId limit 5""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_062 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_062", Include) { + //DICTIONARY_EXCLUDE_PushUP_062 + test("Queries_DICTIONARY_EXCLUDE_PushUP_062", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""").collect + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_063 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_063", Include) { + //DICTIONARY_EXCLUDE_PushUP_063 + test("Queries_DICTIONARY_EXCLUDE_PushUP_063", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId,productionDate sort by productionDate limit 5 + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_EXCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId,productionDate sort by productionDate limit 5 """).collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_064 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_064", Include) { + //DICTIONARY_EXCLUDE_PushUP_064 + test("Queries_DICTIONARY_EXCLUDE_PushUP_064", Include) { - checkAnswer(s"""select sum(deviceinformationId+10)t from VMALL_DICTIONARY_EXCLUDE having t >1234567""", - s"""select sum(deviceinformationId+10)t from VMALL_DICTIONARY_EXCLUDE1_hive having t >1234567""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_064") + checkAnswer(s"""select sum(deviceinformationId+10)t from TABLE_DICTIONARY_EXCLUDE having t >1234567""", + s"""select sum(deviceinformationId+10)t from TABLE_DICTIONARY_EXCLUDE1_hive having t >1234567""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_064") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_065 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_065", Include) { + //DICTIONARY_EXCLUDE_PushUP_065 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_065", Include) { - checkAnswer(s"""select sum(deviceinformationId+gamePointId)t from (select gamePointId,deviceinformationId from VMALL_DICTIONARY_EXCLUDE order by gamePointId,deviceinformationId) having t >1234567""", - s"""select sum(deviceinformationId+gamePointId)t from (select gamePointId,deviceinformationId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId,deviceinformationId) having t >1234567""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_065") + checkAnswer(s"""select sum(deviceinformationId+gamePointId)t from (select gamePointId,deviceinformationId from TABLE_DICTIONARY_EXCLUDE order by gamePointId,deviceinformationId) having t >1234567""", + s"""select sum(deviceinformationId+gamePointId)t from (select gamePointId,deviceinformationId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId,deviceinformationId) having t >1234567""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_065") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_066 - ignore("VMALL_DICTIONARY_EXCLUDE_PushUP_066", Include) { + //DICTIONARY_EXCLUDE_PushUP_066 + ignore("Queries_DICTIONARY_EXCLUDE_PushUP_066", Include) { - checkAnswer(s"""select sum(deviceinformationId)t,Sum(gamePointId) from (select gamePointId,deviceinformationId from VMALL_DICTIONARY_EXCLUDE order by gamePointId,deviceinformationId) having t >1234567""", - s"""select sum(deviceinformationId)t,Sum(gamePointId) from (select gamePointId,deviceinformationId from VMALL_DICTIONARY_EXCLUDE1_hive order by gamePointId,deviceinformationId) having t >1234567""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_066") + checkAnswer(s"""select sum(deviceinformationId)t,Sum(gamePointId) from (select gamePointId,deviceinformationId from TABLE_DICTIONARY_EXCLUDE order by gamePointId,deviceinformationId) having t >1234567""", + s"""select sum(deviceinformationId)t,Sum(gamePointId) from (select gamePointId,deviceinformationId from TABLE_DICTIONARY_EXCLUDE1_hive order by gamePointId,deviceinformationId) having t >1234567""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_066") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_067 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_067", Include) { + //DICTIONARY_EXCLUDE_PushUP_067 + test("Queries_DICTIONARY_EXCLUDE_PushUP_067", Include) { - checkAnswer(s"""select count(imei) a,sum(distinct deviceinformationId) b,min(productionDate) c from VMALL_DICTIONARY_EXCLUDE group by imei,deviceinformationId,productionDate order by a,b,c""", - s"""select count(imei) a,sum(distinct deviceinformationId) b,min(productionDate) c from VMALL_DICTIONARY_EXCLUDE1_hive group by imei,deviceinformationId,productionDate order by a,b,c""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_067") + checkAnswer(s"""select count(imei) a,sum(distinct deviceinformationId) b,min(productionDate) c from TABLE_DICTIONARY_EXCLUDE group by imei,deviceinformationId,productionDate order by a,b,c""", + s"""select count(imei) a,sum(distinct deviceinformationId) b,min(productionDate) c from TABLE_DICTIONARY_EXCLUDE1_hive group by imei,deviceinformationId,productionDate order by a,b,c""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_067") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_069 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_069", Include) { + //DICTIONARY_EXCLUDE_PushUP_069 + test("Queries_DICTIONARY_EXCLUDE_PushUP_069", Include) { - sql(s"""SELECT min(Latest_DAY),max(imei),variance(contractNumber), SUM(gamePointId),count(imei),sum(distinct deviceinformationId) FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY GROUP BY AMSize, ActiveAreaId ORDER BY AMSize ASC, ActiveAreaId ASC limit 10""").collect + sql(s"""SELECT min(Latest_DAY),max(imei),variance(contractNumber), SUM(gamePointId),count(imei),sum(distinct deviceinformationId) FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY GROUP BY AMSize, ActiveAreaId ORDER BY AMSize ASC, ActiveAreaId ASC limit 10""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_070 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_070", Include) { + //DICTIONARY_EXCLUDE_PushUP_070 + test("Queries_DICTIONARY_EXCLUDE_PushUP_070", Include) { - checkAnswer(s"""SELECT VMALL_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_EXCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1 ON VMALL_DICTIONARY_EXCLUDE.AMSize = VMALL_DICTIONARY_EXCLUDE1.AMSize WHERE VMALL_DICTIONARY_EXCLUDE.AMSize LIKE '5RAM %' GROUP BY VMALL_DICTIONARY_EXCLUDE.AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity,VMALL_DICTIONARY_EXCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_EXCLUDE.gamePointId ASC, VMALL_DICTIONARY_EXCLUDE.AMSize ASC, VMALL_DICTIONARY_EXCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_EXCLUDE.Activecity ASC""", - s"""SELECT VMALL_DICTIONARY_EXCLUDE1_hive.gamePointId AS gamePointId,VMALL_DICTIONARY_EXCLUDE1_hive.AMSize AS AMSize, VMALL_DICTIONARY_EXCLUDE1_hive.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_EXCLUDE1_hive.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_EXCLUDE1_hive) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1_hive FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_EXCLUDE1_hive) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1_hive1 ON VMALL_DICTIONARY_EXCLUDE1_hive.AMSize = VMALL_DICTIONARY_EXCLUDE1_hive1.AMSize WHERE VMALL_DICTIONARY_EXCLUDE1_hive.AMSize LIKE '5RAM %' GROUP BY VMALL_DICTIONARY_EXCLUDE1_hive.AMSize, VMALL_DICTIONARY_EXCLUDE1_hive.ActiveCountry, VMALL_DICTIONARY_EXCLUDE1_hive.Activecity,VMALL_DICTIONARY_EXCLUDE1_hive.gamePointId ORDER BY VMALL_DICTIONARY_EXCLUDE1_hive.gamePointId ASC, VMALL_DICTIONARY_EXCLUDE1_hive.AMSize ASC, VMALL_DICTIONARY_EXCLUDE1_hive.ActiveCountry ASC, VMALL_DICTIONARY_EXCLUDE1_hive.Activecity ASC""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_070") + checkAnswer(s"""SELECT TABLE_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_EXCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1 ON TABLE_DICTIONARY_EXCLUDE.AMSize = TABLE_DICTIONARY_EXCLUDE1.AMSize WHERE TABLE_DICTIONARY_EXCLUDE.AMSize LIKE '5RAM %' GROUP BY TABLE_DICTIONARY_EXCLUDE.AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity,TABLE_DICTIONARY_EXCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_EXCLUDE.gamePointId ASC, TABLE_DICTIONARY_EXCLUDE.AMSize ASC, TABLE_DICTIONARY_EXCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_EXCLUDE.Activecity ASC""", + s"""SELECT TABLE_DICTIONARY_EXCLUDE1_hive.gamePointId AS gamePointId,TABLE_DICTIONARY_EXCLUDE1_hive.AMSize AS AMSize, TABLE_DICTIONARY_EXCLUDE1_hive.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_EXCLUDE1_hive.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_EXCLUDE1_hive) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1_hive FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_EXCLUDE1_hive) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1_hive1 ON TABLE_DICTIONARY_EXCLUDE1_hive.AMSize = TABLE_DICTIONARY_EXCLUDE1_hive1.AMSize WHERE TABLE_DICTIONARY_EXCLUDE1_hive.AMSize LIKE '5RAM %' GROUP BY TABLE_DICTIONARY_EXCLUDE1_hive.AMSize, TABLE_DICTIONARY_EXCLUDE1_hive.ActiveCountry, TABLE_DICTIONARY_EXCLUDE1_hive.Activecity,TABLE_DICTIONARY_EXCLUDE1_hive.gamePointId ORDER BY TABLE_DICTIONARY_EXCLUDE1_hive.gamePointId ASC, TABLE_DICTIONARY_EXCLUDE1_hive.AMSize ASC, TABLE_DICTIONARY_EXCLUDE1_hive.ActiveCountry ASC, TABLE_DICTIONARY_EXCLUDE1_hive.Activecity ASC""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_070") } - //VMALL_DICTIONARY_EXCLUDE_PushUP_071 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_071", Include) { + //DICTIONARY_EXCLUDE_PushUP_071 + test("Queries_DICTIONARY_EXCLUDE_PushUP_071", Include) { - sql(s"""SELECT VMALL_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_EXCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE RIGHT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1 ON VMALL_DICTIONARY_EXCLUDE.AMSize = VMALL_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(VMALL_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_EXCLUDE.AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity,VMALL_DICTIONARY_EXCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_EXCLUDE.AMSize ASC, VMALL_DICTIONARY_EXCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_EXCLUDE.Activecity ASC limit 10""").collect + sql(s"""SELECT TABLE_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_EXCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE RIGHT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1 ON TABLE_DICTIONARY_EXCLUDE.AMSize = TABLE_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(TABLE_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_EXCLUDE.AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity,TABLE_DICTIONARY_EXCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_EXCLUDE.AMSize ASC, TABLE_DICTIONARY_EXCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_EXCLUDE.Activecity ASC limit 10""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_072 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_072", Include) { + //DICTIONARY_EXCLUDE_PushUP_072 + test("Queries_DICTIONARY_EXCLUDE_PushUP_072", Include) { - sql(s"""SELECT VMALL_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_EXCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE LEFT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1 ON VMALL_DICTIONARY_EXCLUDE.AMSize = VMALL_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(VMALL_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_EXCLUDE.AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity,VMALL_DICTIONARY_EXCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_EXCLUDE.AMSize ASC, VMALL_DICTIONARY_EXCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_EXCLUDE.Activecity ASC limit 10 + sql(s"""SELECT TABLE_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_EXCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE LEFT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1 ON TABLE_DICTIONARY_EXCLUDE.AMSize = TABLE_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(TABLE_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_EXCLUDE.AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity,TABLE_DICTIONARY_EXCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_EXCLUDE.AMSize ASC, TABLE_DICTIONARY_EXCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_EXCLUDE.Activecity ASC limit 10 """).collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_073 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_073", Include) { + //DICTIONARY_EXCLUDE_PushUP_073 + test("Queries_DICTIONARY_EXCLUDE_PushUP_073", Include) { - sql(s"""SELECT VMALL_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_EXCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE INNER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_EXCLUDE) SUB_QRY ) VMALL_DICTIONARY_EXCLUDE1 ON VMALL_DICTIONARY_EXCLUDE.AMSize = VMALL_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(VMALL_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_EXCLUDE.AMSize, VMALL_DICTIONARY_EXCLUDE.ActiveCountry, VMALL_DICTIONARY_EXCLUDE.Activecity,VMALL_DICTIONARY_EXCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_EXCLUDE.AMSize ASC, VMALL_DICTIONARY_EXCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_EXCLUDE.Activecity ASC limit 10 + sql(s"""SELECT TABLE_DICTIONARY_EXCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_EXCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE INNER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_EXCLUDE) SUB_QRY ) TABLE_DICTIONARY_EXCLUDE1 ON TABLE_DICTIONARY_EXCLUDE.AMSize = TABLE_DICTIONARY_EXCLUDE1.AMSize WHERE NOT(TABLE_DICTIONARY_EXCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_EXCLUDE.AMSize, TABLE_DICTIONARY_EXCLUDE.ActiveCountry, TABLE_DICTIONARY_EXCLUDE.Activecity,TABLE_DICTIONARY_EXCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_EXCLUDE.AMSize ASC, TABLE_DICTIONARY_EXCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_EXCLUDE.Activecity ASC limit 10 """).collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_074 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_074", Include) { + //DICTIONARY_EXCLUDE_PushUP_074 + test("Queries_DICTIONARY_EXCLUDE_PushUP_074", Include) { - sql(s"""select count(gamepointid),series from VMALL_DICTIONARY_EXCLUDE group by series order by series limit 5""").collect + sql(s"""select count(gamepointid),series from TABLE_DICTIONARY_EXCLUDE group by series order by series limit 5""").collect } - //VMALL_DICTIONARY_EXCLUDE_PushUP_075 - test("VMALL_DICTIONARY_EXCLUDE_PushUP_075", Include) { + //DICTIONARY_EXCLUDE_PushUP_075 + test("Queries_DICTIONARY_EXCLUDE_PushUP_075", Include) { - checkAnswer(s"""select count(gamepointid),series from VMALL_DICTIONARY_EXCLUDE group by series order by series""", - s"""select count(gamepointid),series from VMALL_DICTIONARY_EXCLUDE1_hive group by series order by series""", "QueriesExcludeDictionaryTestCase_VMALL_DICTIONARY_EXCLUDE_PushUP_075") + checkAnswer(s"""select count(gamepointid),series from TABLE_DICTIONARY_EXCLUDE group by series order by series""", + s"""select count(gamepointid),series from TABLE_DICTIONARY_EXCLUDE1_hive group by series order by series""", "QueriesExcludeDictionaryTestCase_DICTIONARY_EXCLUDE_PushUP_075") } @@ -5034,10 +5034,10 @@ class QueriesExcludeDictionaryTestCase extends QueryTest with BeforeAndAfterAll } override def afterAll { - sql("drop table if exists VMALL_DICTIONARY_EXCLUDE") - sql("drop table if exists VMALL_DICTIONARY_EXCLUDE1_hive") - sql("drop table if exists VMALL_DICTIONARY_EXCLUDE1") - sql("drop table if exists VMALL_DICTIONARY_EXCLUDE1_hive") + sql("drop table if exists TABLE_DICTIONARY_EXCLUDE") + sql("drop table if exists TABLE_DICTIONARY_EXCLUDE1_hive") + sql("drop table if exists TABLE_DICTIONARY_EXCLUDE1") + sql("drop table if exists TABLE_DICTIONARY_EXCLUDE1_hive") sql("drop table if exists smart_500_DE") sql("drop table if exists smart_500_DE_hive") } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesIncludeDictionaryTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesIncludeDictionaryTestCase.scala index 2a99d134a35..769911c612a 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesIncludeDictionaryTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesIncludeDictionaryTestCase.scala @@ -28,3845 +28,3845 @@ import org.scalatest.BeforeAndAfterAll class QueriesIncludeDictionaryTestCase extends QueryTest with BeforeAndAfterAll { - //VMALL_DICTIONARY_INCLUDE_CreateCube - test("VMALL_DICTIONARY_INCLUDE_CreateCube", Include) { - sql(s"""drop table if exists VMALL_DICTIONARY_INCLUDE""").collect - sql(s"""drop table if exists VMALL_DICTIONARY_INCLUDE_hive""").collect + //TABLE_DICTIONARY_INCLUDE_CreateCube + test("TABLE_DICTIONARY_INCLUDE_CreateCube", Include) { + sql(s"""drop table if exists TABLE_DICTIONARY_INCLUDE""").collect + sql(s"""drop table if exists TABLE_DICTIONARY_INCLUDE_hive""").collect - sql(s"""create table VMALL_DICTIONARY_INCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='imei,deviceInformationId,productionDate,gamePointId,Latest_DAY,contractNumber') + sql(s"""create table TABLE_DICTIONARY_INCLUDE (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string, deliveryTime string, channelsId string, channelsName string , deliveryAreaId string, deliveryCountry string, deliveryProvince string, deliveryCity string,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProvince string, Activecity string, ActiveDistrict string, ActiveStreet string, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion string, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFlashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest_DAY Decimal(30,10), Latest_HOUR string, Latest_areaId string, Latest_country string, Latest_province string, Latest_city string, Latest_district string, Latest_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer string, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPartitionedVersions string, Latest_operatorId string, gamePointDescription string,gamePointId double,contractNumber BigInt) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='imei,deviceInformationId,productionDate,gamePointId,Latest_DAY,contractNumber') """).collect - sql(s"""create table VMALL_DICTIONARY_INCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect + sql(s"""create table TABLE_DICTIONARY_INCLUDE_hive (imei string,deviceInformationId int,MAC string,deviceColor string,device_backColor string,modelId string,marketName string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,series string,productionDate timestamp,bomCode string,internalModels string,deliveryTime string,channelsId string,channelsName string,deliveryAreaId string,deliveryCountry string,deliveryProvince string,deliveryCity string,deliveryDistrict string,deliveryStreet string,oxSingleNumber string,contractNumber BigInt,ActiveCheckTime string,ActiveAreaId string,ActiveCountry string,ActiveProvince string,Activecity string,ActiveDistrict string,ActiveStreet string,ActiveOperatorId string,Active_releaseId string,Active_EMUIVersion string,Active_operaSysVersion string,Active_BacVerNumber string,Active_BacFlashVer string,Active_webUIVersion string,Active_webUITypeCarrVer string,Active_webTypeDataVerNumber string,Active_operatorsVersion string,Active_phonePADPartitionedVersions string,Latest_YEAR int,Latest_MONTH int,Latest_DAY Decimal(30,10),Latest_HOUR string,Latest_areaId string,Latest_country string,Latest_province string,Latest_city string,Latest_district string,Latest_street string,Latest_releaseId string,Latest_EMUIVersion string,Latest_operaSysVersion string,Latest_BacVerNumber string,Latest_BacFlashVer string,Latest_webUIVersion string,Latest_webUITypeCarrVer string,Latest_webTypeDataVerNumber string,Latest_operatorsVersion string,Latest_phonePADPartitionedVersions string,Latest_operatorId string,gamePointId double,gamePointDescription string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','""").collect } - //VMALL_DICTIONARY_INCLUDE_CreateCube_count - test("VMALL_DICTIONARY_INCLUDE_CreateCube_count", Include) { + //TABLE_DICTIONARY_INCLUDE_CreateCube_count + test("TABLE_DICTIONARY_INCLUDE_CreateCube_count", Include) { - sql(s"""select count(*) from VMALL_DICTIONARY_INCLUDE""").collect + sql(s"""select count(*) from TABLE_DICTIONARY_INCLUDE""").collect } - //VMALL_DICTIONARY_INCLUDE_DataLoad - test("VMALL_DICTIONARY_INCLUDE_DataLoad", Include) { + //TABLE_DICTIONARY_INCLUDE_DataLoad + test("TABLE_DICTIONARY_INCLUDE_DataLoad", Include) { - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table VMALL_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table TABLE_DICTIONARY_INCLUDE options ('DELIMITER'=',', 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='imei,deviceInformationId,MAC,deviceColor,device_backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,productionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deliveryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,deliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,ActiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOperatorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_BacVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitionedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,Latest_country,Latest_province,Latest_city,Latest_district,Latest_street,Latest_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webTypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions,Latest_operatorId,gamePointId,gamePointDescription')""").collect - sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table VMALL_DICTIONARY_INCLUDE_hive """).collect + sql(s"""LOAD DATA INPATH '$resourcesPath/Data/100_olap_C20.csv' INTO table TABLE_DICTIONARY_INCLUDE_hive """).collect } - //VMALL_DICTIONARY_INCLUDE_001 - test("VMALL_DICTIONARY_INCLUDE_001", Include) { + //TABLE_DICTIONARY_INCLUDE_001 + test("TABLE_DICTIONARY_INCLUDE_001", Include) { - checkAnswer(s"""Select count(imei) from VMALL_DICTIONARY_INCLUDE""", - s"""Select count(imei) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_001") + checkAnswer(s"""Select count(imei) from TABLE_DICTIONARY_INCLUDE""", + s"""Select count(imei) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_001") } - //VMALL_DICTIONARY_INCLUDE_002 - test("VMALL_DICTIONARY_INCLUDE_002", Include) { + //TABLE_DICTIONARY_INCLUDE_002 + test("TABLE_DICTIONARY_INCLUDE_002", Include) { - checkAnswer(s"""select count(DISTINCT imei) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT imei) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_002") + checkAnswer(s"""select count(DISTINCT imei) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT imei) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_002") } - //VMALL_DICTIONARY_INCLUDE_003 - test("VMALL_DICTIONARY_INCLUDE_003", Include) { + //TABLE_DICTIONARY_INCLUDE_003 + test("TABLE_DICTIONARY_INCLUDE_003", Include) { - checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from VMALL_DICTIONARY_INCLUDE group by imei order by imei""", - s"""select sum(Latest_month)+10 as a ,imei from VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_003") + checkAnswer(s"""select sum(Latest_month)+10 as a ,imei from TABLE_DICTIONARY_INCLUDE group by imei order by imei""", + s"""select sum(Latest_month)+10 as a ,imei from TABLE_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_003") } - //VMALL_DICTIONARY_INCLUDE_004 - test("VMALL_DICTIONARY_INCLUDE_004", Include) { + //TABLE_DICTIONARY_INCLUDE_004 + test("TABLE_DICTIONARY_INCLUDE_004", Include) { - checkAnswer(s"""select max(imei),min(imei) from VMALL_DICTIONARY_INCLUDE""", - s"""select max(imei),min(imei) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_004") + checkAnswer(s"""select max(imei),min(imei) from TABLE_DICTIONARY_INCLUDE""", + s"""select max(imei),min(imei) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_004") } - //VMALL_DICTIONARY_INCLUDE_005 - test("VMALL_DICTIONARY_INCLUDE_005", Include) { + //TABLE_DICTIONARY_INCLUDE_005 + test("TABLE_DICTIONARY_INCLUDE_005", Include) { - checkAnswer(s"""select min(imei), max(imei) Total from VMALL_DICTIONARY_INCLUDE group by channelsId order by Total""", - s"""select min(imei), max(imei) Total from VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_005") + checkAnswer(s"""select min(imei), max(imei) Total from TABLE_DICTIONARY_INCLUDE group by channelsId order by Total""", + s"""select min(imei), max(imei) Total from TABLE_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_005") } - //VMALL_DICTIONARY_INCLUDE_006 - test("VMALL_DICTIONARY_INCLUDE_006", Include) { + //TABLE_DICTIONARY_INCLUDE_006 + test("TABLE_DICTIONARY_INCLUDE_006", Include) { - checkAnswer(s"""select last(imei) a from VMALL_DICTIONARY_INCLUDE group by imei order by imei limit 1""", - s"""select last(imei) a from VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei limit 1""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_006") + checkAnswer(s"""select last(imei) a from TABLE_DICTIONARY_INCLUDE group by imei order by imei limit 1""", + s"""select last(imei) a from TABLE_DICTIONARY_INCLUDE_hive group by imei order by imei limit 1""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_006") } - //VMALL_DICTIONARY_INCLUDE_007 - test("VMALL_DICTIONARY_INCLUDE_007", Include) { + //TABLE_DICTIONARY_INCLUDE_007 + test("TABLE_DICTIONARY_INCLUDE_007", Include) { - sql(s"""select FIRST(imei) a from VMALL_DICTIONARY_INCLUDE group by imei order by imei limit 1""").collect + sql(s"""select FIRST(imei) a from TABLE_DICTIONARY_INCLUDE group by imei order by imei limit 1""").collect } - //VMALL_DICTIONARY_INCLUDE_008 - test("VMALL_DICTIONARY_INCLUDE_008", Include) { + //TABLE_DICTIONARY_INCLUDE_008 + test("TABLE_DICTIONARY_INCLUDE_008", Include) { - checkAnswer(s"""select imei,count(imei) a from VMALL_DICTIONARY_INCLUDE group by imei order by imei""", - s"""select imei,count(imei) a from VMALL_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_008") + checkAnswer(s"""select imei,count(imei) a from TABLE_DICTIONARY_INCLUDE group by imei order by imei""", + s"""select imei,count(imei) a from TABLE_DICTIONARY_INCLUDE_hive group by imei order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_008") } - //VMALL_DICTIONARY_INCLUDE_009 - test("VMALL_DICTIONARY_INCLUDE_009", Include) { + //TABLE_DICTIONARY_INCLUDE_009 + test("TABLE_DICTIONARY_INCLUDE_009", Include) { - checkAnswer(s"""select Lower(imei) a from VMALL_DICTIONARY_INCLUDE order by imei""", - s"""select Lower(imei) a from VMALL_DICTIONARY_INCLUDE_hive order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_009") + checkAnswer(s"""select Lower(imei) a from TABLE_DICTIONARY_INCLUDE order by imei""", + s"""select Lower(imei) a from TABLE_DICTIONARY_INCLUDE_hive order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_009") } - //VMALL_DICTIONARY_INCLUDE_010 - test("VMALL_DICTIONARY_INCLUDE_010", Include) { + //TABLE_DICTIONARY_INCLUDE_010 + test("TABLE_DICTIONARY_INCLUDE_010", Include) { - checkAnswer(s"""select distinct imei from VMALL_DICTIONARY_INCLUDE order by imei""", - s"""select distinct imei from VMALL_DICTIONARY_INCLUDE_hive order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_010") + checkAnswer(s"""select distinct imei from TABLE_DICTIONARY_INCLUDE order by imei""", + s"""select distinct imei from TABLE_DICTIONARY_INCLUDE_hive order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_010") } - //VMALL_DICTIONARY_INCLUDE_011 - test("VMALL_DICTIONARY_INCLUDE_011", Include) { + //TABLE_DICTIONARY_INCLUDE_011 + test("TABLE_DICTIONARY_INCLUDE_011", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE order by imei limit 101 """, - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive order by imei limit 101 """, "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_011") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE order by imei limit 101 """, + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive order by imei limit 101 """, "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_011") } - //VMALL_DICTIONARY_INCLUDE_012 - test("VMALL_DICTIONARY_INCLUDE_012", Include) { + //TABLE_DICTIONARY_INCLUDE_012 + test("TABLE_DICTIONARY_INCLUDE_012", Include) { - checkAnswer(s"""select imei as a from VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select imei as a from VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_012") + checkAnswer(s"""select imei as a from TABLE_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select imei as a from TABLE_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_012") } - //VMALL_DICTIONARY_INCLUDE_013 - test("VMALL_DICTIONARY_INCLUDE_013", Include) { + //TABLE_DICTIONARY_INCLUDE_013 + test("TABLE_DICTIONARY_INCLUDE_013", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_013") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where (contractNumber == 9223372047700) and (imei=='1AA100004')""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where (contractNumber == 9223372047700) and (imei=='1AA100004')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_013") } - //VMALL_DICTIONARY_INCLUDE_014 - test("VMALL_DICTIONARY_INCLUDE_014", Include) { + //TABLE_DICTIONARY_INCLUDE_014 + test("TABLE_DICTIONARY_INCLUDE_014", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei !='1AA100064' order by imei""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_014") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei !='1AA100064' order by imei""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei !='1AA100064' order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_014") } - //VMALL_DICTIONARY_INCLUDE_015 - test("VMALL_DICTIONARY_INCLUDE_015", Include) { + //TABLE_DICTIONARY_INCLUDE_015 + test("TABLE_DICTIONARY_INCLUDE_015", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_015") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_015") } - //VMALL_DICTIONARY_INCLUDE_016 - test("VMALL_DICTIONARY_INCLUDE_016", Include) { + //TABLE_DICTIONARY_INCLUDE_016 + test("TABLE_DICTIONARY_INCLUDE_016", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei !='1AA100012' order by imei""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_016") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei !='1AA100012' order by imei""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei !='1AA100012' order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_016") } - //VMALL_DICTIONARY_INCLUDE_017 - test("VMALL_DICTIONARY_INCLUDE_017", Include) { + //TABLE_DICTIONARY_INCLUDE_017 + test("TABLE_DICTIONARY_INCLUDE_017", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei >'1AA100012' order by imei""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_017") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei >'1AA100012' order by imei""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei >'1AA100012' order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_017") } - //VMALL_DICTIONARY_INCLUDE_018 - test("VMALL_DICTIONARY_INCLUDE_018", Include) { + //TABLE_DICTIONARY_INCLUDE_018 + test("TABLE_DICTIONARY_INCLUDE_018", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei<>imei""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei<>imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_018") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei<>imei""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei<>imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_018") } - //VMALL_DICTIONARY_INCLUDE_019 - test("VMALL_DICTIONARY_INCLUDE_019", Include) { + //TABLE_DICTIONARY_INCLUDE_019 + test("TABLE_DICTIONARY_INCLUDE_019", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei != Latest_areaId order by imei""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_019") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei != Latest_areaId order by imei""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei != Latest_areaId order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_019") } - //VMALL_DICTIONARY_INCLUDE_020 - test("VMALL_DICTIONARY_INCLUDE_020", Include) { + //TABLE_DICTIONARY_INCLUDE_020 + test("TABLE_DICTIONARY_INCLUDE_020", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where Latest_areaId9223372047700 order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_070") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber >9223372047700 order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber >9223372047700 order by contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_070") } - //VMALL_DICTIONARY_INCLUDE_071 - test("VMALL_DICTIONARY_INCLUDE_071", Include) { + //TABLE_DICTIONARY_INCLUDE_071 + test("TABLE_DICTIONARY_INCLUDE_071", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where contractNumber<>contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber<>contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_071") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber<>contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber<>contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_071") } - //VMALL_DICTIONARY_INCLUDE_072 - test("VMALL_DICTIONARY_INCLUDE_072", Include) { + //TABLE_DICTIONARY_INCLUDE_072 + test("TABLE_DICTIONARY_INCLUDE_072", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where contractNumber != Latest_areaId order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_072") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber != Latest_areaId order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber != Latest_areaId order by contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_072") } - //VMALL_DICTIONARY_INCLUDE_073 - test("VMALL_DICTIONARY_INCLUDE_073", Include) { + //TABLE_DICTIONARY_INCLUDE_073 + test("TABLE_DICTIONARY_INCLUDE_073", Include) { - checkAnswer(s"""select contractNumber, contractNumber from VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_076") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber >1000 order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber >1000 order by contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_076") } - //VMALL_DICTIONARY_INCLUDE_077 - test("VMALL_DICTIONARY_INCLUDE_077", Include) { + //TABLE_DICTIONARY_INCLUDE_077 + test("TABLE_DICTIONARY_INCLUDE_077", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where contractNumber IS NULL order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_077") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber IS NULL order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber IS NULL order by contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_077") } - //VMALL_DICTIONARY_INCLUDE_078 - test("VMALL_DICTIONARY_INCLUDE_078", Include) { + //TABLE_DICTIONARY_INCLUDE_078 + test("TABLE_DICTIONARY_INCLUDE_078", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_078") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by contractNumber""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by contractNumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_078") } - //VMALL_DICTIONARY_INCLUDE_079 - test("VMALL_DICTIONARY_INCLUDE_079", Include) { + //TABLE_DICTIONARY_INCLUDE_079 + test("TABLE_DICTIONARY_INCLUDE_079", Include) { - checkAnswer(s"""Select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE""", - s"""Select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_079") + checkAnswer(s"""Select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE""", + s"""Select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_079") } - //VMALL_DICTIONARY_INCLUDE_080 - test("VMALL_DICTIONARY_INCLUDE_080", Include) { + //TABLE_DICTIONARY_INCLUDE_080 + test("TABLE_DICTIONARY_INCLUDE_080", Include) { - checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT Latest_DAY) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_080") + checkAnswer(s"""select count(DISTINCT Latest_DAY) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT Latest_DAY) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_080") } - //VMALL_DICTIONARY_INCLUDE_081 - test("VMALL_DICTIONARY_INCLUDE_081", Include) { + //TABLE_DICTIONARY_INCLUDE_081 + test("TABLE_DICTIONARY_INCLUDE_081", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from VMALL_DICTIONARY_INCLUDE group by Latest_DAY order by a""", - s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive group by Latest_DAY order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_081") + checkAnswer(s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from TABLE_DICTIONARY_INCLUDE group by Latest_DAY order by a""", + s"""select sum(Latest_DAY)+10 as a ,Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive group by Latest_DAY order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_081") } - //VMALL_DICTIONARY_INCLUDE_082 - test("VMALL_DICTIONARY_INCLUDE_082", Include) { + //TABLE_DICTIONARY_INCLUDE_082 + test("TABLE_DICTIONARY_INCLUDE_082", Include) { - checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from VMALL_DICTIONARY_INCLUDE""", - s"""select max(Latest_DAY),min(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_082") + checkAnswer(s"""select max(Latest_DAY),min(Latest_DAY) from TABLE_DICTIONARY_INCLUDE""", + s"""select max(Latest_DAY),min(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_082") } - //VMALL_DICTIONARY_INCLUDE_083 - test("VMALL_DICTIONARY_INCLUDE_083", Include) { + //TABLE_DICTIONARY_INCLUDE_083 + test("TABLE_DICTIONARY_INCLUDE_083", Include) { - checkAnswer(s"""select sum(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_083") + checkAnswer(s"""select sum(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_083") } - //VMALL_DICTIONARY_INCLUDE_084 - test("VMALL_DICTIONARY_INCLUDE_084", Include) { + //TABLE_DICTIONARY_INCLUDE_084 + test("TABLE_DICTIONARY_INCLUDE_084", Include) { - checkAnswer(s"""select avg(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE""", - s"""select avg(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_084") + checkAnswer(s"""select avg(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE""", + s"""select avg(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_084") } - //VMALL_DICTIONARY_INCLUDE_085 - test("VMALL_DICTIONARY_INCLUDE_085", Include) { + //TABLE_DICTIONARY_INCLUDE_085 + test("TABLE_DICTIONARY_INCLUDE_085", Include) { - checkAnswer(s"""select min(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE""", - s"""select min(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_085") + checkAnswer(s"""select min(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE""", + s"""select min(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_085") } - //VMALL_DICTIONARY_INCLUDE_086 - test("VMALL_DICTIONARY_INCLUDE_086", Include) { + //TABLE_DICTIONARY_INCLUDE_086 + test("TABLE_DICTIONARY_INCLUDE_086", Include) { - sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select variance(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_087 - test("VMALL_DICTIONARY_INCLUDE_087", Include) { + //TABLE_DICTIONARY_INCLUDE_087 + test("TABLE_DICTIONARY_INCLUDE_087", Include) { - sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_pop(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_088 - test("VMALL_DICTIONARY_INCLUDE_088", Include) { + //TABLE_DICTIONARY_INCLUDE_088 + test("TABLE_DICTIONARY_INCLUDE_088", Include) { - sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select var_samp(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_089 - test("VMALL_DICTIONARY_INCLUDE_089", Include) { + //TABLE_DICTIONARY_INCLUDE_089 + test("TABLE_DICTIONARY_INCLUDE_089", Include) { - sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_pop(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_090 - test("VMALL_DICTIONARY_INCLUDE_090", Include) { + //TABLE_DICTIONARY_INCLUDE_090 + test("TABLE_DICTIONARY_INCLUDE_090", Include) { - sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select stddev_samp(Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_091 - test("VMALL_DICTIONARY_INCLUDE_091", Include) { + //TABLE_DICTIONARY_INCLUDE_091 + test("TABLE_DICTIONARY_INCLUDE_091", Include) { - sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_pop(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_092 - test("VMALL_DICTIONARY_INCLUDE_092", Include) { + //TABLE_DICTIONARY_INCLUDE_092 + test("TABLE_DICTIONARY_INCLUDE_092", Include) { - sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select covar_samp(Latest_DAY,Latest_DAY) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_093 - test("VMALL_DICTIONARY_INCLUDE_093", Include) { + //TABLE_DICTIONARY_INCLUDE_093 + test("TABLE_DICTIONARY_INCLUDE_093", Include) { - checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select corr(Latest_DAY,Latest_DAY) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_093") + checkAnswer(s"""select corr(Latest_DAY,Latest_DAY) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select corr(Latest_DAY,Latest_DAY) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_093") } - //VMALL_DICTIONARY_INCLUDE_094 - test("VMALL_DICTIONARY_INCLUDE_094", Include) { + //TABLE_DICTIONARY_INCLUDE_094 + test("TABLE_DICTIONARY_INCLUDE_094", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_095 - test("VMALL_DICTIONARY_INCLUDE_095", Include) { + //TABLE_DICTIONARY_INCLUDE_095 + test("TABLE_DICTIONARY_INCLUDE_095", Include) { - sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,0.2,5) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_096 - test("VMALL_DICTIONARY_INCLUDE_096", Include) { + //TABLE_DICTIONARY_INCLUDE_096 + test("TABLE_DICTIONARY_INCLUDE_096", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99)) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_097 - test("VMALL_DICTIONARY_INCLUDE_097", Include) { + //TABLE_DICTIONARY_INCLUDE_097 + test("TABLE_DICTIONARY_INCLUDE_097", Include) { - sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select percentile_approx(Latest_DAY,array(0.2,0.3,0.99),5) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_098 - test("VMALL_DICTIONARY_INCLUDE_098", Include) { + //TABLE_DICTIONARY_INCLUDE_098 + test("TABLE_DICTIONARY_INCLUDE_098", Include) { - sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select histogram_numeric(Latest_DAY,2) as a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_099 - test("VMALL_DICTIONARY_INCLUDE_099", Include) { + //TABLE_DICTIONARY_INCLUDE_099 + test("TABLE_DICTIONARY_INCLUDE_099", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from VMALL_DICTIONARY_INCLUDE order by a""", - s"""select Latest_DAY, Latest_DAY+ 10 as a from VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_099") + checkAnswer(s"""select Latest_DAY, Latest_DAY+ 10 as a from TABLE_DICTIONARY_INCLUDE order by a""", + s"""select Latest_DAY, Latest_DAY+ 10 as a from TABLE_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_099") } - //VMALL_DICTIONARY_INCLUDE_100 - test("VMALL_DICTIONARY_INCLUDE_100", Include) { + //TABLE_DICTIONARY_INCLUDE_100 + test("TABLE_DICTIONARY_INCLUDE_100", Include) { - checkAnswer(s"""select min(Latest_DAY) a, max(Latest_DAY+ 10) Total from VMALL_DICTIONARY_INCLUDE group by channelsId order by a,Total""", - s"""select min(Latest_DAY) a, max(Latest_DAY+ 10) Total from VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by a,Total""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_100") + checkAnswer(s"""select min(Latest_DAY) a, max(Latest_DAY+ 10) Total from TABLE_DICTIONARY_INCLUDE group by channelsId order by a,Total""", + s"""select min(Latest_DAY) a, max(Latest_DAY+ 10) Total from TABLE_DICTIONARY_INCLUDE_hive group by channelsId order by a,Total""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_100") } - //VMALL_DICTIONARY_INCLUDE_101 - test("VMALL_DICTIONARY_INCLUDE_101", Include) { + //TABLE_DICTIONARY_INCLUDE_101 + test("TABLE_DICTIONARY_INCLUDE_101", Include) { - sql(s"""select last(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select last(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE order by a""").collect } - //VMALL_DICTIONARY_INCLUDE_102 - test("VMALL_DICTIONARY_INCLUDE_102", Include) { + //TABLE_DICTIONARY_INCLUDE_102 + test("TABLE_DICTIONARY_INCLUDE_102", Include) { - sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect + sql(s"""select FIRST(Latest_DAY) a from (select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY) t""").collect } - //VMALL_DICTIONARY_INCLUDE_103 - test("VMALL_DICTIONARY_INCLUDE_103", Include) { + //TABLE_DICTIONARY_INCLUDE_103 + test("TABLE_DICTIONARY_INCLUDE_103", Include) { - checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE group by Latest_DAY order by Latest_DAY""", - s"""select Latest_DAY,count(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_103") + checkAnswer(s"""select Latest_DAY,count(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE group by Latest_DAY order by Latest_DAY""", + s"""select Latest_DAY,count(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE_hive group by Latest_DAY order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_103") } - //VMALL_DICTIONARY_INCLUDE_104 - test("VMALL_DICTIONARY_INCLUDE_104", Include) { + //TABLE_DICTIONARY_INCLUDE_104 + test("TABLE_DICTIONARY_INCLUDE_104", Include) { - checkAnswer(s"""select Lower(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE order by a""", - s"""select Lower(Latest_DAY) a from VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_104") + checkAnswer(s"""select Lower(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE order by a""", + s"""select Lower(Latest_DAY) a from TABLE_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_104") } - //VMALL_DICTIONARY_INCLUDE_105 - test("VMALL_DICTIONARY_INCLUDE_105", Include) { + //TABLE_DICTIONARY_INCLUDE_105 + test("TABLE_DICTIONARY_INCLUDE_105", Include) { - checkAnswer(s"""select distinct Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY""", - s"""select distinct Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_105") + checkAnswer(s"""select distinct Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY""", + s"""select distinct Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_105") } - //VMALL_DICTIONARY_INCLUDE_106 - test("VMALL_DICTIONARY_INCLUDE_106", Include) { + //TABLE_DICTIONARY_INCLUDE_106 + test("TABLE_DICTIONARY_INCLUDE_106", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE order by Latest_DAY limit 101""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive order by Latest_DAY limit 101""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_106") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE order by Latest_DAY limit 101""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive order by Latest_DAY limit 101""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_106") } - //VMALL_DICTIONARY_INCLUDE_107 - test("VMALL_DICTIONARY_INCLUDE_107", Include) { + //TABLE_DICTIONARY_INCLUDE_107 + test("TABLE_DICTIONARY_INCLUDE_107", Include) { - checkAnswer(s"""select Latest_DAY as a from VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select Latest_DAY as a from VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_107") + checkAnswer(s"""select Latest_DAY as a from TABLE_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select Latest_DAY as a from TABLE_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_107") } - //VMALL_DICTIONARY_INCLUDE_108 - test("VMALL_DICTIONARY_INCLUDE_108", Include) { + //TABLE_DICTIONARY_INCLUDE_108 + test("TABLE_DICTIONARY_INCLUDE_108", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_108") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where (Latest_DAY == 1234567890123450.0000000000) and (imei=='1AA1')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_108") } - //VMALL_DICTIONARY_INCLUDE_109 - test("VMALL_DICTIONARY_INCLUDE_109", Include) { + //TABLE_DICTIONARY_INCLUDE_109 + test("TABLE_DICTIONARY_INCLUDE_109", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_109") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_109") } - //VMALL_DICTIONARY_INCLUDE_110 - test("VMALL_DICTIONARY_INCLUDE_110", Include) { + //TABLE_DICTIONARY_INCLUDE_110 + test("TABLE_DICTIONARY_INCLUDE_110", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_110") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_110") } - //VMALL_DICTIONARY_INCLUDE_111 - test("VMALL_DICTIONARY_INCLUDE_111", Include) { + //TABLE_DICTIONARY_INCLUDE_111 + test("TABLE_DICTIONARY_INCLUDE_111", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_111") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY !=1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_111") } - //VMALL_DICTIONARY_INCLUDE_112 - test("VMALL_DICTIONARY_INCLUDE_112", Include) { + //TABLE_DICTIONARY_INCLUDE_112 + test("TABLE_DICTIONARY_INCLUDE_112", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_112") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY >1234567890123450.0000000000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_112") } - //VMALL_DICTIONARY_INCLUDE_113 - test("VMALL_DICTIONARY_INCLUDE_113", Include) { + //TABLE_DICTIONARY_INCLUDE_113 + test("TABLE_DICTIONARY_INCLUDE_113", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY<>Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_113") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY<>Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY<>Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_113") } - //VMALL_DICTIONARY_INCLUDE_114 - test("VMALL_DICTIONARY_INCLUDE_114", Include) { + //TABLE_DICTIONARY_INCLUDE_114 + test("TABLE_DICTIONARY_INCLUDE_114", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_114") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY != Latest_areaId order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY != Latest_areaId order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_114") } - //VMALL_DICTIONARY_INCLUDE_115 - test("VMALL_DICTIONARY_INCLUDE_115", Include) { + //TABLE_DICTIONARY_INCLUDE_115 + test("TABLE_DICTIONARY_INCLUDE_115", Include) { - checkAnswer(s"""select Latest_DAY, Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_118") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY >1000 order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY >1000 order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_118") } - //VMALL_DICTIONARY_INCLUDE_119 - test("VMALL_DICTIONARY_INCLUDE_119", Include) { + //TABLE_DICTIONARY_INCLUDE_119 + test("TABLE_DICTIONARY_INCLUDE_119", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NULL order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_119") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY IS NULL order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY IS NULL order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_119") } - //VMALL_DICTIONARY_INCLUDE_120 - test("VMALL_DICTIONARY_INCLUDE_120", Include) { + //TABLE_DICTIONARY_INCLUDE_120 + test("TABLE_DICTIONARY_INCLUDE_120", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_120") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY IS NOT NULL order by Latest_DAY""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY IS NOT NULL order by Latest_DAY""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_120") } - //VMALL_DICTIONARY_INCLUDE_121 - test("VMALL_DICTIONARY_INCLUDE_121", Include) { + //TABLE_DICTIONARY_INCLUDE_121 + test("TABLE_DICTIONARY_INCLUDE_121", Include) { - checkAnswer(s"""Select count(gamePointId) from VMALL_DICTIONARY_INCLUDE""", - s"""Select count(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_121") + checkAnswer(s"""Select count(gamePointId) from TABLE_DICTIONARY_INCLUDE""", + s"""Select count(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_121") } - //VMALL_DICTIONARY_INCLUDE_122 - test("VMALL_DICTIONARY_INCLUDE_122", Include) { + //TABLE_DICTIONARY_INCLUDE_122 + test("TABLE_DICTIONARY_INCLUDE_122", Include) { - checkAnswer(s"""select count(DISTINCT gamePointId) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT gamePointId) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_122") + checkAnswer(s"""select count(DISTINCT gamePointId) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT gamePointId) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_122") } - //VMALL_DICTIONARY_INCLUDE_123 - test("VMALL_DICTIONARY_INCLUDE_123", Include) { + //TABLE_DICTIONARY_INCLUDE_123 + test("TABLE_DICTIONARY_INCLUDE_123", Include) { - checkAnswer(s"""select sum(gamePointId)+10 as a ,gamePointId from VMALL_DICTIONARY_INCLUDE group by gamePointId order by a""", - s"""select sum(gamePointId)+10 as a ,gamePointId from VMALL_DICTIONARY_INCLUDE_hive group by gamePointId order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_123") + checkAnswer(s"""select sum(gamePointId)+10 as a ,gamePointId from TABLE_DICTIONARY_INCLUDE group by gamePointId order by a""", + s"""select sum(gamePointId)+10 as a ,gamePointId from TABLE_DICTIONARY_INCLUDE_hive group by gamePointId order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_123") } - //VMALL_DICTIONARY_INCLUDE_124 - test("VMALL_DICTIONARY_INCLUDE_124", Include) { + //TABLE_DICTIONARY_INCLUDE_124 + test("TABLE_DICTIONARY_INCLUDE_124", Include) { - checkAnswer(s"""select max(gamePointId),min(gamePointId) from VMALL_DICTIONARY_INCLUDE""", - s"""select max(gamePointId),min(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_124") + checkAnswer(s"""select max(gamePointId),min(gamePointId) from TABLE_DICTIONARY_INCLUDE""", + s"""select max(gamePointId),min(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_124") } - //VMALL_DICTIONARY_INCLUDE_125 - test("VMALL_DICTIONARY_INCLUDE_125", Include) { + //TABLE_DICTIONARY_INCLUDE_125 + test("TABLE_DICTIONARY_INCLUDE_125", Include) { - checkAnswer(s"""select sum(gamePointId) a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamePointId) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_125") + checkAnswer(s"""select sum(gamePointId) a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamePointId) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_125") } - //VMALL_DICTIONARY_INCLUDE_126 - test("VMALL_DICTIONARY_INCLUDE_126", Include) { + //TABLE_DICTIONARY_INCLUDE_126 + test("TABLE_DICTIONARY_INCLUDE_126", Include) { - checkAnswer(s"""select avg(gamePointId) a from VMALL_DICTIONARY_INCLUDE""", - s"""select avg(gamePointId) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_126") + checkAnswer(s"""select avg(gamePointId) a from TABLE_DICTIONARY_INCLUDE""", + s"""select avg(gamePointId) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_126") } - //VMALL_DICTIONARY_INCLUDE_127 - test("VMALL_DICTIONARY_INCLUDE_127", Include) { + //TABLE_DICTIONARY_INCLUDE_127 + test("TABLE_DICTIONARY_INCLUDE_127", Include) { - checkAnswer(s"""select min(gamePointId) a from VMALL_DICTIONARY_INCLUDE""", - s"""select min(gamePointId) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_127") + checkAnswer(s"""select min(gamePointId) a from TABLE_DICTIONARY_INCLUDE""", + s"""select min(gamePointId) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_127") } - //VMALL_DICTIONARY_INCLUDE_128 - test("VMALL_DICTIONARY_INCLUDE_128", Include) { + //TABLE_DICTIONARY_INCLUDE_128 + test("TABLE_DICTIONARY_INCLUDE_128", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_129 - test("VMALL_DICTIONARY_INCLUDE_129", Include) { + //TABLE_DICTIONARY_INCLUDE_129 + test("TABLE_DICTIONARY_INCLUDE_129", Include) { - sql(s"""select var_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select var_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_130 - test("VMALL_DICTIONARY_INCLUDE_130", Include) { + //TABLE_DICTIONARY_INCLUDE_130 + test("TABLE_DICTIONARY_INCLUDE_130", Include) { - sql(s"""select var_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select var_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_131 - test("VMALL_DICTIONARY_INCLUDE_131", Include) { + //TABLE_DICTIONARY_INCLUDE_131 + test("TABLE_DICTIONARY_INCLUDE_131", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_132 - test("VMALL_DICTIONARY_INCLUDE_132", Include) { + //TABLE_DICTIONARY_INCLUDE_132 + test("TABLE_DICTIONARY_INCLUDE_132", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_133 - test("VMALL_DICTIONARY_INCLUDE_133", Include) { + //TABLE_DICTIONARY_INCLUDE_133 + test("TABLE_DICTIONARY_INCLUDE_133", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_134 - test("VMALL_DICTIONARY_INCLUDE_134", Include) { + //TABLE_DICTIONARY_INCLUDE_134 + test("TABLE_DICTIONARY_INCLUDE_134", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_135 - test("VMALL_DICTIONARY_INCLUDE_135", Include) { + //TABLE_DICTIONARY_INCLUDE_135 + test("TABLE_DICTIONARY_INCLUDE_135", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_135") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_135") } - //VMALL_DICTIONARY_INCLUDE_136 - test("VMALL_DICTIONARY_INCLUDE_136", Include) { + //TABLE_DICTIONARY_INCLUDE_136 + test("TABLE_DICTIONARY_INCLUDE_136", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_137 - test("VMALL_DICTIONARY_INCLUDE_137", Include) { + //TABLE_DICTIONARY_INCLUDE_137 + test("TABLE_DICTIONARY_INCLUDE_137", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_138 - test("VMALL_DICTIONARY_INCLUDE_138", Include) { + //TABLE_DICTIONARY_INCLUDE_138 + test("TABLE_DICTIONARY_INCLUDE_138", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_139 - test("VMALL_DICTIONARY_INCLUDE_139", Include) { + //TABLE_DICTIONARY_INCLUDE_139 + test("TABLE_DICTIONARY_INCLUDE_139", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_140 - test("VMALL_DICTIONARY_INCLUDE_140", Include) { + //TABLE_DICTIONARY_INCLUDE_140 + test("TABLE_DICTIONARY_INCLUDE_140", Include) { - sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select histogram_numeric(gamePointId,2) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_141 - test("VMALL_DICTIONARY_INCLUDE_141", Include) { + //TABLE_DICTIONARY_INCLUDE_141 + test("TABLE_DICTIONARY_INCLUDE_141", Include) { - checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from VMALL_DICTIONARY_INCLUDE order by a""", - s"""select gamePointId, gamePointId+ 10 as a from VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_141") + checkAnswer(s"""select gamePointId, gamePointId+ 10 as a from TABLE_DICTIONARY_INCLUDE order by a""", + s"""select gamePointId, gamePointId+ 10 as a from TABLE_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_141") } - //VMALL_DICTIONARY_INCLUDE_142 - test("VMALL_DICTIONARY_INCLUDE_142", Include) { + //TABLE_DICTIONARY_INCLUDE_142 + test("TABLE_DICTIONARY_INCLUDE_142", Include) { - checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from VMALL_DICTIONARY_INCLUDE group by channelsId order by Total""", - s"""select min(gamePointId), max(gamePointId+ 10) Total from VMALL_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_142") + checkAnswer(s"""select min(gamePointId), max(gamePointId+ 10) Total from TABLE_DICTIONARY_INCLUDE group by channelsId order by Total""", + s"""select min(gamePointId), max(gamePointId+ 10) Total from TABLE_DICTIONARY_INCLUDE_hive group by channelsId order by Total""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_142") } - //VMALL_DICTIONARY_INCLUDE_143 - test("VMALL_DICTIONARY_INCLUDE_143", Include) { + //TABLE_DICTIONARY_INCLUDE_143 + test("TABLE_DICTIONARY_INCLUDE_143", Include) { - sql(s"""select last(gamePointId) a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select last(gamePointId) a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_144 - test("VMALL_DICTIONARY_INCLUDE_144", Include) { + //TABLE_DICTIONARY_INCLUDE_144 + test("TABLE_DICTIONARY_INCLUDE_144", Include) { - sql(s"""select FIRST(gamePointId) a from VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select FIRST(gamePointId) a from TABLE_DICTIONARY_INCLUDE order by a""").collect } - //VMALL_DICTIONARY_INCLUDE_145 - test("VMALL_DICTIONARY_INCLUDE_145", Include) { + //TABLE_DICTIONARY_INCLUDE_145 + test("TABLE_DICTIONARY_INCLUDE_145", Include) { - checkAnswer(s"""select gamePointId,count(gamePointId) a from VMALL_DICTIONARY_INCLUDE group by gamePointId order by gamePointId""", - s"""select gamePointId,count(gamePointId) a from VMALL_DICTIONARY_INCLUDE_hive group by gamePointId order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_145") + checkAnswer(s"""select gamePointId,count(gamePointId) a from TABLE_DICTIONARY_INCLUDE group by gamePointId order by gamePointId""", + s"""select gamePointId,count(gamePointId) a from TABLE_DICTIONARY_INCLUDE_hive group by gamePointId order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_145") } - //VMALL_DICTIONARY_INCLUDE_146 - test("VMALL_DICTIONARY_INCLUDE_146", Include) { + //TABLE_DICTIONARY_INCLUDE_146 + test("TABLE_DICTIONARY_INCLUDE_146", Include) { - checkAnswer(s"""select Lower(gamePointId) a from VMALL_DICTIONARY_INCLUDE order by gamePointId""", - s"""select Lower(gamePointId) a from VMALL_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_146") + checkAnswer(s"""select Lower(gamePointId) a from TABLE_DICTIONARY_INCLUDE order by gamePointId""", + s"""select Lower(gamePointId) a from TABLE_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_146") } - //VMALL_DICTIONARY_INCLUDE_147 - test("VMALL_DICTIONARY_INCLUDE_147", Include) { + //TABLE_DICTIONARY_INCLUDE_147 + test("TABLE_DICTIONARY_INCLUDE_147", Include) { - checkAnswer(s"""select distinct gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId""", - s"""select distinct gamePointId from VMALL_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_147") + checkAnswer(s"""select distinct gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId""", + s"""select distinct gamePointId from TABLE_DICTIONARY_INCLUDE_hive order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_147") } - //VMALL_DICTIONARY_INCLUDE_148 - test("VMALL_DICTIONARY_INCLUDE_148", Include) { + //TABLE_DICTIONARY_INCLUDE_148 + test("TABLE_DICTIONARY_INCLUDE_148", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId limit 101""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive order by gamePointId limit 101""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_148") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId limit 101""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive order by gamePointId limit 101""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_148") } - //VMALL_DICTIONARY_INCLUDE_149 - test("VMALL_DICTIONARY_INCLUDE_149", Include) { + //TABLE_DICTIONARY_INCLUDE_149 + test("TABLE_DICTIONARY_INCLUDE_149", Include) { - checkAnswer(s"""select gamePointId as a from VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select gamePointId as a from VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_149") + checkAnswer(s"""select gamePointId as a from TABLE_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select gamePointId as a from TABLE_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_149") } - //VMALL_DICTIONARY_INCLUDE_150 - test("VMALL_DICTIONARY_INCLUDE_150", Include) { + //TABLE_DICTIONARY_INCLUDE_150 + test("TABLE_DICTIONARY_INCLUDE_150", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_150") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where (gamePointId == 4.70133553923674E43) and (imei=='1AA100084')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_150") } - //VMALL_DICTIONARY_INCLUDE_151 - test("VMALL_DICTIONARY_INCLUDE_151", Include) { + //TABLE_DICTIONARY_INCLUDE_151 + test("TABLE_DICTIONARY_INCLUDE_151", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_151") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43 order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43 order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_151") } - //VMALL_DICTIONARY_INCLUDE_152 - test("VMALL_DICTIONARY_INCLUDE_152", Include) { + //TABLE_DICTIONARY_INCLUDE_152 + test("TABLE_DICTIONARY_INCLUDE_152", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_152") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_152") } - //VMALL_DICTIONARY_INCLUDE_153 - test("VMALL_DICTIONARY_INCLUDE_153", Include) { + //TABLE_DICTIONARY_INCLUDE_153 + test("TABLE_DICTIONARY_INCLUDE_153", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_153") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId !=4.70133553923674E43""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId !=4.70133553923674E43""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_153") } - //VMALL_DICTIONARY_INCLUDE_154 - test("VMALL_DICTIONARY_INCLUDE_154", Include) { + //TABLE_DICTIONARY_INCLUDE_154 + test("TABLE_DICTIONARY_INCLUDE_154", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId >4.70133553923674E43""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_154") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId >4.70133553923674E43""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId >4.70133553923674E43""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_154") } - //VMALL_DICTIONARY_INCLUDE_155 - test("VMALL_DICTIONARY_INCLUDE_155", Include) { + //TABLE_DICTIONARY_INCLUDE_155 + test("TABLE_DICTIONARY_INCLUDE_155", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId<>gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId<>gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_155") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId<>gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId<>gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_155") } - //VMALL_DICTIONARY_INCLUDE_156 - test("VMALL_DICTIONARY_INCLUDE_156", Include) { + //TABLE_DICTIONARY_INCLUDE_156 + test("TABLE_DICTIONARY_INCLUDE_156", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId != Latest_areaId order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_156") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId != Latest_areaId order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId != Latest_areaId order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_156") } - //VMALL_DICTIONARY_INCLUDE_157 - test("VMALL_DICTIONARY_INCLUDE_157", Include) { + //TABLE_DICTIONARY_INCLUDE_157 + test("TABLE_DICTIONARY_INCLUDE_157", Include) { - checkAnswer(s"""select gamePointId, gamePointId from VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_160") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId >1000 order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId >1000 order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_160") } - //VMALL_DICTIONARY_INCLUDE_161 - test("VMALL_DICTIONARY_INCLUDE_161", Include) { + //TABLE_DICTIONARY_INCLUDE_161 + test("TABLE_DICTIONARY_INCLUDE_161", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId IS NULL order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_161") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId IS NULL order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId IS NULL order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_161") } - //VMALL_DICTIONARY_INCLUDE_162 - test("VMALL_DICTIONARY_INCLUDE_162", Include) { + //TABLE_DICTIONARY_INCLUDE_162 + test("TABLE_DICTIONARY_INCLUDE_162", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId IS NOT NULL order by gamePointId""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_162") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId IS NOT NULL order by gamePointId""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId IS NOT NULL order by gamePointId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_162") } - //VMALL_DICTIONARY_INCLUDE_163 - test("VMALL_DICTIONARY_INCLUDE_163", Include) { + //TABLE_DICTIONARY_INCLUDE_163 + test("TABLE_DICTIONARY_INCLUDE_163", Include) { - checkAnswer(s"""Select count(productionDate) from VMALL_DICTIONARY_INCLUDE""", - s"""Select count(productionDate) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_163") + checkAnswer(s"""Select count(productionDate) from TABLE_DICTIONARY_INCLUDE""", + s"""Select count(productionDate) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_163") } - //VMALL_DICTIONARY_INCLUDE_164 - test("VMALL_DICTIONARY_INCLUDE_164", Include) { + //TABLE_DICTIONARY_INCLUDE_164 + test("TABLE_DICTIONARY_INCLUDE_164", Include) { - checkAnswer(s"""select count(DISTINCT productionDate) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select count(DISTINCT productionDate) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_164") + checkAnswer(s"""select count(DISTINCT productionDate) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select count(DISTINCT productionDate) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_164") } - //VMALL_DICTIONARY_INCLUDE_165 - test("VMALL_DICTIONARY_INCLUDE_165", Include) { + //TABLE_DICTIONARY_INCLUDE_165 + test("TABLE_DICTIONARY_INCLUDE_165", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from VMALL_DICTIONARY_INCLUDE group by productionDate order by productionDate""", - s"""select sum(productionDate)+10 as a ,productionDate from VMALL_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_165") + checkAnswer(s"""select sum(productionDate)+10 as a ,productionDate from TABLE_DICTIONARY_INCLUDE group by productionDate order by productionDate""", + s"""select sum(productionDate)+10 as a ,productionDate from TABLE_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_165") } - //VMALL_DICTIONARY_INCLUDE_166 - test("VMALL_DICTIONARY_INCLUDE_166", Include) { + //TABLE_DICTIONARY_INCLUDE_166 + test("TABLE_DICTIONARY_INCLUDE_166", Include) { - checkAnswer(s"""select max(productionDate),min(productionDate) from VMALL_DICTIONARY_INCLUDE""", - s"""select max(productionDate),min(productionDate) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_166") + checkAnswer(s"""select max(productionDate),min(productionDate) from TABLE_DICTIONARY_INCLUDE""", + s"""select max(productionDate),min(productionDate) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_166") } - //VMALL_DICTIONARY_INCLUDE_167 - test("VMALL_DICTIONARY_INCLUDE_167", Include) { + //TABLE_DICTIONARY_INCLUDE_167 + test("TABLE_DICTIONARY_INCLUDE_167", Include) { - checkAnswer(s"""select sum(productionDate) a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_167") + checkAnswer(s"""select sum(productionDate) a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_167") } - //VMALL_DICTIONARY_INCLUDE_168 - test("VMALL_DICTIONARY_INCLUDE_168", Include) { + //TABLE_DICTIONARY_INCLUDE_168 + test("TABLE_DICTIONARY_INCLUDE_168", Include) { - checkAnswer(s"""select avg(productionDate) a from VMALL_DICTIONARY_INCLUDE""", - s"""select avg(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_168") + checkAnswer(s"""select avg(productionDate) a from TABLE_DICTIONARY_INCLUDE""", + s"""select avg(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_168") } - //VMALL_DICTIONARY_INCLUDE_169 - test("VMALL_DICTIONARY_INCLUDE_169", Include) { + //TABLE_DICTIONARY_INCLUDE_169 + test("TABLE_DICTIONARY_INCLUDE_169", Include) { - checkAnswer(s"""select min(productionDate) a from VMALL_DICTIONARY_INCLUDE""", - s"""select min(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_169") + checkAnswer(s"""select min(productionDate) a from TABLE_DICTIONARY_INCLUDE""", + s"""select min(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_169") } - //VMALL_DICTIONARY_INCLUDE_170 - test("VMALL_DICTIONARY_INCLUDE_170", Include) { + //TABLE_DICTIONARY_INCLUDE_170 + test("TABLE_DICTIONARY_INCLUDE_170", Include) { - sql(s"""select variance(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select variance(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_171 - ignore("VMALL_DICTIONARY_INCLUDE_171", Include) { + //TABLE_DICTIONARY_INCLUDE_171 + ignore("TABLE_DICTIONARY_INCLUDE_171", Include) { - checkAnswer(s"""select var_pop(gamePointId) as a from (select * from VMALL_DICTIONARY_INCLUDE order by gamePointId)""", - s"""select var_pop(gamePointId) as a from (select * from VMALL_DICTIONARY_INCLUDE_hive order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_171") + checkAnswer(s"""select var_pop(gamePointId) as a from (select * from TABLE_DICTIONARY_INCLUDE order by gamePointId)""", + s"""select var_pop(gamePointId) as a from (select * from TABLE_DICTIONARY_INCLUDE_hive order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_171") } - //VMALL_DICTIONARY_INCLUDE_172 - ignore("VMALL_DICTIONARY_INCLUDE_172", Include) { + //TABLE_DICTIONARY_INCLUDE_172 + ignore("TABLE_DICTIONARY_INCLUDE_172", Include) { - checkAnswer(s"""select var_samp(gamePointId) as a from (select * from VMALL_DICTIONARY_INCLUDE order by gamePointId)""", - s"""select var_samp(gamePointId) as a from (select * from VMALL_DICTIONARY_INCLUDE_hive order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_172") + checkAnswer(s"""select var_samp(gamePointId) as a from (select * from TABLE_DICTIONARY_INCLUDE order by gamePointId)""", + s"""select var_samp(gamePointId) as a from (select * from TABLE_DICTIONARY_INCLUDE_hive order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_172") } - //VMALL_DICTIONARY_INCLUDE_173 - test("VMALL_DICTIONARY_INCLUDE_173", Include) { + //TABLE_DICTIONARY_INCLUDE_173 + test("TABLE_DICTIONARY_INCLUDE_173", Include) { - sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_pop(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_174 - test("VMALL_DICTIONARY_INCLUDE_174", Include) { + //TABLE_DICTIONARY_INCLUDE_174 + test("TABLE_DICTIONARY_INCLUDE_174", Include) { - sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select stddev_samp(gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_175 - test("VMALL_DICTIONARY_INCLUDE_175", Include) { + //TABLE_DICTIONARY_INCLUDE_175 + test("TABLE_DICTIONARY_INCLUDE_175", Include) { - sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_pop(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_176 - test("VMALL_DICTIONARY_INCLUDE_176", Include) { + //TABLE_DICTIONARY_INCLUDE_176 + test("TABLE_DICTIONARY_INCLUDE_176", Include) { - sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select covar_samp(gamePointId,gamePointId) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_177 - test("VMALL_DICTIONARY_INCLUDE_177", Include) { + //TABLE_DICTIONARY_INCLUDE_177 + test("TABLE_DICTIONARY_INCLUDE_177", Include) { - checkAnswer(s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_INCLUDE""", - s"""select corr(gamePointId,gamePointId) as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_177") + checkAnswer(s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_INCLUDE""", + s"""select corr(gamePointId,gamePointId) as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_177") } - //VMALL_DICTIONARY_INCLUDE_178 - test("VMALL_DICTIONARY_INCLUDE_178", Include) { + //TABLE_DICTIONARY_INCLUDE_178 + test("TABLE_DICTIONARY_INCLUDE_178", Include) { - sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_179 - test("VMALL_DICTIONARY_INCLUDE_179", Include) { + //TABLE_DICTIONARY_INCLUDE_179 + test("TABLE_DICTIONARY_INCLUDE_179", Include) { - sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,0.2,5) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_180 - test("VMALL_DICTIONARY_INCLUDE_180", Include) { + //TABLE_DICTIONARY_INCLUDE_180 + test("TABLE_DICTIONARY_INCLUDE_180", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99)) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_181 - test("VMALL_DICTIONARY_INCLUDE_181", Include) { + //TABLE_DICTIONARY_INCLUDE_181 + test("TABLE_DICTIONARY_INCLUDE_181", Include) { - sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from VMALL_DICTIONARY_INCLUDE order by gamePointId) t""").collect + sql(s"""select percentile_approx(gamePointId,array(0.2,0.3,0.99),5) as a from (select gamePointId from TABLE_DICTIONARY_INCLUDE order by gamePointId) t""").collect } - //VMALL_DICTIONARY_INCLUDE_182 - test("VMALL_DICTIONARY_INCLUDE_182", Include) { + //TABLE_DICTIONARY_INCLUDE_182 + test("TABLE_DICTIONARY_INCLUDE_182", Include) { - sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from VMALL_DICTIONARY_INCLUDE order by productionDate) t""").collect + sql(s"""select histogram_numeric(productionDate,2) as a from (select productionDate from TABLE_DICTIONARY_INCLUDE order by productionDate) t""").collect } - //VMALL_DICTIONARY_INCLUDE_183 - ignore("VMALL_DICTIONARY_INCLUDE_183", Include) { + //TABLE_DICTIONARY_INCLUDE_183 + ignore("TABLE_DICTIONARY_INCLUDE_183", Include) { - checkAnswer(s"""select last(productionDate) a from VMALL_DICTIONARY_INCLUDE order by a""", - s"""select last(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_183") + checkAnswer(s"""select last(productionDate) a from TABLE_DICTIONARY_INCLUDE order by a""", + s"""select last(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive order by a""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_183") } - //VMALL_DICTIONARY_INCLUDE_184 - test("VMALL_DICTIONARY_INCLUDE_184", Include) { + //TABLE_DICTIONARY_INCLUDE_184 + test("TABLE_DICTIONARY_INCLUDE_184", Include) { - sql(s"""select FIRST(productionDate) a from VMALL_DICTIONARY_INCLUDE order by a""").collect + sql(s"""select FIRST(productionDate) a from TABLE_DICTIONARY_INCLUDE order by a""").collect } - //VMALL_DICTIONARY_INCLUDE_185 - test("VMALL_DICTIONARY_INCLUDE_185", Include) { + //TABLE_DICTIONARY_INCLUDE_185 + test("TABLE_DICTIONARY_INCLUDE_185", Include) { - checkAnswer(s"""select productionDate,count(productionDate) a from VMALL_DICTIONARY_INCLUDE group by productionDate order by productionDate""", - s"""select productionDate,count(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_185") + checkAnswer(s"""select productionDate,count(productionDate) a from TABLE_DICTIONARY_INCLUDE group by productionDate order by productionDate""", + s"""select productionDate,count(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive group by productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_185") } - //VMALL_DICTIONARY_INCLUDE_186 - test("VMALL_DICTIONARY_INCLUDE_186", Include) { + //TABLE_DICTIONARY_INCLUDE_186 + test("TABLE_DICTIONARY_INCLUDE_186", Include) { - checkAnswer(s"""select Lower(productionDate) a from VMALL_DICTIONARY_INCLUDE order by productionDate""", - s"""select Lower(productionDate) a from VMALL_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_186") + checkAnswer(s"""select Lower(productionDate) a from TABLE_DICTIONARY_INCLUDE order by productionDate""", + s"""select Lower(productionDate) a from TABLE_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_186") } - //VMALL_DICTIONARY_INCLUDE_187 - test("VMALL_DICTIONARY_INCLUDE_187", Include) { + //TABLE_DICTIONARY_INCLUDE_187 + test("TABLE_DICTIONARY_INCLUDE_187", Include) { - checkAnswer(s"""select distinct productionDate from VMALL_DICTIONARY_INCLUDE order by productionDate""", - s"""select distinct productionDate from VMALL_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_187") + checkAnswer(s"""select distinct productionDate from TABLE_DICTIONARY_INCLUDE order by productionDate""", + s"""select distinct productionDate from TABLE_DICTIONARY_INCLUDE_hive order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_187") } - //VMALL_DICTIONARY_INCLUDE_188 - test("VMALL_DICTIONARY_INCLUDE_188", Include) { + //TABLE_DICTIONARY_INCLUDE_188 + test("TABLE_DICTIONARY_INCLUDE_188", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE order by productionDate limit 101""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive order by productionDate limit 101""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_188") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE order by productionDate limit 101""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive order by productionDate limit 101""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_188") } - //VMALL_DICTIONARY_INCLUDE_189 - test("VMALL_DICTIONARY_INCLUDE_189", Include) { + //TABLE_DICTIONARY_INCLUDE_189 + test("TABLE_DICTIONARY_INCLUDE_189", Include) { - checkAnswer(s"""select productionDate as a from VMALL_DICTIONARY_INCLUDE order by a asc limit 10""", - s"""select productionDate as a from VMALL_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_189") + checkAnswer(s"""select productionDate as a from TABLE_DICTIONARY_INCLUDE order by a asc limit 10""", + s"""select productionDate as a from TABLE_DICTIONARY_INCLUDE_hive order by a asc limit 10""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_189") } - //VMALL_DICTIONARY_INCLUDE_190 - test("VMALL_DICTIONARY_INCLUDE_190", Include) { + //TABLE_DICTIONARY_INCLUDE_190 + test("TABLE_DICTIONARY_INCLUDE_190", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_190") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where (productionDate == '2015-07-01 12:07:28.0') and (productionDate=='2015-07-01 12:07:28.0')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_190") } - //VMALL_DICTIONARY_INCLUDE_191 - test("VMALL_DICTIONARY_INCLUDE_191", Include) { + //TABLE_DICTIONARY_INCLUDE_191 + test("TABLE_DICTIONARY_INCLUDE_191", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_191") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_191") } - //VMALL_DICTIONARY_INCLUDE_192 - test("VMALL_DICTIONARY_INCLUDE_192", Include) { + //TABLE_DICTIONARY_INCLUDE_192 + test("TABLE_DICTIONARY_INCLUDE_192", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_192") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where (deviceInformationId=100 and deviceColor='1Device Color') OR (deviceInformationId=10 and deviceColor='0Device Color')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_192") } - //VMALL_DICTIONARY_INCLUDE_193 - test("VMALL_DICTIONARY_INCLUDE_193", Include) { + //TABLE_DICTIONARY_INCLUDE_193 + test("TABLE_DICTIONARY_INCLUDE_193", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_193") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate !='2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_193") } - //VMALL_DICTIONARY_INCLUDE_194 - test("VMALL_DICTIONARY_INCLUDE_194", Include) { + //TABLE_DICTIONARY_INCLUDE_194 + test("TABLE_DICTIONARY_INCLUDE_194", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_194") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate >'2015-07-01 12:07:28.0' order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_194") } - //VMALL_DICTIONARY_INCLUDE_195 - test("VMALL_DICTIONARY_INCLUDE_195", Include) { + //TABLE_DICTIONARY_INCLUDE_195 + test("TABLE_DICTIONARY_INCLUDE_195", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate<>productionDate order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_195") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate<>productionDate order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate<>productionDate order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_195") } - //VMALL_DICTIONARY_INCLUDE_196 - test("VMALL_DICTIONARY_INCLUDE_196", Include) { + //TABLE_DICTIONARY_INCLUDE_196 + test("TABLE_DICTIONARY_INCLUDE_196", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate != Latest_areaId order by productionDate""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_196") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate != Latest_areaId order by productionDate""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate != Latest_areaId order by productionDate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_196") } - //VMALL_DICTIONARY_INCLUDE_197 - test("VMALL_DICTIONARY_INCLUDE_197", Include) { + //TABLE_DICTIONARY_INCLUDE_197 + test("TABLE_DICTIONARY_INCLUDE_197", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where Latest_areaId100084 order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_235") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId >100084 order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId >100084 order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_235") } - //VMALL_DICTIONARY_INCLUDE_236 - test("VMALL_DICTIONARY_INCLUDE_236", Include) { + //TABLE_DICTIONARY_INCLUDE_236 + test("TABLE_DICTIONARY_INCLUDE_236", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_236") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId<>deviceInformationId order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId<>deviceInformationId order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_236") } - //VMALL_DICTIONARY_INCLUDE_237 - test("VMALL_DICTIONARY_INCLUDE_237", Include) { + //TABLE_DICTIONARY_INCLUDE_237 + test("TABLE_DICTIONARY_INCLUDE_237", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_237") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId != Latest_areaId order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId != Latest_areaId order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_237") } - //VMALL_DICTIONARY_INCLUDE_238 - test("VMALL_DICTIONARY_INCLUDE_238", Include) { + //TABLE_DICTIONARY_INCLUDE_238 + test("TABLE_DICTIONARY_INCLUDE_238", Include) { - checkAnswer(s"""select deviceInformationId, deviceInformationId from VMALL_DICTIONARY_INCLUDE where Latest_areaId1000 order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_241") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId >1000 order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId >1000 order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_241") } - //VMALL_DICTIONARY_INCLUDE_242 - test("VMALL_DICTIONARY_INCLUDE_242", Include) { + //TABLE_DICTIONARY_INCLUDE_242 + test("TABLE_DICTIONARY_INCLUDE_242", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId IS NULL order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_242") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId IS NULL order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId IS NULL order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_242") } - //VMALL_DICTIONARY_INCLUDE_243 - test("VMALL_DICTIONARY_INCLUDE_243", Include) { + //TABLE_DICTIONARY_INCLUDE_243 + test("TABLE_DICTIONARY_INCLUDE_243", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_243") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId IS NOT NULL order by deviceInformationId""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId IS NOT NULL order by deviceInformationId""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_243") } - //VMALL_DICTIONARY_INCLUDE_244 - test("VMALL_DICTIONARY_INCLUDE_244", Include) { + //TABLE_DICTIONARY_INCLUDE_244 + test("TABLE_DICTIONARY_INCLUDE_244", Include) { - checkAnswer(s"""select sum(imei)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_244") + checkAnswer(s"""select sum(imei)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(imei)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_244") } - //VMALL_DICTIONARY_INCLUDE_245 - test("VMALL_DICTIONARY_INCLUDE_245", Include) { + //TABLE_DICTIONARY_INCLUDE_245 + test("TABLE_DICTIONARY_INCLUDE_245", Include) { - checkAnswer(s"""select sum(imei)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_245") + checkAnswer(s"""select sum(imei)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(imei)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_245") } - //VMALL_DICTIONARY_INCLUDE_246 - test("VMALL_DICTIONARY_INCLUDE_246", Include) { + //TABLE_DICTIONARY_INCLUDE_246 + test("TABLE_DICTIONARY_INCLUDE_246", Include) { - checkAnswer(s"""select sum(imei)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_246") + checkAnswer(s"""select sum(imei)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(imei)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_246") } - //VMALL_DICTIONARY_INCLUDE_247 - test("VMALL_DICTIONARY_INCLUDE_247", Include) { + //TABLE_DICTIONARY_INCLUDE_247 + test("TABLE_DICTIONARY_INCLUDE_247", Include) { - checkAnswer(s"""select sum(imei)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(imei)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_247") + checkAnswer(s"""select sum(imei)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(imei)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_247") } - //VMALL_DICTIONARY_INCLUDE_248 - test("VMALL_DICTIONARY_INCLUDE_248", Include) { + //TABLE_DICTIONARY_INCLUDE_248 + test("TABLE_DICTIONARY_INCLUDE_248", Include) { - checkAnswer(s"""select sum(contractNumber)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_248") + checkAnswer(s"""select sum(contractNumber)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_248") } - //VMALL_DICTIONARY_INCLUDE_249 - test("VMALL_DICTIONARY_INCLUDE_249", Include) { + //TABLE_DICTIONARY_INCLUDE_249 + test("TABLE_DICTIONARY_INCLUDE_249", Include) { - checkAnswer(s"""select sum(contractNumber)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_249") + checkAnswer(s"""select sum(contractNumber)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_249") } - //VMALL_DICTIONARY_INCLUDE_250 - test("VMALL_DICTIONARY_INCLUDE_250", Include) { + //TABLE_DICTIONARY_INCLUDE_250 + test("TABLE_DICTIONARY_INCLUDE_250", Include) { - checkAnswer(s"""select sum(contractNumber)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_250") + checkAnswer(s"""select sum(contractNumber)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_250") } - //VMALL_DICTIONARY_INCLUDE_251 - test("VMALL_DICTIONARY_INCLUDE_251", Include) { + //TABLE_DICTIONARY_INCLUDE_251 + test("TABLE_DICTIONARY_INCLUDE_251", Include) { - checkAnswer(s"""select sum(contractNumber)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_251") + checkAnswer(s"""select sum(contractNumber)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_251") } - //VMALL_DICTIONARY_INCLUDE_252 - test("VMALL_DICTIONARY_INCLUDE_252", Include) { + //TABLE_DICTIONARY_INCLUDE_252 + test("TABLE_DICTIONARY_INCLUDE_252", Include) { - checkAnswer(s"""select sum(Latest_DAY)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_252") + checkAnswer(s"""select sum(Latest_DAY)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_252") } - //VMALL_DICTIONARY_INCLUDE_253 - test("VMALL_DICTIONARY_INCLUDE_253", Include) { + //TABLE_DICTIONARY_INCLUDE_253 + test("TABLE_DICTIONARY_INCLUDE_253", Include) { - checkAnswer(s"""select sum(Latest_DAY)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_253") + checkAnswer(s"""select sum(Latest_DAY)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_253") } - //VMALL_DICTIONARY_INCLUDE_254 - test("VMALL_DICTIONARY_INCLUDE_254", Include) { + //TABLE_DICTIONARY_INCLUDE_254 + test("TABLE_DICTIONARY_INCLUDE_254", Include) { - checkAnswer(s"""select sum(Latest_DAY)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_254") + checkAnswer(s"""select sum(Latest_DAY)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_254") } - //VMALL_DICTIONARY_INCLUDE_255 - test("VMALL_DICTIONARY_INCLUDE_255", Include) { + //TABLE_DICTIONARY_INCLUDE_255 + test("TABLE_DICTIONARY_INCLUDE_255", Include) { - checkAnswer(s"""select sum(Latest_DAY)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_DAY)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_255") + checkAnswer(s"""select sum(Latest_DAY)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_DAY)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_255") } - //VMALL_DICTIONARY_INCLUDE_256 - test("VMALL_DICTIONARY_INCLUDE_256", Include) { + //TABLE_DICTIONARY_INCLUDE_256 + test("TABLE_DICTIONARY_INCLUDE_256", Include) { - checkAnswer(s"""select sum(gamePointId)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamePointId)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_256") + checkAnswer(s"""select sum(gamePointId)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamePointId)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_256") } - //VMALL_DICTIONARY_INCLUDE_257 - test("VMALL_DICTIONARY_INCLUDE_257", Include) { + //TABLE_DICTIONARY_INCLUDE_257 + test("TABLE_DICTIONARY_INCLUDE_257", Include) { - checkAnswer(s"""select sum(gamePointId)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamePointId)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_257") + checkAnswer(s"""select sum(gamePointId)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamePointId)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_257") } - //VMALL_DICTIONARY_INCLUDE_258 - test("VMALL_DICTIONARY_INCLUDE_258", Include) { + //TABLE_DICTIONARY_INCLUDE_258 + test("TABLE_DICTIONARY_INCLUDE_258", Include) { - checkAnswer(s"""select sum(gamePointId)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamePointId)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_258") + checkAnswer(s"""select sum(gamePointId)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamePointId)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_258") } - //VMALL_DICTIONARY_INCLUDE_259 - test("VMALL_DICTIONARY_INCLUDE_259", Include) { + //TABLE_DICTIONARY_INCLUDE_259 + test("TABLE_DICTIONARY_INCLUDE_259", Include) { - checkAnswer(s"""select sum(gamePointId)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamePointId)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_259") + checkAnswer(s"""select sum(gamePointId)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamePointId)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_259") } - //VMALL_DICTIONARY_INCLUDE_260 - test("VMALL_DICTIONARY_INCLUDE_260", Include) { + //TABLE_DICTIONARY_INCLUDE_260 + test("TABLE_DICTIONARY_INCLUDE_260", Include) { - checkAnswer(s"""select sum(productionDate)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_260") + checkAnswer(s"""select sum(productionDate)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_260") } - //VMALL_DICTIONARY_INCLUDE_261 - test("VMALL_DICTIONARY_INCLUDE_261", Include) { + //TABLE_DICTIONARY_INCLUDE_261 + test("TABLE_DICTIONARY_INCLUDE_261", Include) { - checkAnswer(s"""select sum(productionDate)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_261") + checkAnswer(s"""select sum(productionDate)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_261") } - //VMALL_DICTIONARY_INCLUDE_262 - test("VMALL_DICTIONARY_INCLUDE_262", Include) { + //TABLE_DICTIONARY_INCLUDE_262 + test("TABLE_DICTIONARY_INCLUDE_262", Include) { - checkAnswer(s"""select sum(productionDate)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_262") + checkAnswer(s"""select sum(productionDate)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_262") } - //VMALL_DICTIONARY_INCLUDE_263 - test("VMALL_DICTIONARY_INCLUDE_263", Include) { + //TABLE_DICTIONARY_INCLUDE_263 + test("TABLE_DICTIONARY_INCLUDE_263", Include) { - checkAnswer(s"""select sum(productionDate)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_263") + checkAnswer(s"""select sum(productionDate)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_263") } - //VMALL_DICTIONARY_INCLUDE_264 - test("VMALL_DICTIONARY_INCLUDE_264", Include) { + //TABLE_DICTIONARY_INCLUDE_264 + test("TABLE_DICTIONARY_INCLUDE_264", Include) { - checkAnswer(s"""select sum(deviceInformationId)+10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)+10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_264") + checkAnswer(s"""select sum(deviceInformationId)+10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)+10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_264") } - //VMALL_DICTIONARY_INCLUDE_265 - test("VMALL_DICTIONARY_INCLUDE_265", Include) { + //TABLE_DICTIONARY_INCLUDE_265 + test("TABLE_DICTIONARY_INCLUDE_265", Include) { - checkAnswer(s"""select sum(deviceInformationId)*10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)*10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_265") + checkAnswer(s"""select sum(deviceInformationId)*10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)*10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_265") } - //VMALL_DICTIONARY_INCLUDE_266 - test("VMALL_DICTIONARY_INCLUDE_266", Include) { + //TABLE_DICTIONARY_INCLUDE_266 + test("TABLE_DICTIONARY_INCLUDE_266", Include) { - checkAnswer(s"""select sum(deviceInformationId)/10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)/10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_266") + checkAnswer(s"""select sum(deviceInformationId)/10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)/10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_266") } - //VMALL_DICTIONARY_INCLUDE_267 - test("VMALL_DICTIONARY_INCLUDE_267", Include) { + //TABLE_DICTIONARY_INCLUDE_267 + test("TABLE_DICTIONARY_INCLUDE_267", Include) { - checkAnswer(s"""select sum(deviceInformationId)-10 as a from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceInformationId)-10 as a from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_267") + checkAnswer(s"""select sum(deviceInformationId)-10 as a from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(deviceInformationId)-10 as a from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_267") } - //VMALL_DICTIONARY_INCLUDE_292 - test("VMALL_DICTIONARY_INCLUDE_292", Include) { + //TABLE_DICTIONARY_INCLUDE_292 + test("TABLE_DICTIONARY_INCLUDE_292", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE where productiondate LIKE '2015-09-30%'""", - s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_292") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE where productiondate LIKE '2015-09-30%'""", + s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate LIKE '2015-09-30%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_292") } - //VMALL_DICTIONARY_INCLUDE_293 - test("VMALL_DICTIONARY_INCLUDE_293", Include) { + //TABLE_DICTIONARY_INCLUDE_293 + test("TABLE_DICTIONARY_INCLUDE_293", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE where productiondate LIKE '% %'""", - s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '% %'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_293") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE where productiondate LIKE '% %'""", + s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate LIKE '% %'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_293") } - //VMALL_DICTIONARY_INCLUDE_294 - test("VMALL_DICTIONARY_INCLUDE_294", Include) { + //TABLE_DICTIONARY_INCLUDE_294 + test("TABLE_DICTIONARY_INCLUDE_294", Include) { - checkAnswer(s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE where productiondate LIKE '%12:07:28'""", - s"""SELECT productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_294") + checkAnswer(s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE where productiondate LIKE '%12:07:28'""", + s"""SELECT productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate LIKE '%12:07:28'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_294") } - //VMALL_DICTIONARY_INCLUDE_295 - test("VMALL_DICTIONARY_INCLUDE_295", Include) { + //TABLE_DICTIONARY_INCLUDE_295 + test("TABLE_DICTIONARY_INCLUDE_295", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_INCLUDE where contractnumber like '922337204%' """, - s"""select contractnumber from VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '922337204%' """, "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_295") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_INCLUDE where contractnumber like '922337204%' """, + s"""select contractnumber from TABLE_DICTIONARY_INCLUDE_hive where contractnumber like '922337204%' """, "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_295") } - //VMALL_DICTIONARY_INCLUDE_296 - test("VMALL_DICTIONARY_INCLUDE_296", Include) { + //TABLE_DICTIONARY_INCLUDE_296 + test("TABLE_DICTIONARY_INCLUDE_296", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_INCLUDE where contractnumber like '%047800'""", - s"""select contractnumber from VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '%047800'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_296") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_INCLUDE where contractnumber like '%047800'""", + s"""select contractnumber from TABLE_DICTIONARY_INCLUDE_hive where contractnumber like '%047800'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_296") } - //VMALL_DICTIONARY_INCLUDE_297 - test("VMALL_DICTIONARY_INCLUDE_297", Include) { + //TABLE_DICTIONARY_INCLUDE_297 + test("TABLE_DICTIONARY_INCLUDE_297", Include) { - checkAnswer(s"""select contractnumber from VMALL_DICTIONARY_INCLUDE where contractnumber like '%720%'""", - s"""select contractnumber from VMALL_DICTIONARY_INCLUDE_hive where contractnumber like '%720%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_297") + checkAnswer(s"""select contractnumber from TABLE_DICTIONARY_INCLUDE where contractnumber like '%720%'""", + s"""select contractnumber from TABLE_DICTIONARY_INCLUDE_hive where contractnumber like '%720%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_297") } - //VMALL_DICTIONARY_INCLUDE_298 - test("VMALL_DICTIONARY_INCLUDE_298", Include) { + //TABLE_DICTIONARY_INCLUDE_298 + test("TABLE_DICTIONARY_INCLUDE_298", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY like '12345678%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_298") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY like '12345678%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY like '12345678%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_298") } - //VMALL_DICTIONARY_INCLUDE_299 - test("VMALL_DICTIONARY_INCLUDE_299", Include) { + //TABLE_DICTIONARY_INCLUDE_299 + test("TABLE_DICTIONARY_INCLUDE_299", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY like '%5678%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_299") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY like '%5678%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY like '%5678%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_299") } - //VMALL_DICTIONARY_INCLUDE_300 - test("VMALL_DICTIONARY_INCLUDE_300", Include) { + //TABLE_DICTIONARY_INCLUDE_300 + test("TABLE_DICTIONARY_INCLUDE_300", Include) { - checkAnswer(s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY like '1234567%'""", - s"""SELECT Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_300") + checkAnswer(s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY like '1234567%'""", + s"""SELECT Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY like '1234567%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_300") } - //VMALL_DICTIONARY_INCLUDE_301 - test("VMALL_DICTIONARY_INCLUDE_301", Include) { + //TABLE_DICTIONARY_INCLUDE_301 + test("TABLE_DICTIONARY_INCLUDE_301", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE where gamepointID like '1.1098347722%'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_301") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE where gamepointID like '1.1098347722%'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE_hive where gamepointID like '1.1098347722%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_301") } - //VMALL_DICTIONARY_INCLUDE_302 - test("VMALL_DICTIONARY_INCLUDE_302", Include) { + //TABLE_DICTIONARY_INCLUDE_302 + test("TABLE_DICTIONARY_INCLUDE_302", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE where gamepointID like '%8347722%'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '%8347722%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_302") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE where gamepointID like '%8347722%'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE_hive where gamepointID like '%8347722%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_302") } - //VMALL_DICTIONARY_INCLUDE_303 - test("VMALL_DICTIONARY_INCLUDE_303", Include) { + //TABLE_DICTIONARY_INCLUDE_303 + test("TABLE_DICTIONARY_INCLUDE_303", Include) { - checkAnswer(s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE where gamepointID like '%7512E42'""", - s"""SELECT gamepointID from VMALL_DICTIONARY_INCLUDE_hive where gamepointID like '%7512E42'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_303") + checkAnswer(s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE where gamepointID like '%7512E42'""", + s"""SELECT gamepointID from TABLE_DICTIONARY_INCLUDE_hive where gamepointID like '%7512E42'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_303") } - //VMALL_DICTIONARY_INCLUDE_304 - test("VMALL_DICTIONARY_INCLUDE_304", Include) { + //TABLE_DICTIONARY_INCLUDE_304 + test("TABLE_DICTIONARY_INCLUDE_304", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid like '1000%'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '1000%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_304") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid like '1000%'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid like '1000%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_304") } - //VMALL_DICTIONARY_INCLUDE_305 - test("VMALL_DICTIONARY_INCLUDE_305", Include) { + //TABLE_DICTIONARY_INCLUDE_305 + test("TABLE_DICTIONARY_INCLUDE_305", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid like '%00%'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '%00%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_305") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid like '%00%'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid like '%00%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_305") } - //VMALL_DICTIONARY_INCLUDE_306 - test("VMALL_DICTIONARY_INCLUDE_306", Include) { + //TABLE_DICTIONARY_INCLUDE_306 + test("TABLE_DICTIONARY_INCLUDE_306", Include) { - checkAnswer(s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid like '%0084'""", - s"""SELECT deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid like '%0084'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_306") + checkAnswer(s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid like '%0084'""", + s"""SELECT deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid like '%0084'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_306") } - //VMALL_DICTIONARY_INCLUDE_307 - test("VMALL_DICTIONARY_INCLUDE_307", Include) { + //TABLE_DICTIONARY_INCLUDE_307 + test("TABLE_DICTIONARY_INCLUDE_307", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei like '1AA10%'""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei like '1AA10%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_307") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei like '1AA10%'""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei like '1AA10%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_307") } - //VMALL_DICTIONARY_INCLUDE_308 - test("VMALL_DICTIONARY_INCLUDE_308", Include) { + //TABLE_DICTIONARY_INCLUDE_308 + test("TABLE_DICTIONARY_INCLUDE_308", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei like '%A10%'""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei like '%A10%'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_308") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei like '%A10%'""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei like '%A10%'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_308") } - //VMALL_DICTIONARY_INCLUDE_309 - test("VMALL_DICTIONARY_INCLUDE_309", Include) { + //TABLE_DICTIONARY_INCLUDE_309 + test("TABLE_DICTIONARY_INCLUDE_309", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei like '%00084'""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei like '%00084'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_309") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei like '%00084'""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei like '%00084'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_309") } - //VMALL_DICTIONARY_INCLUDE_310 - test("VMALL_DICTIONARY_INCLUDE_310", Include) { + //TABLE_DICTIONARY_INCLUDE_310 + test("TABLE_DICTIONARY_INCLUDE_310", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_310") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei in ('1AA100074','1AA100075','1AA100077')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_310") } - //VMALL_DICTIONARY_INCLUDE_311 - test("VMALL_DICTIONARY_INCLUDE_311", Include) { + //TABLE_DICTIONARY_INCLUDE_311 + test("TABLE_DICTIONARY_INCLUDE_311", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_311") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei not in ('1AA100074','1AA100075','1AA100077')""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei not in ('1AA100074','1AA100075','1AA100077')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_311") } - //VMALL_DICTIONARY_INCLUDE_312 - test("VMALL_DICTIONARY_INCLUDE_312", Include) { + //TABLE_DICTIONARY_INCLUDE_312 + test("TABLE_DICTIONARY_INCLUDE_312", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid in (100081,100078,10008)""", - s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_312") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid in (100081,100078,10008)""", + s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid in (100081,100078,10008)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_312") } - //VMALL_DICTIONARY_INCLUDE_313 - test("VMALL_DICTIONARY_INCLUDE_313", Include) { + //TABLE_DICTIONARY_INCLUDE_313 + test("TABLE_DICTIONARY_INCLUDE_313", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid not in (100081,100078,10008)""", - s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_313") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid not in (100081,100078,10008)""", + s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid not in (100081,100078,10008)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_313") } - //VMALL_DICTIONARY_INCLUDE_314 - test("VMALL_DICTIONARY_INCLUDE_314", Include) { + //TABLE_DICTIONARY_INCLUDE_314 + test("TABLE_DICTIONARY_INCLUDE_314", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_INCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", - s"""select productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_314") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_INCLUDE where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", + s"""select productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate in ('2015-10-04 12:07:28','2015-10-07%','2015-10-07 12:07:28')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_314") } - //VMALL_DICTIONARY_INCLUDE_315 - test("VMALL_DICTIONARY_INCLUDE_315", Include) { + //TABLE_DICTIONARY_INCLUDE_315 + test("TABLE_DICTIONARY_INCLUDE_315", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_INCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", - s"""select productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_315") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_INCLUDE where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", + s"""select productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate not in (cast('2015-10-04 12:07:28' as timestamp),cast('2015-10-07 12:07:28' as timestamp))""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_315") } - //VMALL_DICTIONARY_INCLUDE_316 - test("VMALL_DICTIONARY_INCLUDE_316", Include) { + //TABLE_DICTIONARY_INCLUDE_316 + test("TABLE_DICTIONARY_INCLUDE_316", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_INCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from VMALL_DICTIONARY_INCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_316") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_INCLUDE where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from TABLE_DICTIONARY_INCLUDE_hive where gamepointid in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_316") } - //VMALL_DICTIONARY_INCLUDE_317 - test("VMALL_DICTIONARY_INCLUDE_317", Include) { + //TABLE_DICTIONARY_INCLUDE_317 + test("TABLE_DICTIONARY_INCLUDE_317", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_INCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", - s"""select gamepointid from VMALL_DICTIONARY_INCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_317") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_INCLUDE where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", + s"""select gamepointid from TABLE_DICTIONARY_INCLUDE_hive where gamepointid not in (5.02870412391492E39,3.82247669125491E41,6.8591561117512E42)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_317") } - //VMALL_DICTIONARY_INCLUDE_318 - test("VMALL_DICTIONARY_INCLUDE_318", Include) { + //TABLE_DICTIONARY_INCLUDE_318 + test("TABLE_DICTIONARY_INCLUDE_318", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_318") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_318") } - //VMALL_DICTIONARY_INCLUDE_319 - test("VMALL_DICTIONARY_INCLUDE_319", Include) { + //TABLE_DICTIONARY_INCLUDE_319 + test("TABLE_DICTIONARY_INCLUDE_319", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_319") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY not in (1234567890123530.0000000000,1234567890123520.0000000000)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_319") } - //VMALL_DICTIONARY_INCLUDE_322 - test("VMALL_DICTIONARY_INCLUDE_322", Include) { + //TABLE_DICTIONARY_INCLUDE_322 + test("TABLE_DICTIONARY_INCLUDE_322", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei !='1AA100077'""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei !='1AA100077'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_322") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei !='1AA100077'""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei !='1AA100077'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_322") } - //VMALL_DICTIONARY_INCLUDE_323 - test("VMALL_DICTIONARY_INCLUDE_323", Include) { + //TABLE_DICTIONARY_INCLUDE_323 + test("TABLE_DICTIONARY_INCLUDE_323", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei NOT LIKE '1AA100077'""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_323") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei NOT LIKE '1AA100077'""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei NOT LIKE '1AA100077'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_323") } - //VMALL_DICTIONARY_INCLUDE_324 - test("VMALL_DICTIONARY_INCLUDE_324", Include) { + //TABLE_DICTIONARY_INCLUDE_324 + test("TABLE_DICTIONARY_INCLUDE_324", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid !=100078""", - s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid !=100078""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_324") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid !=100078""", + s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid !=100078""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_324") } - //VMALL_DICTIONARY_INCLUDE_325 - test("VMALL_DICTIONARY_INCLUDE_325", Include) { + //TABLE_DICTIONARY_INCLUDE_325 + test("TABLE_DICTIONARY_INCLUDE_325", Include) { - checkAnswer(s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE where deviceinformationid NOT LIKE 100079""", - s"""select deviceinformationid from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_325") + checkAnswer(s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE where deviceinformationid NOT LIKE 100079""", + s"""select deviceinformationid from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationid NOT LIKE 100079""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_325") } - //VMALL_DICTIONARY_INCLUDE_326 - test("VMALL_DICTIONARY_INCLUDE_326", Include) { + //TABLE_DICTIONARY_INCLUDE_326 + test("TABLE_DICTIONARY_INCLUDE_326", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_INCLUDE where productiondate !='2015-10-07 12:07:28'""", - s"""select productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_326") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_INCLUDE where productiondate !='2015-10-07 12:07:28'""", + s"""select productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate !='2015-10-07 12:07:28'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_326") } - //VMALL_DICTIONARY_INCLUDE_327 - ignore("VMALL_DICTIONARY_INCLUDE_327", Include) { + //TABLE_DICTIONARY_INCLUDE_327 + ignore("TABLE_DICTIONARY_INCLUDE_327", Include) { - checkAnswer(s"""select productiondate from VMALL_DICTIONARY_INCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", - s"""select productiondate from VMALL_DICTIONARY_INCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_327") + checkAnswer(s"""select productiondate from TABLE_DICTIONARY_INCLUDE where productiondate NOT LIKE '2015-10-07 12:07:28'""", + s"""select productiondate from TABLE_DICTIONARY_INCLUDE_hive where productiondate NOT LIKE '2015-10-07 12:07:28'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_327") } - //VMALL_DICTIONARY_INCLUDE_328 - test("VMALL_DICTIONARY_INCLUDE_328", Include) { + //TABLE_DICTIONARY_INCLUDE_328 + test("TABLE_DICTIONARY_INCLUDE_328", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_INCLUDE where gamepointid !=6.8591561117512E42""", - s"""select gamepointid from VMALL_DICTIONARY_INCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_328") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_INCLUDE where gamepointid !=6.8591561117512E42""", + s"""select gamepointid from TABLE_DICTIONARY_INCLUDE_hive where gamepointid !=6.8591561117512E42""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_328") } - //VMALL_DICTIONARY_INCLUDE_329 - test("VMALL_DICTIONARY_INCLUDE_329", Include) { + //TABLE_DICTIONARY_INCLUDE_329 + test("TABLE_DICTIONARY_INCLUDE_329", Include) { - checkAnswer(s"""select gamepointid from VMALL_DICTIONARY_INCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", - s"""select gamepointid from VMALL_DICTIONARY_INCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_329") + checkAnswer(s"""select gamepointid from TABLE_DICTIONARY_INCLUDE where gamepointid NOT LIKE 6.8591561117512E43""", + s"""select gamepointid from TABLE_DICTIONARY_INCLUDE_hive where gamepointid NOT LIKE 6.8591561117512E43""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_329") } - //VMALL_DICTIONARY_INCLUDE_330 - test("VMALL_DICTIONARY_INCLUDE_330", Include) { + //TABLE_DICTIONARY_INCLUDE_330 + test("TABLE_DICTIONARY_INCLUDE_330", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY != 1234567890123520.0000000000""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_330") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY != 1234567890123520.0000000000""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY != 1234567890123520.0000000000""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_330") } - //VMALL_DICTIONARY_INCLUDE_331 - test("VMALL_DICTIONARY_INCLUDE_331", Include) { + //TABLE_DICTIONARY_INCLUDE_331 + test("TABLE_DICTIONARY_INCLUDE_331", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_331") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY NOT LIKE 1234567890123520.0000000000""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY NOT LIKE 1234567890123520.0000000000""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_331") } - //VMALL_DICTIONARY_INCLUDE_335 - test("VMALL_DICTIONARY_INCLUDE_335", Include) { + //TABLE_DICTIONARY_INCLUDE_335 + test("TABLE_DICTIONARY_INCLUDE_335", Include) { - checkAnswer(s"""SELECT productiondate,IMEI from VMALL_DICTIONARY_INCLUDE where IMEI RLIKE '1AA100077'""", - s"""SELECT productiondate,IMEI from VMALL_DICTIONARY_INCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_335") + checkAnswer(s"""SELECT productiondate,IMEI from TABLE_DICTIONARY_INCLUDE where IMEI RLIKE '1AA100077'""", + s"""SELECT productiondate,IMEI from TABLE_DICTIONARY_INCLUDE_hive where IMEI RLIKE '1AA100077'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_335") } - //VMALL_DICTIONARY_INCLUDE_336 - test("VMALL_DICTIONARY_INCLUDE_336", Include) { + //TABLE_DICTIONARY_INCLUDE_336 + test("TABLE_DICTIONARY_INCLUDE_336", Include) { - checkAnswer(s"""SELECT deviceinformationId from VMALL_DICTIONARY_INCLUDE where deviceinformationId RLIKE '100079'""", - s"""SELECT deviceinformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_336") + checkAnswer(s"""SELECT deviceinformationId from TABLE_DICTIONARY_INCLUDE where deviceinformationId RLIKE '100079'""", + s"""SELECT deviceinformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceinformationId RLIKE '100079'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_336") } - //VMALL_DICTIONARY_INCLUDE_337 - test("VMALL_DICTIONARY_INCLUDE_337", Include) { + //TABLE_DICTIONARY_INCLUDE_337 + test("TABLE_DICTIONARY_INCLUDE_337", Include) { - checkAnswer(s"""SELECT gamepointid from VMALL_DICTIONARY_INCLUDE where gamepointid RLIKE '1.61922711065643E42'""", - s"""SELECT gamepointid from VMALL_DICTIONARY_INCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_337") + checkAnswer(s"""SELECT gamepointid from TABLE_DICTIONARY_INCLUDE where gamepointid RLIKE '1.61922711065643E42'""", + s"""SELECT gamepointid from TABLE_DICTIONARY_INCLUDE_hive where gamepointid RLIKE '1.61922711065643E42'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_337") } - //VMALL_DICTIONARY_INCLUDE_338 - test("VMALL_DICTIONARY_INCLUDE_338", Include) { + //TABLE_DICTIONARY_INCLUDE_338 + test("TABLE_DICTIONARY_INCLUDE_338", Include) { - checkAnswer(s"""SELECT Latest_Day from VMALL_DICTIONARY_INCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", - s"""SELECT Latest_Day from VMALL_DICTIONARY_INCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_338") + checkAnswer(s"""SELECT Latest_Day from TABLE_DICTIONARY_INCLUDE where Latest_Day RLIKE '1234567890123550.0000000000'""", + s"""SELECT Latest_Day from TABLE_DICTIONARY_INCLUDE_hive where Latest_Day RLIKE '1234567890123550.0000000000'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_338") } - //VMALL_DICTIONARY_INCLUDE_339 - test("VMALL_DICTIONARY_INCLUDE_339", Include) { + //TABLE_DICTIONARY_INCLUDE_339 + test("TABLE_DICTIONARY_INCLUDE_339", Include) { - checkAnswer(s"""SELECT contractnumber from VMALL_DICTIONARY_INCLUDE where contractnumber RLIKE '9223372047800'""", - s"""SELECT contractnumber from VMALL_DICTIONARY_INCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_339") + checkAnswer(s"""SELECT contractnumber from TABLE_DICTIONARY_INCLUDE where contractnumber RLIKE '9223372047800'""", + s"""SELECT contractnumber from TABLE_DICTIONARY_INCLUDE_hive where contractnumber RLIKE '9223372047800'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_339") } - //VMALL_DICTIONARY_INCLUDE_340 - test("VMALL_DICTIONARY_INCLUDE_340", Include) { + //TABLE_DICTIONARY_INCLUDE_340 + test("TABLE_DICTIONARY_INCLUDE_340", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.productiondate=b.productiondate""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.productiondate=b.productiondate""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_340") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.productiondate=b.productiondate""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.productiondate=b.productiondate""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_340") } - //VMALL_DICTIONARY_INCLUDE_341 - test("VMALL_DICTIONARY_INCLUDE_341", Include) { + //TABLE_DICTIONARY_INCLUDE_341 + test("TABLE_DICTIONARY_INCLUDE_341", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.deviceinformationid=b.deviceinformationid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_341") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.deviceinformationid=b.deviceinformationid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.deviceinformationid=b.deviceinformationid""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_341") } - //VMALL_DICTIONARY_INCLUDE_342 - test("VMALL_DICTIONARY_INCLUDE_342", Include) { + //TABLE_DICTIONARY_INCLUDE_342 + test("TABLE_DICTIONARY_INCLUDE_342", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.imei=b.imei""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.imei=b.imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_342") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.imei=b.imei""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.imei=b.imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_342") } - //VMALL_DICTIONARY_INCLUDE_343 - test("VMALL_DICTIONARY_INCLUDE_343", Include) { + //TABLE_DICTIONARY_INCLUDE_343 + test("TABLE_DICTIONARY_INCLUDE_343", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.gamepointid=b.gamepointid""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.gamepointid=b.gamepointid""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_343") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.gamepointid=b.gamepointid""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.gamepointid=b.gamepointid""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_343") } - //VMALL_DICTIONARY_INCLUDE_344 - test("VMALL_DICTIONARY_INCLUDE_344", Include) { + //TABLE_DICTIONARY_INCLUDE_344 + test("TABLE_DICTIONARY_INCLUDE_344", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.Latest_Day=b.Latest_Day""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.Latest_Day=b.Latest_Day""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_344") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.Latest_Day=b.Latest_Day""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.Latest_Day=b.Latest_Day""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_344") } - //VMALL_DICTIONARY_INCLUDE_345 - test("VMALL_DICTIONARY_INCLUDE_345", Include) { + //TABLE_DICTIONARY_INCLUDE_345 + test("TABLE_DICTIONARY_INCLUDE_345", Include) { - checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE a join vmall_dictionary_include b on a.contractnumber=b.contractnumber""", - s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from VMALL_DICTIONARY_INCLUDE_hive a join vmall_dictionary_include_hive b on a.contractnumber=b.contractnumber""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_345") + checkAnswer(s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE a join table_dictionary_include b on a.contractnumber=b.contractnumber""", + s"""select b.contractNumber,b.Latest_DAY,b.gamePointId,b.productionDate,b.deviceInformationId,b.IMEI from TABLE_DICTIONARY_INCLUDE_hive a join table_dictionary_include_hive b on a.contractnumber=b.contractnumber""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_345") } - //VMALL_DICTIONARY_INCLUDE_346 - test("VMALL_DICTIONARY_INCLUDE_346", Include) { + //TABLE_DICTIONARY_INCLUDE_346 + test("TABLE_DICTIONARY_INCLUDE_346", Include) { - checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_346") + checkAnswer(s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count( contractNumber ),sum( contractNumber ),count(distinct contractNumber ),avg( contractNumber ),max( contractNumber ),min( contractNumber ),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_346") } - //VMALL_DICTIONARY_INCLUDE_347 - test("VMALL_DICTIONARY_INCLUDE_347", Include) { + //TABLE_DICTIONARY_INCLUDE_347 + test("TABLE_DICTIONARY_INCLUDE_347", Include) { - checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_347") + checkAnswer(s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count( Latest_Day ),sum( Latest_Day ),count(distinct Latest_Day ),avg( Latest_Day ),max( Latest_Day ),min( Latest_Day ),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_347") } - //VMALL_DICTIONARY_INCLUDE_348 - ignore("VMALL_DICTIONARY_INCLUDE_348", Include) { + //TABLE_DICTIONARY_INCLUDE_348 + ignore("TABLE_DICTIONARY_INCLUDE_348", Include) { - checkAnswer(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_348") + checkAnswer(s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count( gamePointId),sum( gamePointId ),count(distinct gamePointId ),avg(gamePointId),max(gamePointId),min(gamePointId),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_348") } - //VMALL_DICTIONARY_INCLUDE_349 - test("VMALL_DICTIONARY_INCLUDE_349", Include) { + //TABLE_DICTIONARY_INCLUDE_349 + test("TABLE_DICTIONARY_INCLUDE_349", Include) { - checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_349") + checkAnswer(s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count(deviceInformationId),sum(deviceInformationId),count(deviceInformationId),avg(deviceInformationId),max(deviceInformationId),min(deviceInformationId),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_349") } - //VMALL_DICTIONARY_INCLUDE_350 - test("VMALL_DICTIONARY_INCLUDE_350", Include) { + //TABLE_DICTIONARY_INCLUDE_350 + test("TABLE_DICTIONARY_INCLUDE_350", Include) { - checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_350") + checkAnswer(s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count( productionDate),sum( productionDate ),count(distinct productionDate ),avg( productionDate ),max( productionDate),min( productionDate ),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_350") } - //VMALL_DICTIONARY_INCLUDE_351 - test("VMALL_DICTIONARY_INCLUDE_351", Include) { + //TABLE_DICTIONARY_INCLUDE_351 + test("TABLE_DICTIONARY_INCLUDE_351", Include) { - checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from VMALL_DICTIONARY_INCLUDE""", - s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_351") + checkAnswer(s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from TABLE_DICTIONARY_INCLUDE""", + s"""select count(IMEI ),sum(IMEI ),count(distinct IMEI ),avg(IMEI ),max(IMEI ),min(IMEI ),1 from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_351") } - //VMALL_DICTIONARY_INCLUDE_352 - test("VMALL_DICTIONARY_INCLUDE_352", Include) { + //TABLE_DICTIONARY_INCLUDE_352 + test("TABLE_DICTIONARY_INCLUDE_352", Include) { - checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_352") + checkAnswer(s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(contractNumber),count(contractNumber),avg(contractNumber),sum(contractNumber)/count(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_352") } - //VMALL_DICTIONARY_INCLUDE_353 - test("VMALL_DICTIONARY_INCLUDE_353", Include) { + //TABLE_DICTIONARY_INCLUDE_353 + test("TABLE_DICTIONARY_INCLUDE_353", Include) { - checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_353") + checkAnswer(s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(Latest_Day),count(Latest_Day),avg(Latest_Day),sum(Latest_Day)/count(Latest_Day) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_353") } - //VMALL_DICTIONARY_INCLUDE_354 - test("VMALL_DICTIONARY_INCLUDE_354", Include) { + //TABLE_DICTIONARY_INCLUDE_354 + test("TABLE_DICTIONARY_INCLUDE_354", Include) { - checkAnswer(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_354") + checkAnswer(s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(gamepointId),count(gamepointId),avg(gamepointID),sum(gamepointID)/count(gamepointID) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_354") } - //VMALL_DICTIONARY_INCLUDE_355 - test("VMALL_DICTIONARY_INCLUDE_355", Include) { + //TABLE_DICTIONARY_INCLUDE_355 + test("TABLE_DICTIONARY_INCLUDE_355", Include) { - checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_355") + checkAnswer(s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(deviceinformationId),count(deviceinformationId),avg(deviceinformationId),sum(deviceinformationId)/count(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_355") } - //VMALL_DICTIONARY_INCLUDE_356 - test("VMALL_DICTIONARY_INCLUDE_356", Include) { + //TABLE_DICTIONARY_INCLUDE_356 + test("TABLE_DICTIONARY_INCLUDE_356", Include) { - checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_356") + checkAnswer(s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(IMEI),count(IMEI),avg(IMEI),sum(IMEI)/count(IMEI) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_356") } - //VMALL_DICTIONARY_INCLUDE_357 - test("VMALL_DICTIONARY_INCLUDE_357", Include) { + //TABLE_DICTIONARY_INCLUDE_357 + test("TABLE_DICTIONARY_INCLUDE_357", Include) { - checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from VMALL_DICTIONARY_INCLUDE""", - s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_357") + checkAnswer(s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from TABLE_DICTIONARY_INCLUDE""", + s"""select sum(productionDate),count(productionDate),avg(productionDate),sum(productionDate)/count(productionDate) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_357") } - //VMALL_DICTIONARY_INCLUDE_358 - test("VMALL_DICTIONARY_INCLUDE_358", Include) { + //TABLE_DICTIONARY_INCLUDE_358 + test("TABLE_DICTIONARY_INCLUDE_358", Include) { - checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from VMALL_DICTIONARY_INCLUDE""", - s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_358") + checkAnswer(s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from TABLE_DICTIONARY_INCLUDE""", + s"""select contractNumber,Latest_DAY,gamePointId,productionDate,deviceInformationId,IMEI from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_358") } - //VMALL_DICTIONARY_INCLUDE_359 - test("VMALL_DICTIONARY_INCLUDE_359", Include) { + //TABLE_DICTIONARY_INCLUDE_359 + test("TABLE_DICTIONARY_INCLUDE_359", Include) { - checkAnswer(s"""select count(MAC) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(MAC) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_359") + checkAnswer(s"""select count(MAC) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(MAC) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_359") } - //VMALL_DICTIONARY_INCLUDE_360 - test("VMALL_DICTIONARY_INCLUDE_360", Include) { + //TABLE_DICTIONARY_INCLUDE_360 + test("TABLE_DICTIONARY_INCLUDE_360", Include) { - checkAnswer(s"""select count(gamePointId) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_360") + checkAnswer(s"""select count(gamePointId) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_360") } - //VMALL_DICTIONARY_INCLUDE_361 - test("VMALL_DICTIONARY_INCLUDE_361", Include) { + //TABLE_DICTIONARY_INCLUDE_361 + test("TABLE_DICTIONARY_INCLUDE_361", Include) { - checkAnswer(s"""select count(contractNumber) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_361") + checkAnswer(s"""select count(contractNumber) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_361") } - //VMALL_DICTIONARY_INCLUDE_362 - test("VMALL_DICTIONARY_INCLUDE_362", Include) { + //TABLE_DICTIONARY_INCLUDE_362 + test("TABLE_DICTIONARY_INCLUDE_362", Include) { - checkAnswer(s"""select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_362") + checkAnswer(s"""select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_362") } - //VMALL_DICTIONARY_INCLUDE_363 - test("VMALL_DICTIONARY_INCLUDE_363", Include) { + //TABLE_DICTIONARY_INCLUDE_363 + test("TABLE_DICTIONARY_INCLUDE_363", Include) { - checkAnswer(s"""select count(productionDate) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(productionDate) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_363") + checkAnswer(s"""select count(productionDate) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(productionDate) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_363") } - //VMALL_DICTIONARY_INCLUDE_364 - test("VMALL_DICTIONARY_INCLUDE_364", Include) { + //TABLE_DICTIONARY_INCLUDE_364 + test("TABLE_DICTIONARY_INCLUDE_364", Include) { - checkAnswer(s"""select count(deviceInformationId) from VMALL_DICTIONARY_INCLUDE""", - s"""select count(deviceInformationId) from VMALL_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_364") + checkAnswer(s"""select count(deviceInformationId) from TABLE_DICTIONARY_INCLUDE""", + s"""select count(deviceInformationId) from TABLE_DICTIONARY_INCLUDE_hive""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_364") } - //VMALL_DICTIONARY_INCLUDE_365 - test("VMALL_DICTIONARY_INCLUDE_365", Include) { + //TABLE_DICTIONARY_INCLUDE_365 + test("TABLE_DICTIONARY_INCLUDE_365", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where contractNumber != '9223372047700'""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where contractNumber != '9223372047700'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_365") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where contractNumber != '9223372047700'""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where contractNumber != '9223372047700'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_365") } - //VMALL_DICTIONARY_INCLUDE_366 - test("VMALL_DICTIONARY_INCLUDE_366", Include) { + //TABLE_DICTIONARY_INCLUDE_366 + test("TABLE_DICTIONARY_INCLUDE_366", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_366") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY != '1234567890123480.0000000000' order by imei,deviceInformationId,MAC,deviceColor limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_366") } - //VMALL_DICTIONARY_INCLUDE_367 - test("VMALL_DICTIONARY_INCLUDE_367", Include) { + //TABLE_DICTIONARY_INCLUDE_367 + test("TABLE_DICTIONARY_INCLUDE_367", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_367") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where gamePointId != '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_367") } - //VMALL_DICTIONARY_INCLUDE_368 - test("VMALL_DICTIONARY_INCLUDE_368", Include) { + //TABLE_DICTIONARY_INCLUDE_368 + test("TABLE_DICTIONARY_INCLUDE_368", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_368") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where productionDate != '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_368") } - //VMALL_DICTIONARY_INCLUDE_369 - test("VMALL_DICTIONARY_INCLUDE_369", Include) { + //TABLE_DICTIONARY_INCLUDE_369 + test("TABLE_DICTIONARY_INCLUDE_369", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_369") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where deviceInformationId != '100075' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId != '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_369") } - //VMALL_DICTIONARY_INCLUDE_370 - test("VMALL_DICTIONARY_INCLUDE_370", Include) { + //TABLE_DICTIONARY_INCLUDE_370 + test("TABLE_DICTIONARY_INCLUDE_370", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_370") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where contractNumber not like '9223372047700' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_370") } - //VMALL_DICTIONARY_INCLUDE_371 - test("VMALL_DICTIONARY_INCLUDE_371", Include) { + //TABLE_DICTIONARY_INCLUDE_371 + test("TABLE_DICTIONARY_INCLUDE_371", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_371") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY not like '1234567890123480.0000000000' order by imei,deviceInformationId limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_371") } - //VMALL_DICTIONARY_INCLUDE_372 - test("VMALL_DICTIONARY_INCLUDE_372", Include) { + //TABLE_DICTIONARY_INCLUDE_372 + test("TABLE_DICTIONARY_INCLUDE_372", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_372") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where gamePointId not like '2.27852521808948E36' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_372") } - //VMALL_DICTIONARY_INCLUDE_373 - test("VMALL_DICTIONARY_INCLUDE_373", Include) { + //TABLE_DICTIONARY_INCLUDE_373 + test("TABLE_DICTIONARY_INCLUDE_373", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_373") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where productionDate not like '2015-09-18 12:07:28.0' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_373") } - //VMALL_DICTIONARY_INCLUDE_374 - test("VMALL_DICTIONARY_INCLUDE_374", Include) { + //TABLE_DICTIONARY_INCLUDE_374 + test("TABLE_DICTIONARY_INCLUDE_374", Include) { - checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", - s"""select imei,deviceInformationId,MAC,deviceColor from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_374") + checkAnswer(s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", + s"""select imei,deviceInformationId,MAC,deviceColor from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId not like '100075' order by imei,deviceInformationId,MAC limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_374") } - //VMALL_DICTIONARY_INCLUDE_375 - test("VMALL_DICTIONARY_INCLUDE_375", Include) { + //TABLE_DICTIONARY_INCLUDE_375 + test("TABLE_DICTIONARY_INCLUDE_375", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei is not null""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_375") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei is not null""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_375") } - //VMALL_DICTIONARY_INCLUDE_376 - test("VMALL_DICTIONARY_INCLUDE_376", Include) { + //TABLE_DICTIONARY_INCLUDE_376 + test("TABLE_DICTIONARY_INCLUDE_376", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId is not null""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_376") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId is not null""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_376") } - //VMALL_DICTIONARY_INCLUDE_377 - test("VMALL_DICTIONARY_INCLUDE_377", Include) { + //TABLE_DICTIONARY_INCLUDE_377 + test("TABLE_DICTIONARY_INCLUDE_377", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where contractNumber is not null""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_377") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber is not null""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_377") } - //VMALL_DICTIONARY_INCLUDE_378 - test("VMALL_DICTIONARY_INCLUDE_378", Include) { + //TABLE_DICTIONARY_INCLUDE_378 + test("TABLE_DICTIONARY_INCLUDE_378", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY is not null""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_378") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY is not null""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_378") } - //VMALL_DICTIONARY_INCLUDE_379 - test("VMALL_DICTIONARY_INCLUDE_379", Include) { + //TABLE_DICTIONARY_INCLUDE_379 + test("TABLE_DICTIONARY_INCLUDE_379", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate is not null""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_379") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate is not null""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_379") } - //VMALL_DICTIONARY_INCLUDE_380 - test("VMALL_DICTIONARY_INCLUDE_380", Include) { + //TABLE_DICTIONARY_INCLUDE_380 + test("TABLE_DICTIONARY_INCLUDE_380", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId is not null""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId is not null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_380") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId is not null""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId is not null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_380") } - //VMALL_DICTIONARY_INCLUDE_381 - test("VMALL_DICTIONARY_INCLUDE_381", Include) { + //TABLE_DICTIONARY_INCLUDE_381 + test("TABLE_DICTIONARY_INCLUDE_381", Include) { - checkAnswer(s"""select imei from VMALL_DICTIONARY_INCLUDE where imei is null""", - s"""select imei from VMALL_DICTIONARY_INCLUDE_hive where imei is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_381") + checkAnswer(s"""select imei from TABLE_DICTIONARY_INCLUDE where imei is null""", + s"""select imei from TABLE_DICTIONARY_INCLUDE_hive where imei is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_381") } - //VMALL_DICTIONARY_INCLUDE_382 - test("VMALL_DICTIONARY_INCLUDE_382", Include) { + //TABLE_DICTIONARY_INCLUDE_382 + test("TABLE_DICTIONARY_INCLUDE_382", Include) { - checkAnswer(s"""select gamePointId from VMALL_DICTIONARY_INCLUDE where gamePointId is null""", - s"""select gamePointId from VMALL_DICTIONARY_INCLUDE_hive where gamePointId is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_382") + checkAnswer(s"""select gamePointId from TABLE_DICTIONARY_INCLUDE where gamePointId is null""", + s"""select gamePointId from TABLE_DICTIONARY_INCLUDE_hive where gamePointId is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_382") } - //VMALL_DICTIONARY_INCLUDE_383 - test("VMALL_DICTIONARY_INCLUDE_383", Include) { + //TABLE_DICTIONARY_INCLUDE_383 + test("TABLE_DICTIONARY_INCLUDE_383", Include) { - checkAnswer(s"""select contractNumber from VMALL_DICTIONARY_INCLUDE where contractNumber is null""", - s"""select contractNumber from VMALL_DICTIONARY_INCLUDE_hive where contractNumber is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_383") + checkAnswer(s"""select contractNumber from TABLE_DICTIONARY_INCLUDE where contractNumber is null""", + s"""select contractNumber from TABLE_DICTIONARY_INCLUDE_hive where contractNumber is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_383") } - //VMALL_DICTIONARY_INCLUDE_384 - test("VMALL_DICTIONARY_INCLUDE_384", Include) { + //TABLE_DICTIONARY_INCLUDE_384 + test("TABLE_DICTIONARY_INCLUDE_384", Include) { - checkAnswer(s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE where Latest_DAY is null""", - s"""select Latest_DAY from VMALL_DICTIONARY_INCLUDE_hive where Latest_DAY is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_384") + checkAnswer(s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE where Latest_DAY is null""", + s"""select Latest_DAY from TABLE_DICTIONARY_INCLUDE_hive where Latest_DAY is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_384") } - //VMALL_DICTIONARY_INCLUDE_385 - test("VMALL_DICTIONARY_INCLUDE_385", Include) { + //TABLE_DICTIONARY_INCLUDE_385 + test("TABLE_DICTIONARY_INCLUDE_385", Include) { - checkAnswer(s"""select productionDate from VMALL_DICTIONARY_INCLUDE where productionDate is null""", - s"""select productionDate from VMALL_DICTIONARY_INCLUDE_hive where productionDate is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_385") + checkAnswer(s"""select productionDate from TABLE_DICTIONARY_INCLUDE where productionDate is null""", + s"""select productionDate from TABLE_DICTIONARY_INCLUDE_hive where productionDate is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_385") } - //VMALL_DICTIONARY_INCLUDE_386 - test("VMALL_DICTIONARY_INCLUDE_386", Include) { + //TABLE_DICTIONARY_INCLUDE_386 + test("TABLE_DICTIONARY_INCLUDE_386", Include) { - checkAnswer(s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE where deviceInformationId is null""", - s"""select deviceInformationId from VMALL_DICTIONARY_INCLUDE_hive where deviceInformationId is null""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_386") + checkAnswer(s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE where deviceInformationId is null""", + s"""select deviceInformationId from TABLE_DICTIONARY_INCLUDE_hive where deviceInformationId is null""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_386") } - //VMALL_DICTIONARY_INCLUDE_387 - test("VMALL_DICTIONARY_INCLUDE_387", Include) { + //TABLE_DICTIONARY_INCLUDE_387 + test("TABLE_DICTIONARY_INCLUDE_387", Include) { - checkAnswer(s"""select count(*) from VMALL_DICTIONARY_INCLUDE where imei = '1AA1'""", - s"""select count(*) from VMALL_DICTIONARY_INCLUDE_hive where imei = '1AA1'""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_387") + checkAnswer(s"""select count(*) from TABLE_DICTIONARY_INCLUDE where imei = '1AA1'""", + s"""select count(*) from TABLE_DICTIONARY_INCLUDE_hive where imei = '1AA1'""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_387") } - //VMALL_DICTIONARY_INCLUDE_PushUP_001 - test("VMALL_DICTIONARY_INCLUDE_PushUP_001", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_001 + test("TABLE_DICTIONARY_INCLUDE_PushUP_001", Include) { - checkAnswer(s"""select count(imei) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(imei) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_001") + checkAnswer(s"""select count(imei) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(imei) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_001") } - //VMALL_DICTIONARY_INCLUDE_PushUP_002 - test("VMALL_DICTIONARY_INCLUDE_PushUP_002", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_002 + test("TABLE_DICTIONARY_INCLUDE_PushUP_002", Include) { - checkAnswer(s"""select count(deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_002") + checkAnswer(s"""select count(deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_002") } - //VMALL_DICTIONARY_INCLUDE_PushUP_003 - test("VMALL_DICTIONARY_INCLUDE_PushUP_003", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_003 + test("TABLE_DICTIONARY_INCLUDE_PushUP_003", Include) { - checkAnswer(s"""select count(productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_003") + checkAnswer(s"""select count(productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_003") } - //VMALL_DICTIONARY_INCLUDE_PushUP_004 - test("VMALL_DICTIONARY_INCLUDE_PushUP_004", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_004 + test("TABLE_DICTIONARY_INCLUDE_PushUP_004", Include) { - checkAnswer(s"""select count(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_004") + checkAnswer(s"""select count(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_004") } - //VMALL_DICTIONARY_INCLUDE_PushUP_005 - test("VMALL_DICTIONARY_INCLUDE_PushUP_005", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_005 + test("TABLE_DICTIONARY_INCLUDE_PushUP_005", Include) { - checkAnswer(s"""select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_005") + checkAnswer(s"""select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_005") } - //VMALL_DICTIONARY_INCLUDE_PushUP_006 - test("VMALL_DICTIONARY_INCLUDE_PushUP_006", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_006 + test("TABLE_DICTIONARY_INCLUDE_PushUP_006", Include) { - checkAnswer(s"""select count(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_006") + checkAnswer(s"""select count(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_006") } - //VMALL_DICTIONARY_INCLUDE_PushUP_007 - test("VMALL_DICTIONARY_INCLUDE_PushUP_007", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_007 + test("TABLE_DICTIONARY_INCLUDE_PushUP_007", Include) { - checkAnswer(s"""select count(distinct imei) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct imei) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_007") + checkAnswer(s"""select count(distinct imei) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct imei) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_007") } - //VMALL_DICTIONARY_INCLUDE_PushUP_008 - test("VMALL_DICTIONARY_INCLUDE_PushUP_008", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_008 + test("TABLE_DICTIONARY_INCLUDE_PushUP_008", Include) { - checkAnswer(s"""select count(distinct deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_008") + checkAnswer(s"""select count(distinct deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_008") } - //VMALL_DICTIONARY_INCLUDE_PushUP_009 - test("VMALL_DICTIONARY_INCLUDE_PushUP_009", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_009 + test("TABLE_DICTIONARY_INCLUDE_PushUP_009", Include) { - checkAnswer(s"""select count(distinct productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_009") + checkAnswer(s"""select count(distinct productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_009") } - //VMALL_DICTIONARY_INCLUDE_PushUP_010 - test("VMALL_DICTIONARY_INCLUDE_PushUP_010", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_010 + test("TABLE_DICTIONARY_INCLUDE_PushUP_010", Include) { - checkAnswer(s"""select count(distinct gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct gamePointId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_010") + checkAnswer(s"""select count(distinct gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct gamePointId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_010") } - //VMALL_DICTIONARY_INCLUDE_PushUP_011 - test("VMALL_DICTIONARY_INCLUDE_PushUP_011", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_011 + test("TABLE_DICTIONARY_INCLUDE_PushUP_011", Include) { - checkAnswer(s"""select count(distinct Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_011") + checkAnswer(s"""select count(distinct Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_011") } - //VMALL_DICTIONARY_INCLUDE_PushUP_012 - test("VMALL_DICTIONARY_INCLUDE_PushUP_012", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_012 + test("TABLE_DICTIONARY_INCLUDE_PushUP_012", Include) { - checkAnswer(s"""select count(distinct contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select count(distinct contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_012") + checkAnswer(s"""select count(distinct contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select count(distinct contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_012") } - //VMALL_DICTIONARY_INCLUDE_PushUP_013 - test("VMALL_DICTIONARY_INCLUDE_PushUP_013", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_013 + test("TABLE_DICTIONARY_INCLUDE_PushUP_013", Include) { - checkAnswer(s"""select sum(deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_013") + checkAnswer(s"""select sum(deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_013") } - //VMALL_DICTIONARY_INCLUDE_PushUP_014 - test("VMALL_DICTIONARY_INCLUDE_PushUP_014", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_014 + test("TABLE_DICTIONARY_INCLUDE_PushUP_014", Include) { - checkAnswer(s"""select sum(productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_014") + checkAnswer(s"""select sum(productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_014") } - //VMALL_DICTIONARY_INCLUDE_PushUP_015 - test("VMALL_DICTIONARY_INCLUDE_PushUP_015", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_015 + test("TABLE_DICTIONARY_INCLUDE_PushUP_015", Include) { - sql(s"""select sum(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select sum(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_016 - test("VMALL_DICTIONARY_INCLUDE_PushUP_016", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_016 + test("TABLE_DICTIONARY_INCLUDE_PushUP_016", Include) { - checkAnswer(s"""select sum(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_016") + checkAnswer(s"""select sum(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_016") } - //VMALL_DICTIONARY_INCLUDE_PushUP_017 - test("VMALL_DICTIONARY_INCLUDE_PushUP_017", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_017 + test("TABLE_DICTIONARY_INCLUDE_PushUP_017", Include) { - checkAnswer(s"""select sum(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_017") + checkAnswer(s"""select sum(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_017") } - //VMALL_DICTIONARY_INCLUDE_PushUP_018 - test("VMALL_DICTIONARY_INCLUDE_PushUP_018", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_018 + test("TABLE_DICTIONARY_INCLUDE_PushUP_018", Include) { - checkAnswer(s"""select sum(distinct deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_018") + checkAnswer(s"""select sum(distinct deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_018") } - //VMALL_DICTIONARY_INCLUDE_PushUP_019 - test("VMALL_DICTIONARY_INCLUDE_PushUP_019", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_019 + test("TABLE_DICTIONARY_INCLUDE_PushUP_019", Include) { - sql(s"""select sum(distinct gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select sum(distinct gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_020 - test("VMALL_DICTIONARY_INCLUDE_PushUP_020", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_020 + test("TABLE_DICTIONARY_INCLUDE_PushUP_020", Include) { - checkAnswer(s"""select sum(distinct Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_020") + checkAnswer(s"""select sum(distinct Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_020") } - //VMALL_DICTIONARY_INCLUDE_PushUP_021 - test("VMALL_DICTIONARY_INCLUDE_PushUP_021", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_021 + test("TABLE_DICTIONARY_INCLUDE_PushUP_021", Include) { - checkAnswer(s"""select sum(distinct contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select sum(distinct contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_021") + checkAnswer(s"""select sum(distinct contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select sum(distinct contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_021") } - //VMALL_DICTIONARY_INCLUDE_PushUP_022 - test("VMALL_DICTIONARY_INCLUDE_PushUP_022", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_022 + test("TABLE_DICTIONARY_INCLUDE_PushUP_022", Include) { - checkAnswer(s"""select min(deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_022") + checkAnswer(s"""select min(deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_022") } - //VMALL_DICTIONARY_INCLUDE_PushUP_023 - test("VMALL_DICTIONARY_INCLUDE_PushUP_023", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_023 + test("TABLE_DICTIONARY_INCLUDE_PushUP_023", Include) { - checkAnswer(s"""select min(productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_023") + checkAnswer(s"""select min(productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_023") } - //VMALL_DICTIONARY_INCLUDE_PushUP_024 - test("VMALL_DICTIONARY_INCLUDE_PushUP_024", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_024 + test("TABLE_DICTIONARY_INCLUDE_PushUP_024", Include) { - checkAnswer(s"""select min(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_024") + checkAnswer(s"""select min(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_024") } - //VMALL_DICTIONARY_INCLUDE_PushUP_025 - test("VMALL_DICTIONARY_INCLUDE_PushUP_025", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_025 + test("TABLE_DICTIONARY_INCLUDE_PushUP_025", Include) { - checkAnswer(s"""select min(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_025") + checkAnswer(s"""select min(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_025") } - //VMALL_DICTIONARY_INCLUDE_PushUP_026 - test("VMALL_DICTIONARY_INCLUDE_PushUP_026", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_026 + test("TABLE_DICTIONARY_INCLUDE_PushUP_026", Include) { - checkAnswer(s"""select min(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select min(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_026") + checkAnswer(s"""select min(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select min(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_026") } - //VMALL_DICTIONARY_INCLUDE_PushUP_027 - test("VMALL_DICTIONARY_INCLUDE_PushUP_027", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_027 + test("TABLE_DICTIONARY_INCLUDE_PushUP_027", Include) { - checkAnswer(s"""select max(imei) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(imei) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_027") + checkAnswer(s"""select max(imei) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(imei) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_027") } - //VMALL_DICTIONARY_INCLUDE_PushUP_028 - test("VMALL_DICTIONARY_INCLUDE_PushUP_028", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_028 + test("TABLE_DICTIONARY_INCLUDE_PushUP_028", Include) { - checkAnswer(s"""select max(deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_028") + checkAnswer(s"""select max(deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_028") } - //VMALL_DICTIONARY_INCLUDE_PushUP_029 - test("VMALL_DICTIONARY_INCLUDE_PushUP_029", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_029 + test("TABLE_DICTIONARY_INCLUDE_PushUP_029", Include) { - checkAnswer(s"""select max(productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_029") + checkAnswer(s"""select max(productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_029") } - //VMALL_DICTIONARY_INCLUDE_PushUP_030 - test("VMALL_DICTIONARY_INCLUDE_PushUP_030", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_030 + test("TABLE_DICTIONARY_INCLUDE_PushUP_030", Include) { - checkAnswer(s"""select max(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_030") + checkAnswer(s"""select max(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_030") } - //VMALL_DICTIONARY_INCLUDE_PushUP_031 - test("VMALL_DICTIONARY_INCLUDE_PushUP_031", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_031 + test("TABLE_DICTIONARY_INCLUDE_PushUP_031", Include) { - checkAnswer(s"""select max(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_031") + checkAnswer(s"""select max(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_031") } - //VMALL_DICTIONARY_INCLUDE_PushUP_032 - test("VMALL_DICTIONARY_INCLUDE_PushUP_032", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_032 + test("TABLE_DICTIONARY_INCLUDE_PushUP_032", Include) { - checkAnswer(s"""select max(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select max(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_032") + checkAnswer(s"""select max(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select max(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_032") } - //VMALL_DICTIONARY_INCLUDE_PushUP_033 - test("VMALL_DICTIONARY_INCLUDE_PushUP_033", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_033 + test("TABLE_DICTIONARY_INCLUDE_PushUP_033", Include) { - checkAnswer(s"""select variance(deviceInformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select variance(deviceInformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_033") + checkAnswer(s"""select variance(deviceInformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select variance(deviceInformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_033") } - //VMALL_DICTIONARY_INCLUDE_PushUP_034 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_034", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_034 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_034", Include) { - checkAnswer(s"""select variance(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select variance(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_034") + checkAnswer(s"""select variance(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select variance(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_034") } - //VMALL_DICTIONARY_INCLUDE_PushUP_035 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_035", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_035 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_035", Include) { - checkAnswer(s"""select variance(gamePointId) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select variance(gamePointId) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_035") + checkAnswer(s"""select variance(gamePointId) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select variance(gamePointId) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_035") } - //VMALL_DICTIONARY_INCLUDE_PushUP_036 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_036", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_036 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_036", Include) { - checkAnswer(s"""select variance(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select variance(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_036") + checkAnswer(s"""select variance(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select variance(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_036") } - //VMALL_DICTIONARY_INCLUDE_PushUP_037 - test("VMALL_DICTIONARY_INCLUDE_PushUP_037", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_037 + test("TABLE_DICTIONARY_INCLUDE_PushUP_037", Include) { - checkAnswer(s"""select variance(contractNumber) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", - s"""select variance(contractNumber) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_037") + checkAnswer(s"""select variance(contractNumber) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", + s"""select variance(contractNumber) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by contractNumber)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_037") } - //VMALL_DICTIONARY_INCLUDE_PushUP_038 - test("VMALL_DICTIONARY_INCLUDE_PushUP_038", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_038 + test("TABLE_DICTIONARY_INCLUDE_PushUP_038", Include) { - checkAnswer(s"""select var_samp(deviceInformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select var_samp(deviceInformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_038") + checkAnswer(s"""select var_samp(deviceInformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select var_samp(deviceInformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_038") } - //VMALL_DICTIONARY_INCLUDE_PushUP_039 - test("VMALL_DICTIONARY_INCLUDE_PushUP_039", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_039 + test("TABLE_DICTIONARY_INCLUDE_PushUP_039", Include) { - checkAnswer(s"""select var_samp(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select var_samp(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_039") + checkAnswer(s"""select var_samp(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select var_samp(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_039") } - //VMALL_DICTIONARY_INCLUDE_PushUP_040 - test("VMALL_DICTIONARY_INCLUDE_PushUP_040", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_040 + test("TABLE_DICTIONARY_INCLUDE_PushUP_040", Include) { - sql(s"""select var_samp(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select var_samp(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_041 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_041", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_041 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_041", Include) { - checkAnswer(s"""select var_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select var_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_041") + checkAnswer(s"""select var_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select var_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_041") } - //VMALL_DICTIONARY_INCLUDE_PushUP_042 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_042", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_042 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_042", Include) { - checkAnswer(s"""select var_samp(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select var_samp(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_042") + checkAnswer(s"""select var_samp(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select var_samp(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_042") } - //VMALL_DICTIONARY_INCLUDE_PushUP_043 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_043", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_043 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_043", Include) { - checkAnswer(s"""select stddev_pop(deviceInformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_pop(deviceInformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_043") + checkAnswer(s"""select stddev_pop(deviceInformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_pop(deviceInformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_043") } - //VMALL_DICTIONARY_INCLUDE_PushUP_044 - test("VMALL_DICTIONARY_INCLUDE_PushUP_044", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_044 + test("TABLE_DICTIONARY_INCLUDE_PushUP_044", Include) { - checkAnswer(s"""select stddev_pop(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select stddev_pop(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_044") + checkAnswer(s"""select stddev_pop(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select stddev_pop(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_044") } - //VMALL_DICTIONARY_INCLUDE_PushUP_045 - test("VMALL_DICTIONARY_INCLUDE_PushUP_045", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_045 + test("TABLE_DICTIONARY_INCLUDE_PushUP_045", Include) { - sql(s"""select stddev_pop(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select stddev_pop(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_046 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_046", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_046 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_046", Include) { - checkAnswer(s"""select stddev_pop(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select stddev_pop(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_046") + checkAnswer(s"""select stddev_pop(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select stddev_pop(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_046") } - //VMALL_DICTIONARY_INCLUDE_PushUP_047 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_047", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_047 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_047", Include) { - checkAnswer(s"""select stddev_pop(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_pop(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_047") + checkAnswer(s"""select stddev_pop(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_pop(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_047") } - //VMALL_DICTIONARY_INCLUDE_PushUP_048 - test("VMALL_DICTIONARY_INCLUDE_PushUP_048", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_048 + test("TABLE_DICTIONARY_INCLUDE_PushUP_048", Include) { - checkAnswer(s"""select stddev_samp(deviceInformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select stddev_samp(deviceInformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_048") + checkAnswer(s"""select stddev_samp(deviceInformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select stddev_samp(deviceInformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_048") } - //VMALL_DICTIONARY_INCLUDE_PushUP_049 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_049", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_049 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_049", Include) { - checkAnswer(s"""select stddev_samp(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamepointid)""", - s"""select stddev_samp(gamepointid) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamepointid)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_049") + checkAnswer(s"""select stddev_samp(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamepointid)""", + s"""select stddev_samp(gamepointid) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamepointid)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_049") } - //VMALL_DICTIONARY_INCLUDE_PushUP_050 - test("VMALL_DICTIONARY_INCLUDE_PushUP_050", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_050 + test("TABLE_DICTIONARY_INCLUDE_PushUP_050", Include) { - sql(s"""select stddev_samp(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect + sql(s"""select stddev_samp(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_051 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_051", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_051 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_051", Include) { - checkAnswer(s"""select stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", - s"""select stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_051") + checkAnswer(s"""select stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", + s"""select stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by Latest_DAY)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_051") } - //VMALL_DICTIONARY_INCLUDE_PushUP_053 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_053", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_053 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_053", Include) { - checkAnswer(s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(gamePointId),var_samp(gamePointId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", - s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(gamePointId),var_samp(gamePointId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_053") + checkAnswer(s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(gamePointId),var_samp(gamePointId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", + s"""select count(imei),count(distinct deviceinformationId),sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(gamePointId),var_samp(gamePointId),stddev_pop(gamePointId),stddev_samp(Latest_DAY) from (select * from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') order by gamePointId)""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_053") } - //VMALL_DICTIONARY_INCLUDE_PushUP_054 - test("VMALL_DICTIONARY_INCLUDE_PushUP_054", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_054 + test("TABLE_DICTIONARY_INCLUDE_PushUP_054", Include) { - checkAnswer(s"""select AVG(deviceinformationId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(deviceinformationId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_054") + checkAnswer(s"""select AVG(deviceinformationId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(deviceinformationId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_054") } - //VMALL_DICTIONARY_INCLUDE_PushUP_055 - test("VMALL_DICTIONARY_INCLUDE_PushUP_055", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_055 + test("TABLE_DICTIONARY_INCLUDE_PushUP_055", Include) { - checkAnswer(s"""select AVG(productionDate) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(productionDate) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_055") + checkAnswer(s"""select AVG(productionDate) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(productionDate) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_055") } - //VMALL_DICTIONARY_INCLUDE_PushUP_056 - test("VMALL_DICTIONARY_INCLUDE_PushUP_056", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_056 + test("TABLE_DICTIONARY_INCLUDE_PushUP_056", Include) { - checkAnswer(s"""select AVG(gamePointId) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_056") + checkAnswer(s"""select AVG(gamePointId) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_056") } - //VMALL_DICTIONARY_INCLUDE_PushUP_057 - test("VMALL_DICTIONARY_INCLUDE_PushUP_057", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_057 + test("TABLE_DICTIONARY_INCLUDE_PushUP_057", Include) { - checkAnswer(s"""select AVG(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_057") + checkAnswer(s"""select AVG(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_057") } - //VMALL_DICTIONARY_INCLUDE_PushUP_058 - test("VMALL_DICTIONARY_INCLUDE_PushUP_058", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_058 + test("TABLE_DICTIONARY_INCLUDE_PushUP_058", Include) { - checkAnswer(s"""select AVG(contractNumber) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", - s"""select AVG(contractNumber) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_058") + checkAnswer(s"""select AVG(contractNumber) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", + s"""select AVG(contractNumber) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_058") } - //VMALL_DICTIONARY_INCLUDE_PushUP_059 - test("VMALL_DICTIONARY_INCLUDE_PushUP_059", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_059 + test("TABLE_DICTIONARY_INCLUDE_PushUP_059", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_INCLUDE group by deviceInformationId limit 5""").collect + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_INCLUDE group by deviceInformationId limit 5""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_060 - test("VMALL_DICTIONARY_INCLUDE_PushUP_060", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_060 + test("TABLE_DICTIONARY_INCLUDE_PushUP_060", Include) { - sql(s"""select sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId) from VMALL_DICTIONARY_INCLUDE group by deviceInformationId order by deviceinformationId limit 5""").collect + sql(s"""select sum(deviceinformationId),sum(distinct deviceinformationId),min(deviceinformationId),max(imei),variance(deviceInformationId) from TABLE_DICTIONARY_INCLUDE group by deviceInformationId order by deviceinformationId limit 5""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_061 - test("VMALL_DICTIONARY_INCLUDE_PushUP_061", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_061 + test("TABLE_DICTIONARY_INCLUDE_PushUP_061", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')group by deviceInformationId limit 5""").collect + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null')group by deviceInformationId limit 5""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_062 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_062", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_062 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_062", Include) { - checkAnswer(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""", - s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_062") + checkAnswer(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""", + s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_INCLUDE_hive where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId order by deviceinformationId limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_062") } - //VMALL_DICTIONARY_INCLUDE_PushUP_063 - test("VMALL_DICTIONARY_INCLUDE_PushUP_063", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_063 + test("TABLE_DICTIONARY_INCLUDE_PushUP_063", Include) { - sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from VMALL_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId,productionDate sort by productionDate limit 5 + sql(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate),max(imei),variance(Latest_DAY) from TABLE_DICTIONARY_INCLUDE where deviceColor ='5Device Color' and modelId != '109' or Latest_DAY > '1234567890123540.0000000000' and contractNumber == '92233720368547800' or Active_operaSysVersion like 'Operating System Version' and gamePointId <=> '8.1366141918611E39' and deviceInformationId < '1000000' and productionDate not like '2016-07-01' and imei is null and Latest_HOUR is not null and channelsId <= '7' and Latest_releaseId >= '1' and Latest_MONTH between 6 and 8 and Latest_YEAR not between 2016 and 2017 and Latest_HOUR RLIKE '12' and gamePointDescription REGEXP 'Site' and imei in ('1AA1','1AA100','1AA10','1AA1000','1AA10000','1AA100000','1AA1000000','1AA100001','1AA100002','1AA100004','','NULL') and Active_BacVerNumber not in ('Background version number1','','null') group by deviceInformationId,productionDate sort by productionDate limit 5 """).collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_064 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_064", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_064 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_064", Include) { - checkAnswer(s"""select sum(deviceinformationId+10)t from VMALL_DICTIONARY_INCLUDE having t >1234567""", - s"""select sum(deviceinformationId+10)t from VMALL_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_064") + checkAnswer(s"""select sum(deviceinformationId+10)t from TABLE_DICTIONARY_INCLUDE having t >1234567""", + s"""select sum(deviceinformationId+10)t from TABLE_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_064") } - //VMALL_DICTIONARY_INCLUDE_PushUP_065 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_065", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_065 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_065", Include) { - checkAnswer(s"""select sum(deviceinformationId+gamePointId)t from VMALL_DICTIONARY_INCLUDE having t >1234567""", - s"""select sum(deviceinformationId+gamePointId)t from VMALL_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_065") + checkAnswer(s"""select sum(deviceinformationId+gamePointId)t from TABLE_DICTIONARY_INCLUDE having t >1234567""", + s"""select sum(deviceinformationId+gamePointId)t from TABLE_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_065") } - //VMALL_DICTIONARY_INCLUDE_PushUP_066 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_066", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_066 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_066", Include) { - checkAnswer(s"""select sum(deviceinformationId)t,Sum(gamePointId) from VMALL_DICTIONARY_INCLUDE having t >1234567""", - s"""select sum(deviceinformationId)t,Sum(gamePointId) from VMALL_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_066") + checkAnswer(s"""select sum(deviceinformationId)t,Sum(gamePointId) from TABLE_DICTIONARY_INCLUDE having t >1234567""", + s"""select sum(deviceinformationId)t,Sum(gamePointId) from TABLE_DICTIONARY_INCLUDE_hive having t >1234567""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_066") } - //VMALL_DICTIONARY_INCLUDE_PushUP_067 - ignore("VMALL_DICTIONARY_INCLUDE_PushUP_067", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_067 + ignore("TABLE_DICTIONARY_INCLUDE_PushUP_067", Include) { - checkAnswer(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate) from VMALL_DICTIONARY_INCLUDE group by imei,deviceinformationId,productionDate order by imei""", - s"""select count(imei),sum(distinct deviceinformationId),min(productionDate) from VMALL_DICTIONARY_INCLUDE_hive group by imei,deviceinformationId,productionDate order by imei""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_067") + checkAnswer(s"""select count(imei),sum(distinct deviceinformationId),min(productionDate) from TABLE_DICTIONARY_INCLUDE group by imei,deviceinformationId,productionDate order by imei""", + s"""select count(imei),sum(distinct deviceinformationId),min(productionDate) from TABLE_DICTIONARY_INCLUDE_hive group by imei,deviceinformationId,productionDate order by imei""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_067") } - //VMALL_DICTIONARY_INCLUDE_PushUP_069 - test("VMALL_DICTIONARY_INCLUDE_PushUP_069", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_069 + test("TABLE_DICTIONARY_INCLUDE_PushUP_069", Include) { - sql(s"""SELECT min(Latest_DAY),max(imei),variance(contractNumber), SUM(gamePointId),count(imei),sum(distinct deviceinformationId) FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY GROUP BY AMSize, ActiveAreaId ORDER BY AMSize ASC, ActiveAreaId ASC limit 10""").collect + sql(s"""SELECT min(Latest_DAY),max(imei),variance(contractNumber), SUM(gamePointId),count(imei),sum(distinct deviceinformationId) FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY GROUP BY AMSize, ActiveAreaId ORDER BY AMSize ASC, ActiveAreaId ASC limit 10""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_070 - test("VMALL_DICTIONARY_INCLUDE_PushUP_070", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_070 + test("TABLE_DICTIONARY_INCLUDE_PushUP_070", Include) { - checkAnswer(s"""SELECT VMALL_DICTIONARY_INCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_INCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) VMALL_DICTIONARY_INCLUDE FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) VMALL_DICTIONARY_INCLUDE1 ON VMALL_DICTIONARY_INCLUDE.AMSize = VMALL_DICTIONARY_INCLUDE1.AMSize WHERE VMALL_DICTIONARY_INCLUDE.AMSize LIKE '5RAM %' GROUP BY VMALL_DICTIONARY_INCLUDE.AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity,VMALL_DICTIONARY_INCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_INCLUDE.gamePointId, VMALL_DICTIONARY_INCLUDE.AMSize ASC, VMALL_DICTIONARY_INCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_INCLUDE.Activecity ASC""", - s"""SELECT VMALL_DICTIONARY_INCLUDE_hive.gamePointId AS gamePointId,VMALL_DICTIONARY_INCLUDE_hive.AMSize AS AMSize, VMALL_DICTIONARY_INCLUDE_hive.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_INCLUDE_hive.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_INCLUDE_hive) SUB_QRY ) VMALL_DICTIONARY_INCLUDE_hive FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_INCLUDE_hive) SUB_QRY ) VMALL_DICTIONARY_INCLUDE_hive1 ON VMALL_DICTIONARY_INCLUDE_hive.AMSize = VMALL_DICTIONARY_INCLUDE_hive1.AMSize WHERE VMALL_DICTIONARY_INCLUDE_hive.AMSize LIKE '5RAM %' GROUP BY VMALL_DICTIONARY_INCLUDE_hive.AMSize, VMALL_DICTIONARY_INCLUDE_hive.ActiveCountry, VMALL_DICTIONARY_INCLUDE_hive.Activecity,VMALL_DICTIONARY_INCLUDE_hive.gamePointId ORDER BY VMALL_DICTIONARY_INCLUDE_hive.gamePointId, VMALL_DICTIONARY_INCLUDE_hive.AMSize ASC, VMALL_DICTIONARY_INCLUDE_hive.ActiveCountry ASC, VMALL_DICTIONARY_INCLUDE_hive.Activecity ASC""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_070") + checkAnswer(s"""SELECT TABLE_DICTIONARY_INCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_INCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) TABLE_DICTIONARY_INCLUDE FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) TABLE_DICTIONARY_INCLUDE1 ON TABLE_DICTIONARY_INCLUDE.AMSize = TABLE_DICTIONARY_INCLUDE1.AMSize WHERE TABLE_DICTIONARY_INCLUDE.AMSize LIKE '5RAM %' GROUP BY TABLE_DICTIONARY_INCLUDE.AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity,TABLE_DICTIONARY_INCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_INCLUDE.gamePointId, TABLE_DICTIONARY_INCLUDE.AMSize ASC, TABLE_DICTIONARY_INCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_INCLUDE.Activecity ASC""", + s"""SELECT TABLE_DICTIONARY_INCLUDE_hive.gamePointId AS gamePointId,TABLE_DICTIONARY_INCLUDE_hive.AMSize AS AMSize, TABLE_DICTIONARY_INCLUDE_hive.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_INCLUDE_hive.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_INCLUDE_hive) SUB_QRY ) TABLE_DICTIONARY_INCLUDE_hive FULL OUTER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_INCLUDE_hive) SUB_QRY ) TABLE_DICTIONARY_INCLUDE_hive1 ON TABLE_DICTIONARY_INCLUDE_hive.AMSize = TABLE_DICTIONARY_INCLUDE_hive1.AMSize WHERE TABLE_DICTIONARY_INCLUDE_hive.AMSize LIKE '5RAM %' GROUP BY TABLE_DICTIONARY_INCLUDE_hive.AMSize, TABLE_DICTIONARY_INCLUDE_hive.ActiveCountry, TABLE_DICTIONARY_INCLUDE_hive.Activecity,TABLE_DICTIONARY_INCLUDE_hive.gamePointId ORDER BY TABLE_DICTIONARY_INCLUDE_hive.gamePointId, TABLE_DICTIONARY_INCLUDE_hive.AMSize ASC, TABLE_DICTIONARY_INCLUDE_hive.ActiveCountry ASC, TABLE_DICTIONARY_INCLUDE_hive.Activecity ASC""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_070") } - //VMALL_DICTIONARY_INCLUDE_PushUP_071 - test("VMALL_DICTIONARY_INCLUDE_PushUP_071", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_071 + test("TABLE_DICTIONARY_INCLUDE_PushUP_071", Include) { - sql(s"""SELECT VMALL_DICTIONARY_INCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_INCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) VMALL_DICTIONARY_INCLUDE RIGHT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON VMALL_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(VMALL_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_INCLUDE.AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity,VMALL_DICTIONARY_INCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_INCLUDE.AMSize ASC, VMALL_DICTIONARY_INCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_INCLUDE.Activecity ASC limit 10""").collect + sql(s"""SELECT TABLE_DICTIONARY_INCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_INCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) TABLE_DICTIONARY_INCLUDE RIGHT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON TABLE_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(TABLE_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_INCLUDE.AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity,TABLE_DICTIONARY_INCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_INCLUDE.AMSize ASC, TABLE_DICTIONARY_INCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_INCLUDE.Activecity ASC limit 10""").collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_072 - test("VMALL_DICTIONARY_INCLUDE_PushUP_072", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_072 + test("TABLE_DICTIONARY_INCLUDE_PushUP_072", Include) { - sql(s"""SELECT VMALL_DICTIONARY_INCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_INCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) VMALL_DICTIONARY_INCLUDE LEFT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON VMALL_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(VMALL_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_INCLUDE.AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity,VMALL_DICTIONARY_INCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_INCLUDE.AMSize ASC, VMALL_DICTIONARY_INCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_INCLUDE.Activecity ASC limit 10 + sql(s"""SELECT TABLE_DICTIONARY_INCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_INCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) TABLE_DICTIONARY_INCLUDE LEFT JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON TABLE_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(TABLE_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_INCLUDE.AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity,TABLE_DICTIONARY_INCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_INCLUDE.AMSize ASC, TABLE_DICTIONARY_INCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_INCLUDE.Activecity ASC limit 10 """).collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_073 - test("VMALL_DICTIONARY_INCLUDE_PushUP_073", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_073 + test("TABLE_DICTIONARY_INCLUDE_PushUP_073", Include) { - sql(s"""SELECT VMALL_DICTIONARY_INCLUDE.gamePointId AS gamePointId,VMALL_DICTIONARY_INCLUDE.AMSize AS AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) VMALL_DICTIONARY_INCLUDE INNER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from VMALL_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON VMALL_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(VMALL_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY VMALL_DICTIONARY_INCLUDE.AMSize, VMALL_DICTIONARY_INCLUDE.ActiveCountry, VMALL_DICTIONARY_INCLUDE.Activecity,VMALL_DICTIONARY_INCLUDE.gamePointId ORDER BY VMALL_DICTIONARY_INCLUDE.AMSize ASC, VMALL_DICTIONARY_INCLUDE.ActiveCountry ASC, VMALL_DICTIONARY_INCLUDE.Activecity ASC limit 10 + sql(s"""SELECT TABLE_DICTIONARY_INCLUDE.gamePointId AS gamePointId,TABLE_DICTIONARY_INCLUDE.AMSize AS AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry AS ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity AS Activecity FROM ( SELECT AMSize,gamePointId, ActiveCountry, Activecity FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) TABLE_DICTIONARY_INCLUDE INNER JOIN ( SELECT ActiveCountry, Activecity, AMSize FROM (select * from TABLE_DICTIONARY_INCLUDE) SUB_QRY ) Carbon_automation1 ON TABLE_DICTIONARY_INCLUDE.AMSize = Carbon_automation1.AMSize WHERE NOT(TABLE_DICTIONARY_INCLUDE.AMSize = "8RAM size") GROUP BY TABLE_DICTIONARY_INCLUDE.AMSize, TABLE_DICTIONARY_INCLUDE.ActiveCountry, TABLE_DICTIONARY_INCLUDE.Activecity,TABLE_DICTIONARY_INCLUDE.gamePointId ORDER BY TABLE_DICTIONARY_INCLUDE.AMSize ASC, TABLE_DICTIONARY_INCLUDE.ActiveCountry ASC, TABLE_DICTIONARY_INCLUDE.Activecity ASC limit 10 """).collect } - //VMALL_DICTIONARY_INCLUDE_PushUP_074 - test("VMALL_DICTIONARY_INCLUDE_PushUP_074", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_074 + test("TABLE_DICTIONARY_INCLUDE_PushUP_074", Include) { - checkAnswer(s"""select count(gamepointid),series from VMALL_DICTIONARY_INCLUDE group by series order by series limit 5""", - s"""select count(gamepointid),series from VMALL_DICTIONARY_INCLUDE_hive group by series order by series limit 5""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_074") + checkAnswer(s"""select count(gamepointid),series from TABLE_DICTIONARY_INCLUDE group by series order by series limit 5""", + s"""select count(gamepointid),series from TABLE_DICTIONARY_INCLUDE_hive group by series order by series limit 5""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_074") } - //VMALL_DICTIONARY_INCLUDE_PushUP_075 - test("VMALL_DICTIONARY_INCLUDE_PushUP_075", Include) { + //TABLE_DICTIONARY_INCLUDE_PushUP_075 + test("TABLE_DICTIONARY_INCLUDE_PushUP_075", Include) { - checkAnswer(s"""select count(gamepointid),series from VMALL_DICTIONARY_INCLUDE group by series order by series""", - s"""select count(gamepointid),series from VMALL_DICTIONARY_INCLUDE_hive group by series order by series""", "QueriesIncludeDictionaryTestCase_VMALL_DICTIONARY_INCLUDE_PushUP_075") + checkAnswer(s"""select count(gamepointid),series from TABLE_DICTIONARY_INCLUDE group by series order by series""", + s"""select count(gamepointid),series from TABLE_DICTIONARY_INCLUDE_hive group by series order by series""", "QueriesIncludeDictionaryTestCase_DICTIONARY_INCLUDE_PushUP_075") } - //C20_SEQ_CreateTable-DICTIONARY_INCLUDE-01 - test("C20_SEQ_CreateTable-DICTIONARY_INCLUDE-01", Include) { + //CreateTable-DICTIONARY_INCLUDE-01 + test("CreateTable-DICTIONARY_INCLUDE-01", Include) { sql(s"""drop table if exists smart_500_DINC""").collect sql(s"""drop table if exists smart_500_DINC_hive""").collect @@ -3878,8 +3878,8 @@ class QueriesIncludeDictionaryTestCase extends QueryTest with BeforeAndAfterAll } - //C20_SEQ_Dataload-DICTIONARY_INCLUDE-01 - test("C20_SEQ_Dataload-DICTIONARY_INCLUDE-01", Include) { + //Dataload-DICTIONARY_INCLUDE-01 + test("Dataload-DICTIONARY_INCLUDE-01", Include) { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/SEQ500/seq_500Records.csv' into table smart_500_DINC options('DELIMITER'=',', 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='SID,PROBEID,INTERFACEID,GROUPID,GGSN_ID,SGSN_ID,dummy,SESSION_INDICATOR,BEGIN_TIME,BEGIN_TIME_MSEL,END_TIME,END_TIME_MSEL,PROT_CATEGORY,PROT_TYPE,L7_CARRIER_PROT,SUB_PROT_TYPE,MSISDN,IMSI,IMEI,ENCRYPT_VERSION,ROAMING_TYPE,ROAM_DIRECTION,MS_IP,SERVER_IP,MS_PORT,APN,SGSN_SIG_IP,GGSN_USER_IP,SGSN_USER_IP,MCC,MNC,RAT,LAC,RAC,SAC,CI,SERVER_DECIMAL,BROWSER_TIMESTAMP,TCP_CONN_STATES,GGSN_SIG_IP_BigInt_NEGATIVE,TCP_STATES_BIGINTPOSITIVE,dummy,TCP_WIN_SIZE,dummy,TCP_MSS,dummy,TCP_CONN_TIMES,dummy,TCP_CONN_2_FAILED_TIMES,dummy,TCP_CONN_3_FAILED_TIMES,HOST,STREAMING_URL,dummy,GET_STREAMING_FAILED_CODE,dummy,GET_STREAMING_FLAG,dummy,GET_NUM,dummy,GET_SUCCEED_NUM,dummy,GET_RETRANS_NUM,dummy,GET_TIMEOUT_NUM,INTBUFFER_FST_FLAG,INTBUFFER_FULL_FLAG,STALL_NUM,dummy,VIDEO_FRAME_RATE,dummy,VIDEO_CODEC_ID,dummy,VIDEO_WIDTH,dummy,VIDEO_HEIGHT,dummy,AUDIO_CODEC_ID,dummy,MEDIA_FILE_TYPE,dummy,PLAY_STATE,dummy,PLAY_STATE,dummy,STREAMING_FLAG,dummy,TCP_STATUS_INDICATOR,dummy,DISCONNECTION_FLAG,dummy,FAILURE_CODE,FLAG,TAC,ECI,dummy,TCP_SYN_TIME_MSEL,dummy,TCP_FST_SYN_DIRECTION,RAN_NE_USER_IP,HOMEMCC,HOMEMNC,dummy,CHARGE_FLAG,dummy,PREPAID_FLAG,dummy,USER_AGENT,dummy,MS_WIN_STAT_TOTAL_NUM,dummy,MS_WIN_STAT_SMALL_NUM,dummy,MS_ACK_TO_1STGET_DELAY,dummy,SERVER_ACK_TO_1STDATA_DELAY,dummy,STREAMING_TYPE,dummy,SOURCE_VIDEO_QUALITY,TETHERING_FLAG,CARRIER_ID,LAYER1ID,LAYER2ID,dummy,LAYER3ID,dummy,LAYER4ID,dummy,LAYER5ID,dummy,LAYER6ID,CHARGING_RULE_BASE_NAME,SP,dummy,EXTENDED_URL,SV,FIRST_SAI_CGI_ECGI,dummy,EXTENDED_URL_OTHER,SIGNALING_USE_FLAG,dummy,DNS_RETRANS_NUM,dummy,DNS_FAIL_CODE,FIRST_RAT,FIRST_RAT,MS_INDICATOR,LAST_SAI_CGI_ECGI,LAST_RAT,dummy,FIRST_LONGITUDE,dummy,FIRST_LATITUDE,dummy,FIRST_ALTITUDE,dummy,FIRST_RASTERLONGITUDE,dummy,FIRST_RASTERLATITUDE,dummy,FIRST_RASTERALTITUDE,dummy,FIRST_FREQUENCYSPOT,dummy,FIRST_CLUTTER,dummy,FIRST_USERBEHAVIOR,dummy,FIRST_SPEED,dummy,FIRST_CREDIBILITY,dummy,LAST_LONGITUDE,dummy,LAST_LATITUDE,dummy,LAST_ALTITUDE,dummy,LAST_RASTERLONGITUDE,dummy,LAST_RASTERLATITUDE,dummy,LAST_RASTERALTITUDE,dummy,LAST_FREQUENCYSPOT,dummy,LAST_CLUTTER,dummy,LAST_USERBEHAVIOR,dummy,LAST_SPEED,dummy,LAST_CREDIBILITY,dummy,IMEI_CIPHERTEXT,APP_ID,dummy,DOMAIN_NAME,dummy,STREAMING_CACHE_IP,dummy,STOP_LONGER_THAN_MIN_THRESHOLD,dummy,STOP_LONGER_THAN_MAX_THRESHOLD,dummy,PLAY_END_STAT,dummy,STOP_START_TIME1,dummy,STOP_END_TIME1,dummy,STOP_START_TIME2,dummy,STOP_END_TIME2,dummy,STOP_START_TIME3,dummy,STOP_END_TIME3,dummy,STOP_START_TIME4,dummy,STOP_END_TIME4,dummy,STOP_START_TIME5,dummy,STOP_END_TIME5,dummy,STOP_START_TIME6,dummy,STOP_END_TIME6,dummy,STOP_START_TIME7,dummy,STOP_END_TIME7,dummy,STOP_START_TIME8,dummy,STOP_END_TIME8,dummy,STOP_START_TIME9,dummy,STOP_END_TIME9,dummy,STOP_START_TIME10,dummy,STOP_END_TIME10,dummy,FAIL_CLASS,RECORD_TYPE,dummy,NODATA_COUNT,dummy,VIDEO_NODATA_DURATION,dummy,VIDEO_SMOOTH_DURATION,dummy,VIDEO_SD_DURATION,dummy,VIDEO_HD_DURATION,dummy,VIDEO_UHD_DURATION,dummy,VIDEO_FHD_DURATION,dummy,FLUCTUATION,dummy,START_DOWNLOAD_THROUGHPUT,dummy,L7_UL_GOODPUT_FULL_MSS,dummy,SESSIONKEY,dummy,FIRST_UCELLID,dummy,LAST_UCELLID,dummy,UCELLID1,dummy,LONGITUDE1,dummy,LATITUDE1,dummy,UCELLID2,dummy,LONGITUDE2,dummy,LATITUDE2,dummy,UCELLID3,dummy,LONGITUDE3,dummy,LATITUDE3,dummy,UCELLID4,dummy,LONGITUDE4,dummy,LATITUDE4,dummy,UCELLID5,dummy,LONGITUDE5,dummy,LATITUDE5,dummy,UCELLID6,dummy,LONGITUDE6,dummy,LATITUDE6,dummy,UCELLID7,dummy,LONGITUDE7,dummy,LATITUDE7,dummy,UCELLID8,dummy,LONGITUDE8,dummy,LATITUDE8,dummy,UCELLID9,dummy,LONGITUDE9,dummy,LATITUDE9,dummy,UCELLID10,dummy,LONGITUDE10,dummy,LATITUDE10,dummy,INTBUFFER_FULL_DELAY,dummy,STALL_DURATION,dummy,STREAMING_DW_PACKETS,dummy,STREAMING_DOWNLOAD_DELAY,dummy,PLAY_DURATION,dummy,STREAMING_QUALITY,dummy,VIDEO_DATA_RATE,dummy,AUDIO_DATA_RATE,dummy,STREAMING_FILESIZE,dummy,STREAMING_DURATIOIN,dummy,TCP_SYN_TIME,dummy,TCP_RTT_STEP1,CHARGE_ID,dummy,UL_REVERSE_TO_DL_DELAY,dummy,DL_REVERSE_TO_UL_DELAY,dummy,DATATRANS_DW_GOODPUT,dummy,DATATRANS_DW_TOTAL_DURATION,dummy,SUM_FRAGMENT_INTERVAL,dummy,TCP_FIN_TIMES,dummy,TCP_RESET_TIMES,dummy,URL_CLASSIFICATION,dummy,STREAMING_LQ_DURATIOIN,dummy,MAX_DNS_DELAY,dummy,MAX_DNS2SYN,dummy,MAX_LATANCY_OF_LINK_SETUP,dummy,MAX_SYNACK2FIRSTACK,dummy,MAX_SYNACK2LASTACK,dummy,MAX_ACK2GET_DELAY,dummy,MAX_FRAG_INTERVAL_PREDELAY,dummy,SUM_FRAG_INTERVAL_PREDELAY,dummy,SERVICE_DELAY_MSEC,dummy,HOMEPROVINCE,dummy,HOMECITY,dummy,SERVICE_ID,dummy,CHARGING_CLASS,dummy,DATATRANS_UL_DURATION,dummy,ASSOCIATED_ID,dummy,PACKET_LOSS_NUM,dummy,JITTER,dummy,MS_DNS_DELAY_MSEL,dummy,GET_STREAMING_DELAY,dummy,TCP_UL_RETRANS_WITHOUTPL,dummy,TCP_DW_RETRANS_WITHOUTPL,dummy,GET_MAX_UL_SIZE,dummy,GET_MIN_UL_SIZE,dummy,GET_MAX_DL_SIZE,dummy,GET_MIN_DL_SIZE,dummy,FLOW_SAMPLE_RATIO,dummy,UL_RTT_LONG_NUM,dummy,DW_RTT_LONG_NUM,dummy,UL_RTT_STAT_NUM,dummy,DW_RTT_STAT_NUM,dummy,USER_PROBE_UL_LOST_PKT,dummy,SERVER_PROBE_UL_LOST_PKT,dummy,SERVER_PROBE_DW_LOST_PKT,dummy,USER_PROBE_DW_LOST_PKT,dummy,AVG_DW_RTT_MICRO_SEC,dummy,AVG_UL_RTT_MICRO_SEC,dummy,RAN_NE_ID,dummy,AVG_UL_RTT,dummy,AVG_DW_RTT,dummy,CHARGING_CHARACTERISTICS,dummy,DL_SERIOUS_OUT_OF_ORDER_NUM,dummy,DL_SLIGHT_OUT_OF_ORDER_NUM,dummy,DL_FLIGHT_TOTAL_SIZE,dummy,DL_FLIGHT_TOTAL_NUM,dummy,DL_MAX_FLIGHT_SIZE,dummy,VALID_TRANS_DURATION,dummy,AIR_PORT_DURATION,dummy,RADIO_CONN_TIMES,dummy,UL_SERIOUS_OUT_OF_ORDER_NUM,dummy,UL_SLIGHT_OUT_OF_ORDER_NUM,dummy,UL_FLIGHT_TOTAL_SIZE,dummy,UL_FLIGHT_TOTAL_NUM,dummy,UL_MAX_FLIGHT_SIZE,dummy,USER_DL_SLIGHT_OUT_OF_ORDER_PACKETS,dummy,SERVER_UL_SLIGHT_OUT_OF_ORDER_PACKETS,dummy,DL_CONTINUOUS_RETRANSMISSION_DELAY,dummy,USER_HUNGRY_DELAY,dummy,SERVER_HUNGRY_DELAY,dummy,UPPERLAYER_IP_UL_FRAGMENTS,dummy,UPPERLAYER_IP_DL_FRAGMENTS,dummy,DOWNLAYER_IP_UL_FRAGMENTS,dummy,DOWNLAYER_IP_DL_FRAGMENTS,dummy,UPPERLAYER_IP_UL_PACKETS,dummy,UPPERLAYER_IP_DL_PACKETS,dummy,DOWNLAYER_IP_UL_PACKETS,dummy,DOWNLAYER_IP_DL_PACKETS,dummy,TCP_UL_PACKAGES_WITHPL,dummy,TCP_DW_PACKAGES_WITHPL,dummy,TCP_UL_PACKAGES_WITHOUTPL,dummy,TCP_DW_PACKAGES_WITHOUTPL,dummy,TCP_UL_RETRANS_WITHPL,dummy,TCP_DW_RETRANS_WITHPL,L4_UL_THROUGHPUT,L4_DW_THROUGHPUT,L4_UL_GOODPUT,L4_DW_GOODPUT,NETWORK_UL_TRAFFIC,NETWORK_DL_TRAFFIC,L4_UL_PACKETS,L4_DW_PACKETS,TCP_RTT,TCP_UL_OUTOFSEQU,TCP_DW_OUTOFSEQU,TCP_UL_RETRANS,TCP_DW_RETRANS')""").collect @@ -3889,797 +3889,797 @@ class QueriesIncludeDictionaryTestCase extends QueryTest with BeforeAndAfterAll } - //C20_DICTIONARY_INCLUDE_TC001 - test("C20_DICTIONARY_INCLUDE_TC001", Include) { + //Query_DICTIONARY_INCLUDE_TC001 + test("Query_DICTIONARY_INCLUDE_TC001", Include) { checkAnswer(s"""select SID, IMEI from smart_500_DINC where HOST not in ('www.hua735435.com')""", - s"""select SID, IMEI from smart_500_DINC_hive where HOST not in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC001") + s"""select SID, IMEI from smart_500_DINC_hive where HOST not in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC001") } - //C20_DICTIONARY_INCLUDE_TC002 - test("C20_DICTIONARY_INCLUDE_TC002", Include) { + //Query_DICTIONARY_INCLUDE_TC002 + test("Query_DICTIONARY_INCLUDE_TC002", Include) { checkAnswer(s"""select SID, IMEI from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select SID, IMEI from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC002") + s"""select SID, IMEI from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC002") } - //C20_DICTIONARY_INCLUDE_TC003 - test("C20_DICTIONARY_INCLUDE_TC003", Include) { + //Query_DICTIONARY_INCLUDE_TC003 + test("Query_DICTIONARY_INCLUDE_TC003", Include) { checkAnswer(s"""select SID, IMEI from smart_500_DINC where HOST LIKE 'www.hua735435.com'""", - s"""select SID, IMEI from smart_500_DINC_hive where HOST LIKE 'www.hua735435.com'""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC003") + s"""select SID, IMEI from smart_500_DINC_hive where HOST LIKE 'www.hua735435.com'""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC003") } - //C20_DICTIONARY_INCLUDE_TC004 - test("C20_DICTIONARY_INCLUDE_TC004", Include) { + //Query_DICTIONARY_INCLUDE_TC004 + test("Query_DICTIONARY_INCLUDE_TC004", Include) { checkAnswer(s"""select SID, IMEI from smart_500_DINC where HOST Not LIKE 'www.hua735435.com'""", - s"""select SID, IMEI from smart_500_DINC_hive where HOST Not LIKE 'www.hua735435.com'""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC004") + s"""select SID, IMEI from smart_500_DINC_hive where HOST Not LIKE 'www.hua735435.com'""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC004") } - //C20_DICTIONARY_INCLUDE_TC005 - test("C20_DICTIONARY_INCLUDE_TC005", Include) { + //Query_DICTIONARY_INCLUDE_TC005 + test("Query_DICTIONARY_INCLUDE_TC005", Include) { checkAnswer(s"""select length(HOST) from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select length(HOST) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC005") + s"""select length(HOST) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC005") } - //C20_DICTIONARY_INCLUDE_TC006 - test("C20_DICTIONARY_INCLUDE_TC006", Include) { + //Query_DICTIONARY_INCLUDE_TC006 + test("Query_DICTIONARY_INCLUDE_TC006", Include) { checkAnswer(s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC006") + s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC006") } - //C20_DICTIONARY_INCLUDE_TC007 - test("C20_DICTIONARY_INCLUDE_TC007", Include) { + //Query_DICTIONARY_INCLUDE_TC007 + test("Query_DICTIONARY_INCLUDE_TC007", Include) { checkAnswer(s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC where HOST not in ('www.hua735435.com')""", - s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC_hive where HOST not in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC007") + s"""select avg(HOST),avg(LAYER1ID) from smart_500_DINC_hive where HOST not in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC007") } - //C20_DICTIONARY_INCLUDE_TC008 - test("C20_DICTIONARY_INCLUDE_TC008", Include) { + //Query_DICTIONARY_INCLUDE_TC008 + test("Query_DICTIONARY_INCLUDE_TC008", Include) { checkAnswer(s"""select substring(IMEI,1,4) from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select substring(IMEI,1,4) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC008") + s"""select substring(IMEI,1,4) from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC008") } - //C20_DICTIONARY_INCLUDE_TC009 - test("C20_DICTIONARY_INCLUDE_TC009", Include) { + //Query_DICTIONARY_INCLUDE_TC009 + test("Query_DICTIONARY_INCLUDE_TC009", Include) { checkAnswer(s"""select length(HOST)+10 from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select length(HOST)+10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC009") + s"""select length(HOST)+10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC009") } - //C20_DICTIONARY_INCLUDE_TC010 - test("C20_DICTIONARY_INCLUDE_TC010", Include) { + //Query_DICTIONARY_INCLUDE_TC010 + test("Query_DICTIONARY_INCLUDE_TC010", Include) { checkAnswer(s"""select length(HOST)-10 from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select length(HOST)-10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC010") + s"""select length(HOST)-10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC010") } - //C20_DICTIONARY_INCLUDE_TC011 - test("C20_DICTIONARY_INCLUDE_TC011", Include) { + //Query_DICTIONARY_INCLUDE_TC011 + test("Query_DICTIONARY_INCLUDE_TC011", Include) { checkAnswer(s"""select length(HOST)/10 from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select length(HOST)/10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC011") + s"""select length(HOST)/10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC011") } - //C20_DICTIONARY_INCLUDE_TC012 - test("C20_DICTIONARY_INCLUDE_TC012", Include) { + //Query_DICTIONARY_INCLUDE_TC012 + test("Query_DICTIONARY_INCLUDE_TC012", Include) { checkAnswer(s"""select length(HOST)*10 from smart_500_DINC where HOST in ('www.hua735435.com')""", - s"""select length(HOST)*10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC012") + s"""select length(HOST)*10 from smart_500_DINC_hive where HOST in ('www.hua735435.com')""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC012") } - //C20_DICTIONARY_INCLUDE_TC013 - test("C20_DICTIONARY_INCLUDE_TC013", Include) { + //Query_DICTIONARY_INCLUDE_TC013 + test("Query_DICTIONARY_INCLUDE_TC013", Include) { checkAnswer(s"""select lower(MS_IP),sum(LAYER1ID) from smart_500_DINC group by lower(MS_IP)""", - s"""select lower(MS_IP),sum(LAYER1ID) from smart_500_DINC_hive group by lower(MS_IP)""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC013") + s"""select lower(MS_IP),sum(LAYER1ID) from smart_500_DINC_hive group by lower(MS_IP)""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC013") } - //C20_DICTIONARY_INCLUDE_TC014 - test("C20_DICTIONARY_INCLUDE_TC014", Include) { + //Query_DICTIONARY_INCLUDE_TC014 + test("Query_DICTIONARY_INCLUDE_TC014", Include) { checkAnswer(s"""select * from smart_500_DINC where unix_timestamp(MS_IP)=1420268400""", - s"""select * from smart_500_DINC_hive where unix_timestamp(MS_IP)=1420268400""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC014") + s"""select * from smart_500_DINC_hive where unix_timestamp(MS_IP)=1420268400""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC014") } - //C20_DICTIONARY_INCLUDE_TC015 - test("C20_DICTIONARY_INCLUDE_TC015", Include) { + //Query_DICTIONARY_INCLUDE_TC015 + test("Query_DICTIONARY_INCLUDE_TC015", Include) { checkAnswer(s"""select * from smart_500_DINC where to_date(MS_IP)='2015-01-07'""", - s"""select * from smart_500_DINC_hive where to_date(MS_IP)='2015-01-07'""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC015") + s"""select * from smart_500_DINC_hive where to_date(MS_IP)='2015-01-07'""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC015") } - //C20_DICTIONARY_INCLUDE_TC016 - test("C20_DICTIONARY_INCLUDE_TC016", Include) { + //Query_DICTIONARY_INCLUDE_TC016 + test("Query_DICTIONARY_INCLUDE_TC016", Include) { checkAnswer(s"""select * from smart_500_DINC where datediff(MS_IP,'2014-12-01')>=35""", - s"""select * from smart_500_DINC_hive where datediff(MS_IP,'2014-12-01')>=35""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC016") + s"""select * from smart_500_DINC_hive where datediff(MS_IP,'2014-12-01')>=35""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC016") } - //C20_DICTIONARY_INCLUDE_TC017 - test("C20_DICTIONARY_INCLUDE_TC017", Include) { + //Query_DICTIONARY_INCLUDE_TC017 + test("Query_DICTIONARY_INCLUDE_TC017", Include) { checkAnswer(s"""select MS_IP,count(*) from smart_500_DINC group by MS_IP""", - s"""select MS_IP,count(*) from smart_500_DINC_hive group by MS_IP""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC017") + s"""select MS_IP,count(*) from smart_500_DINC_hive group by MS_IP""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC017") } - //C20_DICTIONARY_INCLUDE_TC018 - test("C20_DICTIONARY_INCLUDE_TC018", Include) { + //Query_DICTIONARY_INCLUDE_TC018 + test("Query_DICTIONARY_INCLUDE_TC018", Include) { sql(s"""select MS_IP,SID,count(*) from smart_500_DINC group by MS_IP,SID order by MS_IP limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC019 - test("C20_DICTIONARY_INCLUDE_TC019", Include) { + //Query_DICTIONARY_INCLUDE_TC019 + test("Query_DICTIONARY_INCLUDE_TC019", Include) { sql(s"""select SID,length( MSISDN),avg(LAYER1ID),avg(TCP_DW_RETRANS) from smart_500_DINC group by SID,length( MSISDN) order by SID limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC020 - test("C20_DICTIONARY_INCLUDE_TC020", Include) { + //Query_DICTIONARY_INCLUDE_TC020 + test("Query_DICTIONARY_INCLUDE_TC020", Include) { sql(s"""select SID,length( MSISDN),max(LAYER1ID),min(LAYER1ID) from smart_500_DINC group by SID,length( MSISDN) order by SID limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC021 - test("C20_DICTIONARY_INCLUDE_TC021", Include) { + //Query_DICTIONARY_INCLUDE_TC021 + test("Query_DICTIONARY_INCLUDE_TC021", Include) { sql(s"""select SID,length( MSISDN),max(LAYER1ID),max(LAYER1ID) from smart_500_DINC group by SID,length( MSISDN) order by SID limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC022 - test("C20_DICTIONARY_INCLUDE_TC022", Include) { + //Query_DICTIONARY_INCLUDE_TC022 + test("Query_DICTIONARY_INCLUDE_TC022", Include) { sql(s"""select SID,length( MSISDN),min(LAYER1ID),min(LAYER1ID) from smart_500_DINC group by SID,length( MSISDN) order by SID limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC023 - test("C20_DICTIONARY_INCLUDE_TC023", Include) { + //Query_DICTIONARY_INCLUDE_TC023 + test("Query_DICTIONARY_INCLUDE_TC023", Include) { sql(s"""select SID,length( MSISDN),max(LAYER1ID),min(LAYER1ID),avg(LAYER1ID) from smart_500_DINC group by SID,length( MSISDN) order by SID limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC024 - test("C20_DICTIONARY_INCLUDE_TC024", Include) { + //Query_DICTIONARY_INCLUDE_TC024 + test("Query_DICTIONARY_INCLUDE_TC024", Include) { checkAnswer(s"""select concat(upper(MSISDN),1),sum(LAYER1ID) from smart_500_DINC group by concat(upper(MSISDN),1)""", - s"""select concat(upper(MSISDN),1),sum(LAYER1ID) from smart_500_DINC_hive group by concat(upper(MSISDN),1)""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC024") + s"""select concat(upper(MSISDN),1),sum(LAYER1ID) from smart_500_DINC_hive group by concat(upper(MSISDN),1)""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC024") } - //C20_DICTIONARY_INCLUDE_TC025 - test("C20_DICTIONARY_INCLUDE_TC025", Include) { + //Query_DICTIONARY_INCLUDE_TC025 + test("Query_DICTIONARY_INCLUDE_TC025", Include) { checkAnswer(s"""select upper(substring(MSISDN,1,4)),sum(LAYER1ID) from smart_500_DINC group by upper(substring(MSISDN,1,4)) """, - s"""select upper(substring(MSISDN,1,4)),sum(LAYER1ID) from smart_500_DINC_hive group by upper(substring(MSISDN,1,4)) """, "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC025") + s"""select upper(substring(MSISDN,1,4)),sum(LAYER1ID) from smart_500_DINC_hive group by upper(substring(MSISDN,1,4)) """, "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC025") } - //C20_DICTIONARY_INCLUDE_TC026 - test("C20_DICTIONARY_INCLUDE_TC026", Include) { + //Query_DICTIONARY_INCLUDE_TC026 + test("Query_DICTIONARY_INCLUDE_TC026", Include) { checkAnswer(s"""select max(SERVER_IP) from smart_500_DINC""", - s"""select max(SERVER_IP) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC026") + s"""select max(SERVER_IP) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC026") } - //C20_DICTIONARY_INCLUDE_TC027 - test("C20_DICTIONARY_INCLUDE_TC027", Include) { + //Query_DICTIONARY_INCLUDE_TC027 + test("Query_DICTIONARY_INCLUDE_TC027", Include) { checkAnswer(s"""select max(SERVER_IP+10) from smart_500_DINC""", - s"""select max(SERVER_IP+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC027") + s"""select max(SERVER_IP+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC027") } - //C20_DICTIONARY_INCLUDE_TC028 - test("C20_DICTIONARY_INCLUDE_TC028", Include) { + //Query_DICTIONARY_INCLUDE_TC028 + test("Query_DICTIONARY_INCLUDE_TC028", Include) { checkAnswer(s"""select max(MSISDN) from smart_500_DINC""", - s"""select max(MSISDN) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC028") + s"""select max(MSISDN) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC028") } - //C20_DICTIONARY_INCLUDE_TC029 - test("C20_DICTIONARY_INCLUDE_TC029", Include) { + //Query_DICTIONARY_INCLUDE_TC029 + test("Query_DICTIONARY_INCLUDE_TC029", Include) { checkAnswer(s"""select max(MSISDN+10) from smart_500_DINC""", - s"""select max(MSISDN+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC029") + s"""select max(MSISDN+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC029") } - //C20_DICTIONARY_INCLUDE_TC030 - test("C20_DICTIONARY_INCLUDE_TC030", Include) { + //Query_DICTIONARY_INCLUDE_TC030 + test("Query_DICTIONARY_INCLUDE_TC030", Include) { checkAnswer(s"""select avg(TCP_DW_RETRANS) from smart_500_DINC""", - s"""select avg(TCP_DW_RETRANS) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC030") + s"""select avg(TCP_DW_RETRANS) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC030") } - //C20_DICTIONARY_INCLUDE_TC031 - test("C20_DICTIONARY_INCLUDE_TC031", Include) { + //Query_DICTIONARY_INCLUDE_TC031 + test("Query_DICTIONARY_INCLUDE_TC031", Include) { checkAnswer(s"""select avg(TCP_DW_RETRANS+10) from smart_500_DINC""", - s"""select avg(TCP_DW_RETRANS+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC031") + s"""select avg(TCP_DW_RETRANS+10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC031") } - //C20_DICTIONARY_INCLUDE_TC032 - test("C20_DICTIONARY_INCLUDE_TC032", Include) { + //Query_DICTIONARY_INCLUDE_TC032 + test("Query_DICTIONARY_INCLUDE_TC032", Include) { checkAnswer(s"""select avg(TCP_DW_RETRANS-10) from smart_500_DINC""", - s"""select avg(TCP_DW_RETRANS-10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC032") + s"""select avg(TCP_DW_RETRANS-10) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC032") } - //C20_DICTIONARY_INCLUDE_TC033 - test("C20_DICTIONARY_INCLUDE_TC033", Include) { + //Query_DICTIONARY_INCLUDE_TC033 + test("Query_DICTIONARY_INCLUDE_TC033", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC""", - s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC033") + s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC033") } - //C20_DICTIONARY_INCLUDE_TC034 - test("C20_DICTIONARY_INCLUDE_TC034", Include) { + //Query_DICTIONARY_INCLUDE_TC034 + test("Query_DICTIONARY_INCLUDE_TC034", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC""", - s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC034") + s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC034") } - //C20_DICTIONARY_INCLUDE_TC035 - test("C20_DICTIONARY_INCLUDE_TC035", Include) { + //Query_DICTIONARY_INCLUDE_TC035 + test("Query_DICTIONARY_INCLUDE_TC035", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC""", - s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC035") + s"""select count(TCP_DW_RETRANS)-10 from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC035") } - //C20_DICTIONARY_INCLUDE_TC036 - test("C20_DICTIONARY_INCLUDE_TC036", Include) { + //Query_DICTIONARY_INCLUDE_TC036 + test("Query_DICTIONARY_INCLUDE_TC036", Include) { checkAnswer(s"""select sum(MSISDN), sum(DISTINCT MSISDN) from smart_500_DINC""", - s"""select sum(MSISDN), sum(DISTINCT MSISDN) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC036") + s"""select sum(MSISDN), sum(DISTINCT MSISDN) from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC036") } - //C20_DICTIONARY_INCLUDE_TC037 - test("C20_DICTIONARY_INCLUDE_TC037", Include) { + //Query_DICTIONARY_INCLUDE_TC037 + test("Query_DICTIONARY_INCLUDE_TC037", Include) { checkAnswer(s"""select count (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC""", - s"""select count (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC037") + s"""select count (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC037") } - //C20_DICTIONARY_INCLUDE_TC038 - test("C20_DICTIONARY_INCLUDE_TC038", Include) { + //Query_DICTIONARY_INCLUDE_TC038 + test("Query_DICTIONARY_INCLUDE_TC038", Include) { checkAnswer(s"""select count (if(TCP_DW_RETRANS<100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC""", - s"""select count (if(TCP_DW_RETRANS<100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC038") + s"""select count (if(TCP_DW_RETRANS<100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC038") } - //C20_DICTIONARY_INCLUDE_TC039 - test("C20_DICTIONARY_INCLUDE_TC039", Include) { + //Query_DICTIONARY_INCLUDE_TC039 + test("Query_DICTIONARY_INCLUDE_TC039", Include) { checkAnswer(s"""select count (if(TCP_DW_RETRANS=100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC""", - s"""select count (if(TCP_DW_RETRANS=100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC039") + s"""select count (if(TCP_DW_RETRANS=100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC039") } - //C20_DICTIONARY_INCLUDE_TC040 - test("C20_DICTIONARY_INCLUDE_TC040", Include) { + //Query_DICTIONARY_INCLUDE_TC040 + test("Query_DICTIONARY_INCLUDE_TC040", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS) from smart_500_DINC where TCP_DW_RETRANS=100""", - s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS=100""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC040") + s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS=100""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC040") } - //C20_DICTIONARY_INCLUDE_TC041 - test("C20_DICTIONARY_INCLUDE_TC041", Include) { + //Query_DICTIONARY_INCLUDE_TC041 + test("Query_DICTIONARY_INCLUDE_TC041", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS) from smart_500_DINC where TCP_DW_RETRANS<100""", - s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS<100""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC041") + s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS<100""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC041") } - //C20_DICTIONARY_INCLUDE_TC042 - test("C20_DICTIONARY_INCLUDE_TC042", Include) { + //Query_DICTIONARY_INCLUDE_TC042 + test("Query_DICTIONARY_INCLUDE_TC042", Include) { checkAnswer(s"""select count(TCP_DW_RETRANS) from smart_500_DINC where TCP_DW_RETRANS>100""", - s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS>100""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC042") + s"""select count(TCP_DW_RETRANS) from smart_500_DINC_hive where TCP_DW_RETRANS>100""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC042") } - //C20_DICTIONARY_INCLUDE_TC043 - test("C20_DICTIONARY_INCLUDE_TC043", Include) { + //Query_DICTIONARY_INCLUDE_TC043 + test("Query_DICTIONARY_INCLUDE_TC043", Include) { sql(s"""select MSISDN, TCP_DW_RETRANS + LAYER1ID as a from smart_500_DINC order by MSISDN limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC044 - test("C20_DICTIONARY_INCLUDE_TC044", Include) { + //Query_DICTIONARY_INCLUDE_TC044 + test("Query_DICTIONARY_INCLUDE_TC044", Include) { sql(s"""select MSISDN, sum(TCP_DW_RETRANS + 10) Total from smart_500_DINC group by MSISDN order by Total limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC045 - test("C20_DICTIONARY_INCLUDE_TC045", Include) { + //Query_DICTIONARY_INCLUDE_TC045 + test("Query_DICTIONARY_INCLUDE_TC045", Include) { checkAnswer(s"""select MSISDN, min(LAYER1ID + 10) Total from smart_500_DINC group by MSISDN order by MSISDN""", - s"""select MSISDN, min(LAYER1ID + 10) Total from smart_500_DINC_hive group by MSISDN order by MSISDN""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC045") + s"""select MSISDN, min(LAYER1ID + 10) Total from smart_500_DINC_hive group by MSISDN order by MSISDN""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC045") } - //C20_DICTIONARY_INCLUDE_TC046 - test("C20_DICTIONARY_INCLUDE_TC046", Include) { + //Query_DICTIONARY_INCLUDE_TC046 + test("Query_DICTIONARY_INCLUDE_TC046", Include) { checkAnswer(s"""select avg (if(LAYER1ID>100,NULL,LAYER1ID)) a from smart_500_DINC""", - s"""select avg (if(LAYER1ID>100,NULL,LAYER1ID)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC046") + s"""select avg (if(LAYER1ID>100,NULL,LAYER1ID)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC046") } - //C20_DICTIONARY_INCLUDE_TC047 - test("C20_DICTIONARY_INCLUDE_TC047", Include) { + //Query_DICTIONARY_INCLUDE_TC047 + test("Query_DICTIONARY_INCLUDE_TC047", Include) { checkAnswer(s"""select avg (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC""", - s"""select avg (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC047") + s"""select avg (if(TCP_DW_RETRANS>100,NULL,TCP_DW_RETRANS)) a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC047") } - //C20_DICTIONARY_INCLUDE_TC048 - ignore("C20_DICTIONARY_INCLUDE_TC048", Include) { + //Query_DICTIONARY_INCLUDE_TC048 + ignore("Query_DICTIONARY_INCLUDE_TC048", Include) { checkAnswer(s"""select variance(LAYER1ID) as a from smart_500_DINC""", - s"""select variance(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC048") + s"""select variance(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC048") } - //C20_DICTIONARY_INCLUDE_TC049 - ignore("C20_DICTIONARY_INCLUDE_TC049", Include) { + //Query_DICTIONARY_INCLUDE_TC049 + ignore("Query_DICTIONARY_INCLUDE_TC049", Include) { checkAnswer(s"""select var_pop(LAYER1ID) as a from smart_500_DINC""", - s"""select var_pop(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC049") + s"""select var_pop(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC049") } - //C20_DICTIONARY_INCLUDE_TC050 - ignore("C20_DICTIONARY_INCLUDE_TC050", Include) { + //Query_DICTIONARY_INCLUDE_TC050 + ignore("Query_DICTIONARY_INCLUDE_TC050", Include) { checkAnswer(s"""select var_samp(LAYER1ID) as a from smart_500_DINC""", - s"""select var_samp(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC050") + s"""select var_samp(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC050") } - //C20_DICTIONARY_INCLUDE_TC051 - ignore("C20_DICTIONARY_INCLUDE_TC051", Include) { + //Query_DICTIONARY_INCLUDE_TC051 + ignore("Query_DICTIONARY_INCLUDE_TC051", Include) { checkAnswer(s"""select stddev_pop(LAYER1ID) as a from smart_500_DINC""", - s"""select stddev_pop(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC051") + s"""select stddev_pop(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC051") } - //C20_DICTIONARY_INCLUDE_TC052 - ignore("C20_DICTIONARY_INCLUDE_TC052", Include) { + //Query_DICTIONARY_INCLUDE_TC052 + ignore("Query_DICTIONARY_INCLUDE_TC052", Include) { checkAnswer(s"""select stddev_samp(LAYER1ID) as a from smart_500_DINC""", - s"""select stddev_samp(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC052") + s"""select stddev_samp(LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC052") } - //C20_DICTIONARY_INCLUDE_TC053 - ignore("C20_DICTIONARY_INCLUDE_TC053", Include) { + //Query_DICTIONARY_INCLUDE_TC053 + ignore("Query_DICTIONARY_INCLUDE_TC053", Include) { checkAnswer(s"""select covar_pop(LAYER1ID,LAYER1ID) as a from smart_500_DINC""", - s"""select covar_pop(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC053") + s"""select covar_pop(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC053") } - //C20_DICTIONARY_INCLUDE_TC054 - ignore("C20_DICTIONARY_INCLUDE_TC054", Include) { + //Query_DICTIONARY_INCLUDE_TC054 + ignore("Query_DICTIONARY_INCLUDE_TC054", Include) { checkAnswer(s"""select covar_samp(LAYER1ID,LAYER1ID) as a from smart_500_DINC""", - s"""select covar_samp(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC054") + s"""select covar_samp(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC054") } - //C20_DICTIONARY_INCLUDE_TC055 - test("C20_DICTIONARY_INCLUDE_TC055", Include) { + //Query_DICTIONARY_INCLUDE_TC055 + test("Query_DICTIONARY_INCLUDE_TC055", Include) { checkAnswer(s"""select corr(LAYER1ID,LAYER1ID) as a from smart_500_DINC""", - s"""select corr(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC055") + s"""select corr(LAYER1ID,LAYER1ID) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC055") } - //C20_DICTIONARY_INCLUDE_TC056 - test("C20_DICTIONARY_INCLUDE_TC056", Include) { + //Query_DICTIONARY_INCLUDE_TC056 + test("Query_DICTIONARY_INCLUDE_TC056", Include) { checkAnswer(s"""select percentile(LAYER1ID,0.2) as a from smart_500_DINC""", - s"""select percentile(LAYER1ID,0.2) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC056") + s"""select percentile(LAYER1ID,0.2) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC056") } - //C20_DICTIONARY_INCLUDE_TC057 - test("C20_DICTIONARY_INCLUDE_TC057", Include) { + //Query_DICTIONARY_INCLUDE_TC057 + test("Query_DICTIONARY_INCLUDE_TC057", Include) { checkAnswer(s"""select percentile(LAYER1ID,array(0,0.2,0.3,1)) as a from smart_500_DINC""", - s"""select percentile(LAYER1ID,array(0,0.2,0.3,1)) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC057") + s"""select percentile(LAYER1ID,array(0,0.2,0.3,1)) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC057") } - //C20_DICTIONARY_INCLUDE_TC058 - test("C20_DICTIONARY_INCLUDE_TC058", Include) { + //Query_DICTIONARY_INCLUDE_TC058 + test("Query_DICTIONARY_INCLUDE_TC058", Include) { sql(s"""select percentile_approx(LAYER1ID,0.2) as a from (select LAYER1ID from smart_500_DINC order by LAYER1ID) t""").collect } - //C20_DICTIONARY_INCLUDE_TC059 - test("C20_DICTIONARY_INCLUDE_TC059", Include) { + //Query_DICTIONARY_INCLUDE_TC059 + test("Query_DICTIONARY_INCLUDE_TC059", Include) { sql(s"""select percentile_approx(LAYER1ID,0.2,5) as a from (select LAYER1ID from smart_500_DINC order by LAYER1ID) t""").collect } - //C20_DICTIONARY_INCLUDE_TC060 - test("C20_DICTIONARY_INCLUDE_TC060", Include) { + //Query_DICTIONARY_INCLUDE_TC060 + test("Query_DICTIONARY_INCLUDE_TC060", Include) { sql(s"""select percentile_approx(LAYER1ID,array(0.2,0.3,0.99)) as a from (select LAYER1ID from smart_500_DINC order by LAYER1ID) t""").collect } - //C20_DICTIONARY_INCLUDE_TC061 - test("C20_DICTIONARY_INCLUDE_TC061", Include) { + //Query_DICTIONARY_INCLUDE_TC061 + test("Query_DICTIONARY_INCLUDE_TC061", Include) { sql(s"""select percentile_approx(LAYER1ID,array(0.2,0.3,0.99),5) as a from (select LAYER1ID from smart_500_DINC order by LAYER1ID) t""").collect } - //C20_DICTIONARY_INCLUDE_TC062 - test("C20_DICTIONARY_INCLUDE_TC062", Include) { + //Query_DICTIONARY_INCLUDE_TC062 + test("Query_DICTIONARY_INCLUDE_TC062", Include) { sql(s"""select histogram_numeric(LAYER1ID,2) as a from (select LAYER1ID from smart_500_DINC order by LAYER1ID) t""").collect } - //C20_DICTIONARY_INCLUDE_TC063 - ignore("C20_DICTIONARY_INCLUDE_TC063", Include) { + //Query_DICTIONARY_INCLUDE_TC063 + ignore("Query_DICTIONARY_INCLUDE_TC063", Include) { checkAnswer(s"""select variance(TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select variance(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC063") + s"""select variance(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC063") } - //C20_DICTIONARY_INCLUDE_TC064 - ignore("C20_DICTIONARY_INCLUDE_TC064", Include) { + //Query_DICTIONARY_INCLUDE_TC064 + ignore("Query_DICTIONARY_INCLUDE_TC064", Include) { checkAnswer(s"""select var_pop(TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select var_pop(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC064") + s"""select var_pop(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC064") } - //C20_DICTIONARY_INCLUDE_TC065 - ignore("C20_DICTIONARY_INCLUDE_TC065", Include) { + //Query_DICTIONARY_INCLUDE_TC065 + ignore("Query_DICTIONARY_INCLUDE_TC065", Include) { checkAnswer(s"""select var_samp(TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select var_samp(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC065") + s"""select var_samp(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC065") } - //C20_DICTIONARY_INCLUDE_TC066 - ignore("C20_DICTIONARY_INCLUDE_TC066", Include) { + //Query_DICTIONARY_INCLUDE_TC066 + ignore("Query_DICTIONARY_INCLUDE_TC066", Include) { checkAnswer(s"""select stddev_pop(TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select stddev_pop(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC066") + s"""select stddev_pop(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC066") } - //C20_DICTIONARY_INCLUDE_TC067 - ignore("C20_DICTIONARY_INCLUDE_TC067", Include) { + //Query_DICTIONARY_INCLUDE_TC067 + ignore("Query_DICTIONARY_INCLUDE_TC067", Include) { checkAnswer(s"""select stddev_samp(TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select stddev_samp(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC067") + s"""select stddev_samp(TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC067") } - //C20_DICTIONARY_INCLUDE_TC068 - ignore("C20_DICTIONARY_INCLUDE_TC068", Include) { + //Query_DICTIONARY_INCLUDE_TC068 + ignore("Query_DICTIONARY_INCLUDE_TC068", Include) { checkAnswer(s"""select covar_pop(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select covar_pop(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC068") + s"""select covar_pop(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC068") } - //C20_DICTIONARY_INCLUDE_TC069 - ignore("C20_DICTIONARY_INCLUDE_TC069", Include) { + //Query_DICTIONARY_INCLUDE_TC069 + ignore("Query_DICTIONARY_INCLUDE_TC069", Include) { checkAnswer(s"""select covar_samp(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select covar_samp(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC069") + s"""select covar_samp(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC069") } - //C20_DICTIONARY_INCLUDE_TC070 - test("C20_DICTIONARY_INCLUDE_TC070", Include) { + //Query_DICTIONARY_INCLUDE_TC070 + test("Query_DICTIONARY_INCLUDE_TC070", Include) { checkAnswer(s"""select corr(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC""", - s"""select corr(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC070") + s"""select corr(TCP_DW_RETRANS,TCP_DW_RETRANS) as a from smart_500_DINC_hive""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC070") } - //C20_DICTIONARY_INCLUDE_TC073 - test("C20_DICTIONARY_INCLUDE_TC073", Include) { + //Query_DICTIONARY_INCLUDE_TC073 + test("Query_DICTIONARY_INCLUDE_TC073", Include) { sql(s"""select percentile_approx(TCP_DW_RETRANS,0.2) as a from (select TCP_DW_RETRANS from smart_500_DINC order by TCP_DW_RETRANS) t""").collect } - //C20_DICTIONARY_INCLUDE_TC074 - test("C20_DICTIONARY_INCLUDE_TC074", Include) { + //Query_DICTIONARY_INCLUDE_TC074 + test("Query_DICTIONARY_INCLUDE_TC074", Include) { sql(s"""select percentile_approx(TCP_DW_RETRANS,0.2,5) as a from (select TCP_DW_RETRANS from smart_500_DINC order by TCP_DW_RETRANS) t""").collect } - //C20_DICTIONARY_INCLUDE_TC075 - test("C20_DICTIONARY_INCLUDE_TC075", Include) { + //Query_DICTIONARY_INCLUDE_TC075 + test("Query_DICTIONARY_INCLUDE_TC075", Include) { sql(s"""select percentile_approx(TCP_DW_RETRANS,array(0.2,0.3,0.99)) as a from (select TCP_DW_RETRANS from smart_500_DINC order by TCP_DW_RETRANS) t""").collect } - //C20_DICTIONARY_INCLUDE_TC076 - test("C20_DICTIONARY_INCLUDE_TC076", Include) { + //Query_DICTIONARY_INCLUDE_TC076 + test("Query_DICTIONARY_INCLUDE_TC076", Include) { sql(s"""select percentile_approx(TCP_DW_RETRANS,array(0.2,0.3,0.99),5) as a from (select TCP_DW_RETRANS from smart_500_DINC order by TCP_DW_RETRANS) t""").collect } - //C20_DICTIONARY_INCLUDE_TC077 - test("C20_DICTIONARY_INCLUDE_TC077", Include) { + //Query_DICTIONARY_INCLUDE_TC077 + test("Query_DICTIONARY_INCLUDE_TC077", Include) { sql(s"""select histogram_numeric(TCP_DW_RETRANS,2) as a from (select TCP_DW_RETRANS from smart_500_DINC order by TCP_DW_RETRANS) t""").collect } - //C20_DICTIONARY_INCLUDE_TC094 - test("C20_DICTIONARY_INCLUDE_TC094", Include) { + //Query_DICTIONARY_INCLUDE_TC094 + test("Query_DICTIONARY_INCLUDE_TC094", Include) { sql(s"""select Upper(streaming_url) a ,host from smart_500_DINC order by host limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC095 - test("C20_DICTIONARY_INCLUDE_TC095", Include) { + //Query_DICTIONARY_INCLUDE_TC095 + test("Query_DICTIONARY_INCLUDE_TC095", Include) { sql(s"""select Lower(streaming_url) a from smart_500_DINC order by host limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC096 - test("C20_DICTIONARY_INCLUDE_TC096", Include) { + //Query_DICTIONARY_INCLUDE_TC096 + test("Query_DICTIONARY_INCLUDE_TC096", Include) { sql(s"""select streaming_url as b,LAYER1ID as a from smart_500_DINC order by a,b asc limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC097 - test("C20_DICTIONARY_INCLUDE_TC097", Include) { + //Query_DICTIONARY_INCLUDE_TC097 + test("Query_DICTIONARY_INCLUDE_TC097", Include) { sql(s"""select streaming_url as b,TCP_DW_RETRANS as a from smart_500_DINC order by a,b desc limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC098 - test("C20_DICTIONARY_INCLUDE_TC098", Include) { + //Query_DICTIONARY_INCLUDE_TC098 + test("Query_DICTIONARY_INCLUDE_TC098", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url ='www.hua1/xyz'""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url ='www.hua1/xyz'""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC098") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url ='www.hua1/xyz'""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC098") } - //C20_DICTIONARY_INCLUDE_TC099 - test("C20_DICTIONARY_INCLUDE_TC099", Include) { + //Query_DICTIONARY_INCLUDE_TC099 + test("Query_DICTIONARY_INCLUDE_TC099", Include) { sql(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url ='www.hua90/xyz' and TCP_DW_RETRANS ='82.0' limit 10""").collect } - //C20_DICTIONARY_INCLUDE_TC100 - test("C20_DICTIONARY_INCLUDE_TC100", Include) { + //Query_DICTIONARY_INCLUDE_TC100 + test("Query_DICTIONARY_INCLUDE_TC100", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url ='www.hua1/xyz' or TCP_DW_RETRANS ='82.0'""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url ='www.hua1/xyz' or TCP_DW_RETRANS ='82.0'""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC100") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url ='www.hua1/xyz' or TCP_DW_RETRANS ='82.0'""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC100") } - //C20_DICTIONARY_INCLUDE_TC101 - test("C20_DICTIONARY_INCLUDE_TC101", Include) { + //Query_DICTIONARY_INCLUDE_TC101 + test("Query_DICTIONARY_INCLUDE_TC101", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url !='www.hua1/xyz' order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url !='www.hua1/xyz' order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC101") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url !='www.hua1/xyz' order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC101") } - //C20_DICTIONARY_INCLUDE_TC102 - test("C20_DICTIONARY_INCLUDE_TC102", Include) { + //Query_DICTIONARY_INCLUDE_TC102 + test("Query_DICTIONARY_INCLUDE_TC102", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url !='www.hua1/xyz' and TCP_DW_RETRANS !='152.0' order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url !='www.hua1/xyz' and TCP_DW_RETRANS !='152.0' order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC102") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url !='www.hua1/xyz' and TCP_DW_RETRANS !='152.0' order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC102") } - //C20_DICTIONARY_INCLUDE_TC103 - test("C20_DICTIONARY_INCLUDE_TC103", Include) { + //Query_DICTIONARY_INCLUDE_TC103 + test("Query_DICTIONARY_INCLUDE_TC103", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where TCP_DW_RETRANS >2.0 order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where TCP_DW_RETRANS >2.0 order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC103") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where TCP_DW_RETRANS >2.0 order by LAYER1ID,TCP_DW_RETRANS,streaming_url limit 10""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC103") } - //C20_DICTIONARY_INCLUDE_TC104 - test("C20_DICTIONARY_INCLUDE_TC104", Include) { + //Query_DICTIONARY_INCLUDE_TC104 + test("Query_DICTIONARY_INCLUDE_TC104", Include) { checkAnswer(s"""select LAYER1ID as a from smart_500_DINC where LAYER1ID<=>LAYER1ID order by LAYER1ID desc limit 10""", - s"""select LAYER1ID as a from smart_500_DINC_hive where LAYER1ID<=>LAYER1ID order by LAYER1ID desc limit 10""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC104") + s"""select LAYER1ID as a from smart_500_DINC_hive where LAYER1ID<=>LAYER1ID order by LAYER1ID desc limit 10""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC104") } - //C20_DICTIONARY_INCLUDE_TC105 - test("C20_DICTIONARY_INCLUDE_TC105", Include) { + //Query_DICTIONARY_INCLUDE_TC105 + test("Query_DICTIONARY_INCLUDE_TC105", Include) { checkAnswer(s"""SELECT LAYER1ID,TCP_DW_RETRANS,streaming_url FROM (select * from smart_500_DINC) SUB_QRY ORDER BY LAYER1ID,TCP_DW_RETRANS,streaming_url ASC limit 10""", - s"""SELECT LAYER1ID,TCP_DW_RETRANS,streaming_url FROM (select * from smart_500_DINC_hive) SUB_QRY ORDER BY LAYER1ID,TCP_DW_RETRANS,streaming_url ASC limit 10""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC105") + s"""SELECT LAYER1ID,TCP_DW_RETRANS,streaming_url FROM (select * from smart_500_DINC_hive) SUB_QRY ORDER BY LAYER1ID,TCP_DW_RETRANS,streaming_url ASC limit 10""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC105") } - //C20_DICTIONARY_INCLUDE_TC106 - test("C20_DICTIONARY_INCLUDE_TC106", Include) { + //Query_DICTIONARY_INCLUDE_TC106 + test("Query_DICTIONARY_INCLUDE_TC106", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where ( LAYER1ID+1) == 101 order by TCP_DW_RETRANS,LAYER1ID limit 5""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where ( LAYER1ID+1) == 101 order by TCP_DW_RETRANS,LAYER1ID limit 5""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC106") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where ( LAYER1ID+1) == 101 order by TCP_DW_RETRANS,LAYER1ID limit 5""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC106") } - //C20_DICTIONARY_INCLUDE_TC107 - test("C20_DICTIONARY_INCLUDE_TC107", Include) { + //Query_DICTIONARY_INCLUDE_TC107 + test("Query_DICTIONARY_INCLUDE_TC107", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url is null order by LAYER1ID,TCP_DW_RETRANS,streaming_url """, - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url is null order by LAYER1ID,TCP_DW_RETRANS,streaming_url """, "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC107") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url is null order by LAYER1ID,TCP_DW_RETRANS,streaming_url """, "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC107") } - //C20_DICTIONARY_INCLUDE_TC108 - test("C20_DICTIONARY_INCLUDE_TC108", Include) { + //Query_DICTIONARY_INCLUDE_TC108 + test("Query_DICTIONARY_INCLUDE_TC108", Include) { checkAnswer(s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC where streaming_url is not null order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", - s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url is not null order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", "QueriesIncludeDictionaryTestCase_C20_DICTIONARY_INCLUDE_TC108") + s"""select LAYER1ID,TCP_DW_RETRANS,streaming_url from smart_500_DINC_hive where streaming_url is not null order by LAYER1ID,TCP_DW_RETRANS,streaming_url""", "QueriesIncludeDictionaryTestCase_Query_DICTIONARY_INCLUDE_TC108") } override def afterAll { - sql("drop table if exists VMALL_DICTIONARY_INCLUDE") - sql("drop table if exists VMALL_DICTIONARY_INCLUDE_hive") - sql("drop table if exists VMALL_DICTIONARY_INCLUDE1") - sql("drop table if exists VMALL_DICTIONARY_INCLUDE1_hive") + sql("drop table if exists TABLE_DICTIONARY_INCLUDE") + sql("drop table if exists TABLE_DICTIONARY_INCLUDE_hive") + sql("drop table if exists TABLE_DICTIONARY_INCLUDE1") + sql("drop table if exists TABLE_DICTIONARY_INCLUDE1_hive") sql("drop table if exists smart_500_DINC") sql("drop table if exists smart_500_DINC_hive") } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesNormalTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesNormalTestCase.scala index 4ce40127a66..afd0b9b7c12 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesNormalTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesNormalTestCase.scala @@ -269,8 +269,8 @@ class QueriesNormalTestCase extends QueryTest with BeforeAndAfterAll { } - //SmartPCC_CreateCube_TC_001 - test("SmartPCC_CreateCube_TC_001", Include) { + //Sample_CreateCube_TC_001 + test("Sample_CreateCube_TC_001", Include) { sql(s"""drop table if exists traffic_2g_3g_4g""").collect sql(s"""create table IF NOT EXISTS traffic_2g_3g_4g (SOURCE_INFO String ,APP_CATEGORY_ID String ,APP_CATEGORY_NAME String ,APP_SUB_CATEGORY_ID String ,APP_SUB_CATEGORY_NAME String ,RAT_NAME String ,IMSI String ,OFFER_MSISDN String ,OFFER_ID String ,OFFER_OPTION_1 String ,OFFER_OPTION_2 String ,OFFER_OPTION_3 String ,MSISDN String ,PACKAGE_TYPE String ,PACKAGE_PRICE String ,TAG_IMSI String ,TAG_MSISDN String ,PROVINCE String ,CITY String ,AREA_CODE String ,TAC String ,IMEI String ,TERMINAL_TYPE String ,TERMINAL_BRAND String ,TERMINAL_MODEL String ,PRICE_LEVEL String ,NETWORK String ,SHIPPED_OS String ,WIFI String ,WIFI_HOTSPOT String ,GSM String ,WCDMA String ,TD_SCDMA String ,LTE_FDD String ,LTE_TDD String ,CDMA String ,SCREEN_SIZE String ,SCREEN_RESOLUTION String ,HOST_NAME String ,WEBSITE_NAME String ,OPERATOR String ,SRV_TYPE_NAME String ,TAG_HOST String ,CGI String ,CELL_NAME String ,COVERITY_TYPE1 String ,COVERITY_TYPE2 String ,COVERITY_TYPE3 String ,COVERITY_TYPE4 String ,COVERITY_TYPE5 String ,LATITUDE String ,LONGITUDE String ,AZIMUTH String ,TAG_CGI String ,APN String ,USER_AGENT String ,DAY String ,HOUR String ,MIN String ,IS_DEFAULT_BEAR int ,EPS_BEARER_ID String ,QCI int ,USER_FILTER String ,ANALYSIS_PERIOD String, UP_THROUGHPUT double,DOWN_THROUGHPUT double,UP_PKT_NUM double,DOWN_PKT_NUM double,APP_REQUEST_NUM double,PKT_NUM_LEN_1_64 double,PKT_NUM_LEN_64_128 double,PKT_NUM_LEN_128_256 double,PKT_NUM_LEN_256_512 double,PKT_NUM_LEN_512_768 double,PKT_NUM_LEN_768_1024 double,PKT_NUM_LEN_1024_ALL double,IP_FLOW_MARK double) STORED BY 'org.apache.carbondata.format'""").collect @@ -280,8 +280,8 @@ class QueriesNormalTestCase extends QueryTest with BeforeAndAfterAll { } - //CMBC_CreateCube_1 - test("CMBC_CreateCube_1", Include) { + //Sample1_CreateCube_1 + test("Sample1_CreateCube_1", Include) { sql(s"""drop table if exists cmb""").collect sql(s"""drop table if exists cmb_hive""").collect @@ -292,8 +292,8 @@ class QueriesNormalTestCase extends QueryTest with BeforeAndAfterAll { } - //CMBC_Query_1 - test("CMBC_Query_1", Include) { + //Sample1_Query_1 + test("Sample1_Query_1", Include) { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/cmb/data.csv' INTO table cmb OPTIONS ('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='Cust_UID,year,month,companyAddress,companyNumber,company,occupation,certicardValidTime,race,CerticardCity,birthday,VIPLevel,ageRange,familyaddress,familyadNumber,dimension16,SubsidaryBank,AccountCreationTime,dimension19,dimension20,DemandDeposits,TimeDeposits,financial,TreasuryBonds,fund,incomeOneyear,outcomeOneyear,insurance,Goldaccount,dollarDeposits,euroDeposits,euroDeposits1,euroDeposits2,yenDeposits,wonDeposits,rupeeDeposits,HongKongDeposits,numberoftransactions,measure19,measure20,measure21,measure22,measure23,measure24,measure25,measure26,measure27,measure28,measure29,measure30,measure31,measure32,measure33,measure34,measure35,measure36,measure37,measure38,measure39,measure40,measure41,measure42,measure43,measure44,measure45,measure46,measure47,measure48,measure49,measure50,measure51,measure52,measure53')""").collect @@ -303,191 +303,191 @@ class QueriesNormalTestCase extends QueryTest with BeforeAndAfterAll { } - //CMBC_Query_2 - test("CMBC_Query_2", Include) { + //Sample1_Query_2 + test("Sample1_Query_2", Include) { checkAnswer(s"""select count(*) from cmb""", - s"""select count(*) from cmb_hive""", "QueriesNormalTestCase_CMBC_Query_2") + s"""select count(*) from cmb_hive""", "QueriesNormalTestCase_Sample1_Query_2") } - //CMBC_Query_3 - test("CMBC_Query_3", Include) { + //Sample1_Query_3 + test("Sample1_Query_3", Include) { checkAnswer(s"""select COUNT(DISTINCT Cust_UID) from cmb""", - s"""select COUNT(DISTINCT Cust_UID) from cmb_hive""", "QueriesNormalTestCase_CMBC_Query_3") + s"""select COUNT(DISTINCT Cust_UID) from cmb_hive""", "QueriesNormalTestCase_Sample1_Query_3") } - //CMBC_Query_4 - test("CMBC_Query_4", Include) { + //Sample1_Query_4 + test("Sample1_Query_4", Include) { checkAnswer(s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE `year` = "2015" GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", - s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE `year` = "2015" GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_CMBC_Query_4") + s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE `year` = "2015" GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_Sample1_Query_4") } - //CMBC_Query_5 - test("CMBC_Query_5", Include) { + //Sample1_Query_5 + test("Sample1_Query_5", Include) { checkAnswer(s"""SELECT SubsidaryBank, occupation, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE ( ( occupation = "Administrative Support") AND ( SubsidaryBank = "ABN AMRO")) AND ( SubsidaryBank = "ABN AMRO") GROUP BY SubsidaryBank, occupation, VIPLevel ORDER BY SubsidaryBank ASC, occupation ASC, VIPLevel ASC""", - s"""SELECT SubsidaryBank, occupation, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( ( occupation = "Administrative Support") AND ( SubsidaryBank = "ABN AMRO")) AND ( SubsidaryBank = "ABN AMRO") GROUP BY SubsidaryBank, occupation, VIPLevel ORDER BY SubsidaryBank ASC, occupation ASC, VIPLevel ASC""", "QueriesNormalTestCase_CMBC_Query_5") + s"""SELECT SubsidaryBank, occupation, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( ( occupation = "Administrative Support") AND ( SubsidaryBank = "ABN AMRO")) AND ( SubsidaryBank = "ABN AMRO") GROUP BY SubsidaryBank, occupation, VIPLevel ORDER BY SubsidaryBank ASC, occupation ASC, VIPLevel ASC""", "QueriesNormalTestCase_Sample1_Query_5") } - //CMBC_Query_6 - test("CMBC_Query_6", Include) { + //Sample1_Query_6 + test("Sample1_Query_6", Include) { checkAnswer(s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", - s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_CMBC_Query_6") + s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_Sample1_Query_6") } - //CMBC_Query_7 - test("CMBC_Query_7", Include) { + //Sample1_Query_7 + test("Sample1_Query_7", Include) { checkAnswer(s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE SubsidaryBank IN ("ABN AMRO","Bank Sepah") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", - s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("ABN AMRO","Bank Sepah") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_CMBC_Query_7") + s"""SELECT SubsidaryBank, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("ABN AMRO","Bank Sepah") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_Sample1_Query_7") } - //CMBC_Query_8 - test("CMBC_Query_8", Include) { + //Sample1_Query_8 + test("Sample1_Query_8", Include) { checkAnswer(s"""SELECT company, CerticardCity, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE ( company IN ("Agricultural Bank of China","COSCO1")) AND ( CerticardCity IN ("Beijing1","Huangyan1","Yakeshi1","Korla1")) GROUP BY company, CerticardCity, VIPLevel ORDER BY company ASC, CerticardCity ASC, VIPLevel ASC""", - s"""SELECT company, CerticardCity, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( company IN ("Agricultural Bank of China","COSCO1")) AND ( CerticardCity IN ("Beijing1","Huangyan1","Yakeshi1","Korla1")) GROUP BY company, CerticardCity, VIPLevel ORDER BY company ASC, CerticardCity ASC, VIPLevel ASC""", "QueriesNormalTestCase_CMBC_Query_8") + s"""SELECT company, CerticardCity, VIPLevel, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( company IN ("Agricultural Bank of China","COSCO1")) AND ( CerticardCity IN ("Beijing1","Huangyan1","Yakeshi1","Korla1")) GROUP BY company, CerticardCity, VIPLevel ORDER BY company ASC, CerticardCity ASC, VIPLevel ASC""", "QueriesNormalTestCase_Sample1_Query_8") } - //CMBC_Query_9 - test("CMBC_Query_9", Include) { + //Sample1_Query_9 + test("Sample1_Query_9", Include) { checkAnswer(s"""SELECT SubsidaryBank, ageRange, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE ( ageRange IN ("(1-3)","(100-105)")) AND ( SubsidaryBank IN ("ABN AMRO","Busan Bank","Huaxia Bank")) GROUP BY SubsidaryBank, ageRange ORDER BY SubsidaryBank ASC, ageRange ASC""", - s"""SELECT SubsidaryBank, ageRange, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( ageRange IN ("(1-3)","(100-105)")) AND ( SubsidaryBank IN ("ABN AMRO","Busan Bank","Huaxia Bank")) GROUP BY SubsidaryBank, ageRange ORDER BY SubsidaryBank ASC, ageRange ASC""", "QueriesNormalTestCase_CMBC_Query_9") + s"""SELECT SubsidaryBank, ageRange, COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( ageRange IN ("(1-3)","(100-105)")) AND ( SubsidaryBank IN ("ABN AMRO","Busan Bank","Huaxia Bank")) GROUP BY SubsidaryBank, ageRange ORDER BY SubsidaryBank ASC, ageRange ASC""", "QueriesNormalTestCase_Sample1_Query_9") } - //CMBC_Query_10 - test("CMBC_Query_10", Include) { + //Sample1_Query_10 + test("Sample1_Query_10", Include) { checkAnswer(s"""SELECT SubsidaryBank, SUM(incomeOneyear) AS Sum_incomeOneyear, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Real-Estate Bank") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", - s"""SELECT SubsidaryBank, SUM(incomeOneyear) AS Sum_incomeOneyear, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Real-Estate Bank") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_CMBC_Query_10") + s"""SELECT SubsidaryBank, SUM(incomeOneyear) AS Sum_incomeOneyear, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Real-Estate Bank") GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_Sample1_Query_10") } - //CMBC_Query_11 - test("CMBC_Query_11", Include) { + //Sample1_Query_11 + test("Sample1_Query_11", Include) { checkAnswer(s"""SELECT `year`, `month`, SUM(DemandDeposits) AS Sum_DemandDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb) SUB_QRY WHERE ( SubsidaryBank = "CMB Financial Leasing Ltd") AND ( Cust_UID = "CMB0000000000000000000000") GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", - s"""SELECT `year`, `month`, SUM(DemandDeposits) AS Sum_DemandDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "CMB Financial Leasing Ltd") AND ( Cust_UID = "CMB0000000000000000000000") GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_CMBC_Query_11") + s"""SELECT `year`, `month`, SUM(DemandDeposits) AS Sum_DemandDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "CMB Financial Leasing Ltd") AND ( Cust_UID = "CMB0000000000000000000000") GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_Sample1_Query_11") } - //CMBC_Query_12 - test("CMBC_Query_12", Include) { + //Sample1_Query_12 + test("Sample1_Query_12", Include) { checkAnswer(s"""SELECT `year`, `month`, SUM(yenDeposits) AS Sum_yenDeposits, SUM(HongKongDeposits) AS Sum_HongKongDeposits, SUM(dollarDeposits) AS Sum_dollarDeposits, SUM(euroDeposits) AS Sum_euroDeposits FROM (select * from cmb) SUB_QRY WHERE ( SubsidaryBank = "Credit Suisse") AND ( `month` IN ("1","2","3")) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", - s"""SELECT `year`, `month`, SUM(yenDeposits) AS Sum_yenDeposits, SUM(HongKongDeposits) AS Sum_HongKongDeposits, SUM(dollarDeposits) AS Sum_dollarDeposits, SUM(euroDeposits) AS Sum_euroDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "Credit Suisse") AND ( `month` IN ("1","2","3")) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_CMBC_Query_12") + s"""SELECT `year`, `month`, SUM(yenDeposits) AS Sum_yenDeposits, SUM(HongKongDeposits) AS Sum_HongKongDeposits, SUM(dollarDeposits) AS Sum_dollarDeposits, SUM(euroDeposits) AS Sum_euroDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "Credit Suisse") AND ( `month` IN ("1","2","3")) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_Sample1_Query_12") } - //CMBC_Query_13 - test("CMBC_Query_13", Include) { + //Sample1_Query_13 + test("Sample1_Query_13", Include) { checkAnswer(s"""SELECT Cust_UID, `month`, `year`, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb) SUB_QRY WHERE Cust_UID IN ("CMB0000000000000000000119","CMB0000000000000000000308") and month="1" GROUP BY Cust_UID, `month`, `year` ORDER BY Cust_UID ASC, `month` ASC, `year` ASC""", - s"""SELECT Cust_UID, `month`, `year`, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE Cust_UID IN ("CMB0000000000000000000119","CMB0000000000000000000308") and month="1" GROUP BY Cust_UID, `month`, `year` ORDER BY Cust_UID ASC, `month` ASC, `year` ASC""", "QueriesNormalTestCase_CMBC_Query_13") + s"""SELECT Cust_UID, `month`, `year`, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE Cust_UID IN ("CMB0000000000000000000119","CMB0000000000000000000308") and month="1" GROUP BY Cust_UID, `month`, `year` ORDER BY Cust_UID ASC, `month` ASC, `year` ASC""", "QueriesNormalTestCase_Sample1_Query_13") } - //CMBC_Query_14 - test("CMBC_Query_14", Include) { + //Sample1_Query_14 + test("Sample1_Query_14", Include) { checkAnswer(s"""SELECT SubsidaryBank, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb) SUB_QRY WHERE SubsidaryBank = "Daegu Bank" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", - s"""SELECT SubsidaryBank, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank = "Daegu Bank" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_CMBC_Query_14") + s"""SELECT SubsidaryBank, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank = "Daegu Bank" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_Sample1_Query_14") } - //CMBC_Query_15 - test("CMBC_Query_15", Include) { + //Sample1_Query_15 + test("Sample1_Query_15", Include) { checkAnswer(s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb) SUB_QRY WHERE ( SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Minsheng Bank - First private bank in China")) AND ( dollarDeposits > 0)""", - s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Minsheng Bank - First private bank in China")) AND ( dollarDeposits > 0)""", "QueriesNormalTestCase_CMBC_Query_15") + s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank","Minsheng Bank - First private bank in China")) AND ( dollarDeposits > 0)""", "QueriesNormalTestCase_Sample1_Query_15") } - //CMBC_Query_16 - test("CMBC_Query_16", Include) { + //Sample1_Query_16 + test("Sample1_Query_16", Include) { checkAnswer(s"""SELECT SubsidaryBank, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank") and month="1" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", - s"""SELECT SubsidaryBank, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank") and month="1" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_CMBC_Query_16") + s"""SELECT SubsidaryBank, SUM(numberoftransactions) AS Sum_numberoftransactions FROM (select * from cmb_hive) SUB_QRY WHERE SubsidaryBank IN ("Bank Bumiputera Indonesia","Daegu Bank") and month="1" GROUP BY SubsidaryBank ORDER BY SubsidaryBank ASC""", "QueriesNormalTestCase_Sample1_Query_16") } - //CMBC_Query_17 - test("CMBC_Query_17", Include) { + //Sample1_Query_17 + test("Sample1_Query_17", Include) { checkAnswer(s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb) SUB_QRY WHERE ( SubsidaryBank = "ABC") AND ( numberoftransactions > 90.0)""", - s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "ABC") AND ( numberoftransactions > 90.0)""", "QueriesNormalTestCase_CMBC_Query_17") + s"""SELECT COUNT(Cust_UID) AS Count_Cust_UID FROM (select * from cmb_hive) SUB_QRY WHERE ( SubsidaryBank = "ABC") AND ( numberoftransactions > 90.0)""", "QueriesNormalTestCase_Sample1_Query_17") } - //CMBC_Query_18 - test("CMBC_Query_18", Include) { + //Sample1_Query_18 + test("Sample1_Query_18", Include) { checkAnswer(s"""SELECT VIPLevel, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", - s"""SELECT VIPLevel, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", "QueriesNormalTestCase_CMBC_Query_18") + s"""SELECT VIPLevel, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", "QueriesNormalTestCase_Sample1_Query_18") } - //CMBC_Query_19 - test("CMBC_Query_19", Include) { + //Sample1_Query_19 + test("Sample1_Query_19", Include) { checkAnswer(s"""SELECT CerticardCity, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", - s"""SELECT CerticardCity, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", "QueriesNormalTestCase_CMBC_Query_19") + s"""SELECT CerticardCity, COUNT(DISTINCT Cust_UID) AS DistinctCount_Cust_UID FROM (select * from cmb_hive) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", "QueriesNormalTestCase_Sample1_Query_19") } - //CMBC_Query_20 - test("CMBC_Query_20", Include) { + //Sample1_Query_20 + test("Sample1_Query_20", Include) { checkAnswer(s"""SELECT VIPLevel, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", - s"""SELECT VIPLevel, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", "QueriesNormalTestCase_CMBC_Query_20") + s"""SELECT VIPLevel, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY GROUP BY VIPLevel ORDER BY VIPLevel ASC""", "QueriesNormalTestCase_Sample1_Query_20") } - //CMBC_Query_21 - test("CMBC_Query_21", Include) { + //Sample1_Query_21 + test("Sample1_Query_21", Include) { checkAnswer(s"""SELECT CerticardCity, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", - s"""SELECT CerticardCity, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", "QueriesNormalTestCase_CMBC_Query_21") + s"""SELECT CerticardCity, SUM(yenDeposits) AS Sum_yenDeposits, SUM(numberoftransactions) AS Sum_numberoftransactions, SUM(dollarDeposits) AS Sum_dollarDeposits FROM (select * from cmb_hive) SUB_QRY GROUP BY CerticardCity ORDER BY CerticardCity ASC""", "QueriesNormalTestCase_Sample1_Query_21") } - //CMBC_Query_22 - test("CMBC_Query_22", Include) { + //Sample1_Query_22 + test("Sample1_Query_22", Include) { checkAnswer(s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb) SUB_QRY WHERE ( `month` = "1") AND ( numberoftransactions > 90.0) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", - s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( `month` = "1") AND ( numberoftransactions > 90.0) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_CMBC_Query_22") + s"""SELECT `year`, `month`, COUNT(Cust_UID) AS Count_Cust_UID, SUM(yenDeposits) AS Sum_yenDeposits FROM (select * from cmb_hive) SUB_QRY WHERE ( `month` = "1") AND ( numberoftransactions > 90.0) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC""", "QueriesNormalTestCase_Sample1_Query_22") } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesSparkBlockDistTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesSparkBlockDistTestCase.scala index 6270ee577d0..13c4918c971 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesSparkBlockDistTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/QueriesSparkBlockDistTestCase.scala @@ -28,8 +28,8 @@ import org.scalatest.BeforeAndAfterAll class QueriesSparkBlockDistTestCase extends QueryTest with BeforeAndAfterAll { - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC002123 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC002123", Include) { + //BlockDist_PTS001_TC002123 + test("BlockDist_PTS001_TC002123", Include) { sql("drop table if exists flow_carbon_256b") sql("drop table if exists flow_carbon_256b_hive") sql(s"""CREATE TABLE IF NOT EXISTS flow_carbon_256b ( txn_dte String, dt String, txn_bk String, txn_br String, own_bk String, own_br String, opp_bk String, bus_opr_cde String, opt_prd_cde String, cus_no String, cus_ac String, opp_ac_nme String, opp_ac String, bv_no String, aco_ac String, ac_dte String, txn_cnt int, jrn_par int, mfm_jrn_no String, cbn_jrn_no String, ibs_jrn_no String, vch_no String, vch_seq String, srv_cde String, bus_cd_no String, id_flg String, bv_cde String, txn_time String, txn_tlr String, ety_tlr String, ety_bk String, ety_br String, bus_pss_no String, chk_flg String, chk_tlr String, chk_jrn_no String, bus_sys_no String, txn_sub_cde String, fin_bus_cde String, fin_bus_sub_cde String, chl String, tml_id String, sus_no String, sus_seq String, cho_seq String, itm_itm String, itm_sub String, itm_sss String, dc_flg String, amt decimal(15,2), bal decimal(15,2), ccy String, spv_flg String, vch_vld_dte String, pst_bk String, pst_br String, ec_flg String, aco_tlr String, gen_flg String, his_rec_sum_flg String, his_flg String, vch_typ String, val_dte String, opp_ac_flg String, cmb_flg String, ass_vch_flg String, cus_pps_flg String, bus_rmk_cde String, vch_bus_rmk String, tec_rmk_cde String, vch_tec_rmk String, rsv_ara String, gems_last_upd_d String, gems_last_upd_d_bat String, maps_date String, maps_job String ) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='dt,jrn_par,txn_bk,txn_br,ety_bk,ety_br,chk_flg,bus_sys_no,bus_opr_cde,chl,sus_no,itm_itm,itm_sub,itm_sss,dc_flg,ccy,spv_flg,pst_bk,pst_br,ec_flg,gen_flg,his_rec_sum_flg,his_flg,vch_typ,opp_ac_flg,cmb_flg,ass_vch_flg,cus_pps_flg,bus_rmk_cde,vch_bus_rmk,tec_rmk_cde,vch_tec_rmk,rsv_ara,own_br,own_bk','DICTIONARY_EXCLUDE'='aco_ac,ac_dte,mfm_jrn_no,cbn_jrn_no,ibs_jrn_no,vch_no,vch_seq,srv_cde,cus_no,bus_cd_no,id_flg,cus_ac,bv_cde,bv_no,txn_dte,txn_time,txn_tlr,ety_tlr,bus_pss_no,chk_tlr,chk_jrn_no,txn_sub_cde,fin_bus_cde,fin_bus_sub_cde,opt_prd_cde,tml_id,sus_seq,cho_seq,vch_vld_dte,aco_tlr,opp_ac,opp_ac_nme,opp_bk,val_dte,gems_last_upd_d,gems_last_upd_d_bat,maps_date,maps_job')""").collect @@ -42,236 +42,236 @@ class QueriesSparkBlockDistTestCase extends QueryTest with BeforeAndAfterAll { } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC001", Include) { + //BlockDist_PTS001_TC001 + test("BlockDist_PTS001_TC001", Include) { checkAnswer(s"""select * from flow_carbon_256b where txn_dte>='20140101' and txn_dte <= '20140601' and txn_bk ='00000000121' order by txn_dte limit 1000""", - s"""select * from flow_carbon_256b_hive where txn_dte>='20140101' and txn_dte <= '20140601' and txn_bk ='00000000121' order by txn_dte limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC001") + s"""select * from flow_carbon_256b_hive where txn_dte>='20140101' and txn_dte <= '20140601' and txn_bk ='00000000121' order by txn_dte limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS001_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC002", Include) { + //BlockDist_PTS001_TC002 + test("BlockDist_PTS001_TC002", Include) { checkAnswer(s"""select * from flow_carbon_256b where own_br ='00000000515' and txn_dte>='20140101' and txn_dte <= '20150101' order by own_br limit 1000""", - s"""select * from flow_carbon_256b_hive where own_br ='00000000515' and txn_dte>='20140101' and txn_dte <= '20150101' order by own_br limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC002") + s"""select * from flow_carbon_256b_hive where own_br ='00000000515' and txn_dte>='20140101' and txn_dte <= '20150101' order by own_br limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS001_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC003", Include) { + //BlockDist_PTS001_TC003 + test("BlockDist_PTS001_TC003", Include) { checkAnswer(s"""select * from flow_carbon_256b where opt_prd_cde ='2889' and txn_dte>='20140101' and txn_dte <= '20160101' order by opt_prd_cde limit 1000""", - s"""select * from flow_carbon_256b_hive where opt_prd_cde ='2889' and txn_dte>='20140101' and txn_dte <= '20160101' order by opt_prd_cde limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS001_TC003") + s"""select * from flow_carbon_256b_hive where opt_prd_cde ='2889' and txn_dte>='20140101' and txn_dte <= '20160101' order by opt_prd_cde limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS001_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS002_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS002_TC001", Include) { + //BlockDist_PTS002_TC001 + test("BlockDist_PTS002_TC001", Include) { checkAnswer(s"""select * from flow_carbon_256b where cus_ac like '%22262135060488208%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000215', '00000000025','00000000086') OR own_bk IN ('00000000001','01511999999','00000000180') order by cus_ac limit 1000""", - s"""select * from flow_carbon_256b_hive where cus_ac like '%22262135060488208%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000215', '00000000025','00000000086') OR own_bk IN ('00000000001','01511999999','00000000180') order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS002_TC001") + s"""select * from flow_carbon_256b_hive where cus_ac like '%22262135060488208%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000215', '00000000025','00000000086') OR own_bk IN ('00000000001','01511999999','00000000180') order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS002_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC001", Include) { + //BlockDist_PTS003_TC001 + test("BlockDist_PTS003_TC001", Include) { checkAnswer(s"""select own_br, count(opt_prd_cde) from flow_carbon_256b group by own_br limit 1000""", - s"""select own_br, count(opt_prd_cde) from flow_carbon_256b_hive group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC001") + s"""select own_br, count(opt_prd_cde) from flow_carbon_256b_hive group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS003_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC002", Include) { + //BlockDist_PTS003_TC002 + test("BlockDist_PTS003_TC002", Include) { checkAnswer(s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b where own_br like '6%' group by own_br limit 1000""", - s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b_hive where own_br like '6%' group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC002") + s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b_hive where own_br like '6%' group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS003_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC003", Include) { + //BlockDist_PTS003_TC003 + test("BlockDist_PTS003_TC003", Include) { checkAnswer(s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b group by own_br limit 1000""", - s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b_hive group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC003") + s"""select own_br, count(distinct opt_prd_cde) from flow_carbon_256b_hive group by own_br limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS003_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC004 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC004", Include) { + //BlockDist_PTS003_TC004 + test("BlockDist_PTS003_TC004", Include) { checkAnswer(s"""select own_br, count(1) as cn from flow_carbon_256b group by own_br having cn>1""", - s"""select own_br, count(1) as cn from flow_carbon_256b_hive group by own_br having cn>1""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS003_TC004") + s"""select own_br, count(1) as cn from flow_carbon_256b_hive group by own_br having cn>1""", "QueriesSparkBlockDistTestCase_BlockDist_PTS003_TC004") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC001", Include) { + //BlockDist_PTS004_TC001 + test("BlockDist_PTS004_TC001", Include) { checkAnswer(s"""select * from flow_carbon_256b where cus_ac like '622262135067246539%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000424','00000001383','00000001942','00000001262') limit 1000""", - s"""select * from flow_carbon_256b_hive where cus_ac like '622262135067246539%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000424','00000001383','00000001942','00000001262') limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC001") + s"""select * from flow_carbon_256b_hive where cus_ac like '622262135067246539%' and (txn_dte>='20150101' and txn_dte<='20160101') and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000424','00000001383','00000001942','00000001262') limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS004_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC002", Include) { + //BlockDist_PTS004_TC002 + test("BlockDist_PTS004_TC002", Include) { checkAnswer(s"""select own_br, sum(txn_cnt) as cn from flow_carbon_256b group by own_br having cn>1 limit 1000""", - s"""select own_br, sum(txn_cnt) as cn from flow_carbon_256b_hive group by own_br having cn>1 limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC002") + s"""select own_br, sum(txn_cnt) as cn from flow_carbon_256b_hive group by own_br having cn>1 limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS004_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC003", Include) { + //BlockDist_PTS004_TC003 + test("BlockDist_PTS004_TC003", Include) { checkAnswer(s"""select * from flow_carbon_256b where cus_ac = '6222621350672465397' and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000124','00000000175','00000000034','00000000231','00000000167','00000000182','00000000206') or opp_bk='1491999999107' and (txn_dte>='20140101' and txn_dte<='20140630') limit 1000""", - s"""select * from flow_carbon_256b_hive where cus_ac = '6222621350672465397' and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000124','00000000175','00000000034','00000000231','00000000167','00000000182','00000000206') or opp_bk='1491999999107' and (txn_dte>='20140101' and txn_dte<='20140630') limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS004_TC003") + s"""select * from flow_carbon_256b_hive where cus_ac = '6222621350672465397' and txn_bk IN ('00000000000', '00000000001','00000000002') OR own_bk IN ('00000000124','00000000175','00000000034','00000000231','00000000167','00000000182','00000000206') or opp_bk='1491999999107' and (txn_dte>='20140101' and txn_dte<='20140630') limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS004_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC001", Include) { + //BlockDist_PTS005_TC001 + test("BlockDist_PTS005_TC001", Include) { checkAnswer(s"""select vch_seq, sum(amt) from flow_carbon_256b group by vch_seq limit 1000""", - s"""select vch_seq, sum(amt) from flow_carbon_256b_hive group by vch_seq limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC001") + s"""select vch_seq, sum(amt) from flow_carbon_256b_hive group by vch_seq limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS005_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC003", Include) { + //BlockDist_PTS005_TC003 + test("BlockDist_PTS005_TC003", Include) { checkAnswer(s"""select vch_seq, count(distinct cus_ac) * sum(amt) AS Total from flow_carbon_256b group by vch_seq limit 1000""", - s"""select vch_seq, count(distinct cus_ac) * sum(amt) AS Total from flow_carbon_256b_hive group by vch_seq limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS005_TC003") + s"""select vch_seq, count(distinct cus_ac) * sum(amt) AS Total from flow_carbon_256b_hive group by vch_seq limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS005_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS006_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS006_TC001", Include) { + //BlockDist_PTS006_TC001 + test("BlockDist_PTS006_TC001", Include) { checkAnswer(s"""select vch_seq, COALESCE(txn_cnt, jrn_par) Value from flow_carbon_256b group by vch_seq,txn_cnt,jrn_par limit 1000""", - s"""select vch_seq, COALESCE(txn_cnt, jrn_par) Value from flow_carbon_256b_hive group by vch_seq,txn_cnt,jrn_par limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS006_TC001") + s"""select vch_seq, COALESCE(txn_cnt, jrn_par) Value from flow_carbon_256b_hive group by vch_seq,txn_cnt,jrn_par limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS006_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC001", Include) { + //BlockDist_PTS007_TC001 + test("BlockDist_PTS007_TC001", Include) { checkAnswer(s"""select * from flow_carbon_256b where cus_no = '62226009239386397' and dt>='20140301' and dt<='20140330' order by amt desc limit 1000""", - s"""select * from flow_carbon_256b_hive where cus_no = '62226009239386397' and dt>='20140301' and dt<='20140330' order by amt desc limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC001") + s"""select * from flow_carbon_256b_hive where cus_no = '62226009239386397' and dt>='20140301' and dt<='20140330' order by amt desc limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS007_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC002", Include) { + //BlockDist_PTS007_TC002 + test("BlockDist_PTS007_TC002", Include) { checkAnswer(s"""select cus_ac from flow_carbon_256b where jrn_par is not null order by cus_ac limit 1000""", - s"""select cus_ac from flow_carbon_256b_hive where jrn_par is not null order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC002") + s"""select cus_ac from flow_carbon_256b_hive where jrn_par is not null order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS007_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC003", Include) { + //BlockDist_PTS007_TC003 + test("BlockDist_PTS007_TC003", Include) { checkAnswer(s"""select cus_ac from flow_carbon_256b where jrn_par is null order by cus_ac limit 1000""", - s"""select cus_ac from flow_carbon_256b_hive where jrn_par is null order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS007_TC003") + s"""select cus_ac from flow_carbon_256b_hive where jrn_par is null order by cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS007_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC001", Include) { + //BlockDist_PTS008_TC001 + test("BlockDist_PTS008_TC001", Include) { checkAnswer(s"""select txn_bk, MAX(distinct cus_ac) from flow_carbon_256b group by txn_bk, cus_ac""", - s"""select txn_bk, MAX(distinct cus_ac) from flow_carbon_256b_hive group by txn_bk, cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC001") + s"""select txn_bk, MAX(distinct cus_ac) from flow_carbon_256b_hive group by txn_bk, cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS008_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC002", Include) { + //BlockDist_PTS008_TC002 + test("BlockDist_PTS008_TC002", Include) { checkAnswer(s"""select txn_bk, count(distinct cus_ac) from flow_carbon_256b group by txn_bk, cus_ac""", - s"""select txn_bk, count(distinct cus_ac) from flow_carbon_256b_hive group by txn_bk, cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC002") + s"""select txn_bk, count(distinct cus_ac) from flow_carbon_256b_hive group by txn_bk, cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS008_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC003", Include) { + //BlockDist_PTS008_TC003 + test("BlockDist_PTS008_TC003", Include) { checkAnswer(s"""select distinct(txn_bk) AS TXN_BK, avg(cus_ac) from flow_carbon_256b group by txn_bk,cus_ac""", - s"""select distinct(txn_bk) AS TXN_BK, avg(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC003") + s"""select distinct(txn_bk) AS TXN_BK, avg(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS008_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC004 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC004", Include) { + //BlockDist_PTS008_TC004 + test("BlockDist_PTS008_TC004", Include) { checkAnswer(s"""select txn_bk, LAST(cus_ac) from flow_carbon_256b group by txn_bk,cus_ac""", - s"""select txn_bk, LAST(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC004") + s"""select txn_bk, LAST(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS008_TC004") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC005 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC005", Include) { + //BlockDist_PTS008_TC005 + test("BlockDist_PTS008_TC005", Include) { checkAnswer(s"""select txn_bk, FIRST(cus_ac) from flow_carbon_256b group by txn_bk,cus_ac""", - s"""select txn_bk, FIRST(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS008_TC005") + s"""select txn_bk, FIRST(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS008_TC005") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC001", Include) { + //BlockDist_PTS009_TC001 + test("BlockDist_PTS009_TC001", Include) { checkAnswer(s"""select txn_bk, percentile_approx(cast(txn_cnt as double) ,0.2) from flow_carbon_256b group by txn_bk,cus_ac""", - s"""select txn_bk, percentile_approx(cast(txn_cnt as double) ,0.2) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC001") + s"""select txn_bk, percentile_approx(cast(txn_cnt as double) ,0.2) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS009_TC001") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC002 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC002", Include) { + //BlockDist_PTS009_TC002 + test("BlockDist_PTS009_TC002", Include) { checkAnswer(s"""select txn_bk, collect_set(cus_ac) from flow_carbon_256b group by txn_bk,cus_ac""", - s"""select txn_bk, collect_set(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC002") + s"""select txn_bk, collect_set(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac""", "QueriesSparkBlockDistTestCase_BlockDist_PTS009_TC002") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC003 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC003", Include) { + //BlockDist_PTS009_TC003 + test("BlockDist_PTS009_TC003", Include) { checkAnswer(s"""select txn_bk, variance(cus_ac) from flow_carbon_256b group by txn_bk,cus_ac limit 1000""", - s"""select txn_bk, variance(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS009_TC003") + s"""select txn_bk, variance(cus_ac) from flow_carbon_256b_hive group by txn_bk,cus_ac limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS009_TC003") } - //AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS010_TC001 - test("AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS010_TC001", Include) { + //BlockDist_PTS010_TC001 + test("BlockDist_PTS010_TC001", Include) { checkAnswer(s"""select txn_bk, (txn_cnt + jrn_par) AS Result from flow_carbon_256b group by txn_bk,txn_cnt,jrn_par limit 1000""", - s"""select txn_bk, (txn_cnt + jrn_par) AS Result from flow_carbon_256b_hive group by txn_bk,txn_cnt,jrn_par limit 1000""", "QueriesSparkBlockDistTestCase_AR-Productize-New-Features-Huawei-Spark2.1-014_001_PTS010_TC001") + s"""select txn_bk, (txn_cnt + jrn_par) AS Result from flow_carbon_256b_hive group by txn_bk,txn_cnt,jrn_par limit 1000""", "QueriesSparkBlockDistTestCase_BlockDist_PTS010_TC001") } override def afterAll { diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ShowLoadsTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ShowLoadsTestCase.scala index 4a4db890cc1..08be0b56ae3 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ShowLoadsTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/ShowLoadsTestCase.scala @@ -30,7 +30,7 @@ class ShowLoadsTestCase extends QueryTest with BeforeAndAfterAll { //Verify failure/success/Partial status in show segments. - test("AR-DataSightCarbon-Maintenance-DataLoadManagement001_TOR_001-PTS-005-TC-01_196", Include) { + test("DataLoadManagement001_197", Include) { sql( s"""drop TABLE if exists ShowSegment_196""".stripMargin).collect sql(s"""CREATE TABLE ShowSegment_196 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10),Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect @@ -42,7 +42,7 @@ class ShowLoadsTestCase extends QueryTest with BeforeAndAfterAll { //Verify show segment commands with database name. - test("AR-DataSightCarbon-Maintenance-DataLoadManagement001_TOR_001-PTS-002-TC-01_196", Include) { + test("DataLoadManagement001_196", Include) { sql(s"""drop TABLE if exists Database_ShowSegment_196""").collect sql(s"""CREATE TABLE Database_ShowSegment_196 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10),Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/InsertData/join1.csv' into table Database_ShowSegment_196 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,Double_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -52,7 +52,7 @@ class ShowLoadsTestCase extends QueryTest with BeforeAndAfterAll { //Show Segments failing if table name not in same case - test("PTS-TOR_AR-DataSight_Carbon-LCM_002_001-001-TC-008_830", Include) { + test("DataLoadManagement001_830", Include) { sql(s"""drop TABLE if exists Case_ShowSegment_196""").collect sql(s"""CREATE TABLE Case_ShowSegment_196 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10),Double_COLUMN1 double,DECIMAL_COLUMN2 decimal(36,10), Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""show segments for table CASE_ShowSegment_196""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SinglepassTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SinglepassTestCase.scala index e727c5ee635..dab6e411dfd 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SinglepassTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SinglepassTestCase.scala @@ -33,28 +33,28 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading with OPTIONS ‘SINGLE_PASS’=’true’ - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_001", Include) { + test("Loading-004-01-01-01_001-TC_001", Include) { sql(s"""drop table if exists test1""").collect sql(s"""create table test1(imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test1 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test1""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_001") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_001") sql(s"""drop table test1""").collect } //To check data loading with OPTIONS ‘SINGLE_PASS’=’false’ - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_002", Include) { + test("Loading-004-01-01-01_001-TC_002", Include) { sql(s"""create table test1(imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test1 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test1""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_002") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_002") } //To check data loading from CSV with incomplete data - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_003", Include) { + test("Loading-004-01-01-01_001-TC_003", Include) { try { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect @@ -68,7 +68,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading from CSV with bad records - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_004", Include) { + test("Loading-004-01-01-01_001-TC_004", Include) { try { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_badrec.csv' INTO TABLE uniqdata OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -81,7 +81,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading from CSV with no data - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_005", Include) { + test("Loading-004-01-01-01_001-TC_005", Include) { try { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_nodata.csv' INTO TABLE uniqdata OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -94,7 +94,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading from CSV with incomplete data - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_006", Include) { + test("Loading-004-01-01-01_001-TC_006", Include) { try { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_incomplete.csv' INTO TABLE uniqdata OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -107,7 +107,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading from CSV with wrong data - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_007", Include) { + test("Loading-004-01-01-01_001-TC_007", Include) { try { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_incomplete.csv' INTO TABLE uniqdata OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -120,7 +120,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading from CSV with no data and 'SINGLEPASS' = 'FALSE' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_008", Include) { + test("Loading-004-01-01-01_001-TC_008", Include) { try { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_nodata.csv.csv' INTO TABLE uniqdata OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect @@ -133,16 +133,16 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data loading using 'SINGLE_PASS'='NULL/any invalid string' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_009", Include) { + test("Loading-004-01-01-01_001-TC_009", Include) { sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test1 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='NULL', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test1""", - Seq(Row(198)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_009") + Seq(Row(198)), "singlepassTestCase_Loading-004-01-01-01_001-TC_009") sql(s"""drop table test1""").collect } //To check data load using multiple CSV from folder into table with single_pass=true - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_010", Include) { + test("Loading-004-01-01-01_001-TC_010", Include) { sql(s"""drop table if exists emp_record12""").collect sql(s"""create table emp_record12 (ID int,Name string,DOJ timestamp,Designation string,Salary double,Dept string,DOB timestamp,Addr string,Gender string,Mob bigint) STORED BY 'org.apache.carbondata.format'""").collect @@ -154,7 +154,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data load using CSV from multiple level of folders into table - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_011", Include) { + test("Loading-004-01-01-01_001-TC_011", Include) { sql(s"""create table emp_record12 (ID int,Name string,DOJ timestamp,Designation string,Salary double,Dept string,DOB timestamp,Addr string,Gender string,Mob bigint) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/data' into table emp_record12 options('DELIMITER'=',', 'QUOTECHAR'='"','SINGLE_PASS'='TRUE','FILEHEADER'='ID,Name,DOJ,Designation,Salary,Dept,DOB,Addr,Gender,Mob','BAD_RECORDS_ACTION'='FORCE')""").collect @@ -165,7 +165,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data load using multiple CSV from folder into table with single_pass=false - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_012", Include) { + test("Loading-004-01-01-01_001-TC_012", Include) { sql(s"""create table emp_record12 (ID int,Name string,DOJ timestamp,Designation string,Salary double,Dept string,DOB timestamp,Addr string,Gender string,Mob bigint) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/data' into table emp_record12 options('DELIMITER'=',', 'QUOTECHAR'='"','SINGLE_PASS'='FALSE','FILEHEADER'='ID,Name,DOJ,Designation,Salary,Dept,DOB,Addr,Gender,Mob','BAD_RECORDS_ACTION'='FORCE')""").collect @@ -176,7 +176,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check data load using CSV from multiple level of folders into table - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_013", Include) { + test("Loading-004-01-01-01_001-TC_013", Include) { sql(s"""create table emp_record12 (ID int,Name string,DOJ timestamp,Designation string,Salary double,Dept string,DOB timestamp,Addr string,Gender string,Mob bigint) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/data' into table emp_record12 options('DELIMITER'=',', 'QUOTECHAR'='"','SINGLE_PASS'='FALSE','FILEHEADER'='ID,Name,DOJ,Designation,Salary,Dept,DOB,Addr,Gender,Mob','BAD_RECORDS_ACTION'='FORCE')""").collect @@ -187,258 +187,258 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Data loading in proper CSV format with .dat - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_014", Include) { + test("Loading-004-01-01-01_001-TC_014", Include) { sql(s"""drop table if exists uniqdata_file_extn""").collect sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.dat' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_014") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_014") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .xls - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_015", Include) { + test("Loading-004-01-01-01_001-TC_015", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.xls' into table uniqdata_file_extn OPTIONS('DELIMITER'='\001' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_015") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_015") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .doc - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_016", Include) { + test("Loading-004-01-01-01_001-TC_016", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.dat' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_016") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_016") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .txt - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_017", Include) { + test("Loading-004-01-01-01_001-TC_017", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.txt' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_017") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_017") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format wiithout any extension - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_020", Include) { + test("Loading-004-01-01-01_001-TC_020", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_020") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_020") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .dat with single_pass=false - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_021", Include) { + test("Loading-004-01-01-01_001-TC_021", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.dat' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_021") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_021") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .xls with single_pass=false - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_022", Include) { + test("Loading-004-01-01-01_001-TC_022", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.xls' into table uniqdata_file_extn OPTIONS('DELIMITER'='\001' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_022") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_022") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format with .txt with single_pass=false - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_024", Include) { + test("Loading-004-01-01-01_001-TC_024", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData.txt' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_024") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_024") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading in proper CSV format wiithout any extension with single_pass=false - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_027", Include) { + test("Loading-004-01-01-01_001-TC_027", Include) { sql(s"""CREATE TABLE if not exists uniqdata_file_extn (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA inpath '$resourcesPath/Data/singlepass/2000_UniqData' into table uniqdata_file_extn OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_file_extn""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_027") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_027") sql(s"""drop table uniqdata_file_extn""").collect } //To check Data loading with delimiters as / [slash] - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_028", Include) { + test("Loading-004-01-01-01_001-TC_028", Include) { sql(s"""drop table if exists uniqdata_slash""").collect sql(s"""CREATE TABLE if not exists uniqdata_slash(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_slash.csv' into table uniqdata_slash OPTIONS('DELIMITER'='/' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_slash""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_028") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_028") sql(s"""drop table uniqdata_slash""").collect } //To check Data loading with delimiters as " [double quote] - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_029", Include) { + test("Loading-004-01-01-01_001-TC_029", Include) { sql(s"""drop table if exists uniqdata_doublequote""").collect sql(s"""CREATE TABLE if not exists uniqdata_doublequote (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_quote.csv' into table uniqdata_doublequote OPTIONS('DELIMITER'='"' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_doublequote""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_029") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_029") sql(s"""drop table uniqdata_doublequote""").collect } //To check Data loading with delimiters as ! [exclamation] - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_030", Include) { + test("Loading-004-01-01-01_001-TC_030", Include) { sql(s"""drop table if exists uniqdata_exclamation""").collect sql(s"""CREATE TABLE if not exists uniqdata_exclamation (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_exclamation.csv' into table uniqdata_exclamation OPTIONS('DELIMITER'='!' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_exclamation""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_030") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_030") sql(s"""drop table uniqdata_exclamation""").collect } //To check Data loading with delimiters as | [pipeline] - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_031", Include) { + test("Loading-004-01-01-01_001-TC_031", Include) { sql(s"""drop table if exists uniqdata_pipe""").collect sql(s"""CREATE TABLE if not exists uniqdata_pipe (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_pipe.csv' into table uniqdata_pipe OPTIONS('DELIMITER'='|' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_pipe""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_031") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_031") sql(s"""drop table uniqdata_pipe""").collect } //To check Data loading with delimiters as ' [single quota] - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_032", Include) { + test("Loading-004-01-01-01_001-TC_032", Include) { sql(s"""drop table if exists uniqdata_singleQuote""").collect sql(s"""CREATE TABLE if not exists uniqdata_singleQuote (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_singlequote.csv' into table uniqdata_singleQuote OPTIONS('DELIMITER'="'" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_singleQuote""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_032") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_032") sql(s"""drop table uniqdata_singleQuote""").collect } //To check Data loading with delimiters as \017 - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_033", Include) { + test("Loading-004-01-01-01_001-TC_033", Include) { sql(s"""drop table if exists uniqdata_017""").collect sql(s"""CREATE TABLE if not exists uniqdata_017 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_017.csv' into table uniqdata_017 OPTIONS('DELIMITER'="\017" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_017""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_033") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_033") sql(s"""drop table uniqdata_017""").collect } //To check Data loading with delimiters as \001 - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_034", Include) { + test("Loading-004-01-01-01_001-TC_034", Include) { sql(s"""drop table if exists uniqdata_001""").collect sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_001.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_001""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_034") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_034") sql(s"""drop table uniqdata_001""").collect } //To check Data loading with delimiters as / [slash] and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_035", Include) { + test("Loading-004-01-01-01_001-TC_035", Include) { sql(s"""drop table if exists uniqdata_slash""").collect sql(s"""CREATE TABLE if not exists uniqdata_slash(CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_slash.csv' into table uniqdata_slash OPTIONS('DELIMITER'='/' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_slash""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_035") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_035") sql(s"""drop table uniqdata_slash""").collect } //To check Data loading with delimiters as " [double quote] and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_036", Include) { + test("Loading-004-01-01-01_001-TC_036", Include) { sql(s"""drop table if exists uniqdata_doublequote""").collect sql(s"""CREATE TABLE if not exists uniqdata_doublequote (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_quote.csv' into table uniqdata_doublequote OPTIONS('DELIMITER'='"' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_doublequote""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_036") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_036") sql(s"""drop table uniqdata_doublequote""").collect } //To check Data loading with delimiters as ! [exclamation] and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_037", Include) { + test("Loading-004-01-01-01_001-TC_037", Include) { sql(s"""drop table if exists uniqdata_exclamation""").collect sql(s"""CREATE TABLE if not exists uniqdata_exclamation (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_exclamation.csv' into table uniqdata_exclamation OPTIONS('DELIMITER'='!' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_exclamation""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_037") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_037") sql(s"""drop table uniqdata_exclamation""").collect } //To check Data loading with delimiters as | [pipeline] and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_038", Include) { + test("Loading-004-01-01-01_001-TC_038", Include) { sql(s"""drop table if exists uniqdata_pipe""").collect sql(s"""CREATE TABLE if not exists uniqdata_pipe (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_pipe.csv' into table uniqdata_pipe OPTIONS('DELIMITER'='|' , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_pipe""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_038") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_038") sql(s"""drop table uniqdata_pipe""").collect } //To check Data loading with delimiters as ' [single quota] and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_039", Include) { + test("Loading-004-01-01-01_001-TC_039", Include) { sql(s"""drop table if exists uniqdata_singleQuote""").collect sql(s"""CREATE TABLE if not exists uniqdata_singleQuote (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_singlequote.csv' into table uniqdata_singleQuote OPTIONS('DELIMITER'="'" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_singleQuote""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_039") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_039") sql(s"""drop table uniqdata_singleQuote""").collect } //To check Data loading with delimiters as \017 and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_040", Include) { + test("Loading-004-01-01-01_001-TC_040", Include) { sql(s"""drop table if exists uniqdata_017""").collect sql(s"""CREATE TABLE if not exists uniqdata_017 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_017.csv' into table uniqdata_017 OPTIONS('DELIMITER'="\017" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_017""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_040") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_040") sql(s"""drop table uniqdata_017""").collect } //To check Data loading with delimiters as \001 and SINGLE_PASS= FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_041", Include) { + test("Loading-004-01-01-01_001-TC_041", Include) { sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData_001.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from uniqdata_001""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_041") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_041") sql(s"""drop table uniqdata_001""").collect } //To check Auto compaction is successful with carbon.enable.auto.load.merge= True & SINGLE_PASS=TRUE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_043", Include) { + test("Loading-004-01-01-01_001-TC_043", Include) { sql(s"""drop table if exists uniqdata_001""").collect sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -451,7 +451,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Auto compaction is successful with carbon.enable.auto.load.merge= True & SINGLE_PASS=FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_044", Include) { + test("Loading-004-01-01-01_001-TC_044", Include) { sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -463,7 +463,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Auto compaction is successful with carbon.enable.auto.load.merge= false & SINGLE_PASS=TRUE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_045", Include) { + test("Loading-004-01-01-01_001-TC_045", Include) { sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='TRUE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -479,7 +479,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Auto compaction is successful with carbon.enable.auto.load.merge= false & SINGLE_PASS=FALSE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_046", Include) { + test("Loading-004-01-01-01_001-TC_046", Include) { sql(s"""CREATE TABLE if not exists uniqdata_001 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/2000_UniqData.csv' into table uniqdata_001 OPTIONS('DELIMITER'="\001" , 'QUOTECHAR'='"', 'BAD_RECORDS_ACTION'='FORCE','SINGLE_PASS'='FALSE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -495,26 +495,26 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Data loading is success with 'SINGLE_PASS'='TRUE' with already created table with Include dictionary - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_051", Include) { + test("Loading-004-01-01-01_001-TC_051", Include) { sql(s"""create database includeexclude""").collect sql(s"""use includeexclude""").collect sql(s"""create table test2 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='gamePointId,deviceInformationId')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test2 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_051") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_051") sql(s"""drop table includeexclude.test2""").collect sql(s"""drop database includeexclude cascade""").collect } //To check Data loading is success with 'SINGLE_PASS'='FALSE' with already created table with Include dictionary - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_052", Include) { + test("Loading-004-01-01-01_001-TC_052", Include) { sql(s"""create database includeexclude""").collect sql(s"""use includeexclude""").collect sql(s"""create table test2 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='gamePointId,deviceInformationId')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test2 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_052") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_052") sql(s"""drop table includeexclude.test2""").collect sql(s"""use default""").collect sql(s"""drop database includeexclude cascade""").collect @@ -522,38 +522,38 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //To check Data loading is success with 'SINGLE_PASS'='TRUE' with already created table with Exclude dictionary - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_053", Include) { + test("Loading-004-01-01-01_001-TC_053", Include) { sql(s"""drop table if exists test2""").collect sql(s"""create table test2 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei,channelsId,AMSize,ActiveCountry,Activecity')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test2 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_053") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_053") sql(s"""drop table test2""").collect } //To check Data loading is success with 'SINGLE_PASS'='FALSE' with already created table with Exclude dictionary - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_054", Include) { + test("Loading-004-01-01-01_001-TC_054", Include) { sql(s"""create table test2 (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='imei,channelsId,AMSize,ActiveCountry,Activecity')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test2 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='FALSE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test2""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_054") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_054") sql(s"""drop table test2""").collect } //To check data loading is success when loading from Carbon Table using ‘SINGLE_PASS’=TRUE - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_061", Include) { + test("Loading-004-01-01-01_001-TC_061", Include) { sql(s"""create table test1(imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId double,productionDate Timestamp,deliveryDate timestamp,deliverycharge double) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('table_blocksize'='1')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/vardhandaterestruct.csv' INTO TABLE test1 OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"','SINGLE_PASS'='TRUE', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from test1""", - Seq(Row(99)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_061") + Seq(Row(99)), "singlepassTestCase_Loading-004-01-01-01_001-TC_061") sql(s"""drop table test1""").collect } //Verifying load data with single Pass true and BAD_RECORDS_ACTION= ='FAIL - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_067", Include) { + test("Loading-004-01-01-01_001-TC_067", Include) { sql(s"""drop table if exists uniqdata""").collect try { @@ -567,7 +567,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { checkAnswer( s"""select count(*) from uniqdata""", Seq(Row(2013)), - "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_067") + "singlepassTestCase_Loading-004-01-01-01_001-TC_067") assert(false) } catch { case _ => assert(true) @@ -577,145 +577,145 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //Verifying load data with single Pass true and BAD_RECORDS_ACTION= ='REDIRECT' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_071", Include) { + test("Loading-004-01-01-01_001-TC_071", Include) { sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_071") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_071") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass false and BAD_RECORDS_ACTION= ='REDIRECT' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_072", Include) { + test("Loading-004-01-01-01_001-TC_072", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_072") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_072") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass true and BAD_RECORDS_ACTION= ='IGNORE' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_073", Include) { + test("Loading-004-01-01-01_001-TC_073", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_073") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_073") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass false and BAD_RECORDS_ACTION= ='IGNORE' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_074", Include) { + test("Loading-004-01-01-01_001-TC_074", Include) { sql(s"""drop table if exists uniqdata""").collect sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='IGNORE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_074") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_074") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass true and BAD_RECORDS_ACTION= ='FORCE' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_075", Include) { + test("Loading-004-01-01-01_001-TC_075", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_075") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_075") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass false and BAD_RECORDS_ACTION= ='FORCE' - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_076", Include) { + test("Loading-004-01-01-01_001-TC_076", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_076") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_076") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass false and 'BAD_RECORDS_LOGGER_ENABLE'='TRUE', - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_077", Include) { + test("Loading-004-01-01-01_001-TC_077", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_077") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_077") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass false and 'BAD_RECORDS_LOGGER_ENABLE'='FALSE', - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_078", Include) { + test("Loading-004-01-01-01_001-TC_078", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='FALSE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_078") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_078") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass true and 'BAD_RECORDS_LOGGER_ENABLE'='TRUE', - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_079", Include) { + test("Loading-004-01-01-01_001-TC_079", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(2013)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_079") + Seq(Row(2013)), "singlepassTestCase_Loading-004-01-01-01_001-TC_079") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass true, NO_INVERTED_INDEX, and dictionary_exclude - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_080", Include) { + test("Loading-004-01-01-01_001-TC_080", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('NO_INVERTED_INDEX'='CUST_NAME','dictionary_exclude'='CUST_NAME')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/10_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,DOB','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(10)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_080") + Seq(Row(10)), "singlepassTestCase_Loading-004-01-01-01_001-TC_080") sql(s"""drop table uniqdata""").collect } //Verifying load data with single Pass true, NO_INVERTED_INDEX and dictionary_include a measure - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_081", Include) { + test("Loading-004-01-01-01_001-TC_081", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID','NO_INVERTED_INDEX'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/10_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,DOB','SINGLE_Pass'='true')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(10)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_081") + Seq(Row(10)), "singlepassTestCase_Loading-004-01-01-01_001-TC_081") sql(s"""drop table uniqdata""").collect } //Verifying load data with single pass=false and column dictionary path - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_084", Include) { + test("Loading-004-01-01-01_001-TC_084", Include) { dropTable("uniqdata") try { sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format'""") @@ -726,7 +726,7 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { checkAnswer( s"""select count(*) from uniqdata""", Seq(Row(10)), - "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_084") + "singlepassTestCase_Loading-004-01-01-01_001-TC_084") assert(false) } catch { case _ => assert(true) @@ -736,34 +736,34 @@ class SinglepassTestCase extends QueryTest with BeforeAndAfterAll { //Verifying load data with single pass=true and column dictionary path - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_085", Include) { + test("Loading-004-01-01-01_001-TC_085", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/10_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='CUST_ID,CUST_NAME,DOB','SINGLE_PASS'='true','COLUMNDICT'='CUST_NAME:$resourcesPath/Data/singlepass/data/cust_name.txt')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(10)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_085") + Seq(Row(10)), "singlepassTestCase_Loading-004-01-01-01_001-TC_085") sql(s"""drop table uniqdata""").collect } //Verifying single pass false with all dimensions as dictionary_exclude and dictionary_include - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_088", Include) { + test("Loading-004-01-01-01_001-TC_088", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='CUST_NAME','DICTIONARY_INCLUDE'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/10_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='CUST_ID,CUST_NAME,DOB','SINGLE_PASS'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(10)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_088") + Seq(Row(10)), "singlepassTestCase_Loading-004-01-01-01_001-TC_088") sql(s"""drop table uniqdata""").collect } //Verifying single pass true with all dimensions as dictionary_exclude and dictionary_include - test("PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_089", Include) { + test("Loading-004-01-01-01_001-TC_089", Include) { dropTable("uniqdata") sql(s"""CREATE TABLE if not exists uniqdata (CUST_ID int,CUST_NAME String, DOB timestamp) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_EXCLUDE'='CUST_NAME','DICTIONARY_INCLUDE'='CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/singlepass/data/10_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='CUST_ID,CUST_NAME,DOB','SINGLE_PASS'='false')""").collect checkAnswer(s"""select count(*) from uniqdata""", - Seq(Row(10)), "singlepassTestCase_PTS-TOR_AR-SparkCarbon-spark2.1-Loading-004-01-01-01_001-TC_089") + Seq(Row(10)), "singlepassTestCase_Loading-004-01-01-01_001-TC_089") sql(s"""drop table uniqdata""").collect } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SortColumnTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SortColumnTestCase.scala index 88c73064e0f..dfaa02da3f3 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SortColumnTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/SortColumnTestCase.scala @@ -32,7 +32,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with no dictionary sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC001", Include) { + test("Sortcolumn-001_TC001", Include) { sql(s"""drop table if exists sorttable1""").collect sql(s"""CREATE TABLE sorttable1 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='empno')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable1 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -43,7 +43,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictionary sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC002", Include) { + test("Sortcolumn-001_TC002", Include) { sql(s"""CREATE TABLE sorttable2 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable2 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select empname from sorttable2""").collect @@ -53,7 +53,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with direct-dictioanry sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC003", Include) { + test("Sortcolumn-001_TC003", Include) { sql(s"""CREATE TABLE sorttable3 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable3 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select doj from sorttable3""").collect @@ -63,7 +63,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with offheap safe - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC004", Include) { + test("Sortcolumn-001_TC004", Include) { sql(s"""CREATE TABLE sorttable4_offheap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_offheap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_offheap_safe""").collect @@ -73,7 +73,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with offheap and unsafe sort - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC005", Include) { + test("Sortcolumn-001_TC005", Include) { sql(s"""CREATE TABLE sorttable4_offheap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_offheap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_offheap_unsafe""").collect @@ -83,7 +83,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with offheap and inmemory sort - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC006", Include) { + test("Sortcolumn-001_TC006", Include) { sql(s"""CREATE TABLE sorttable4_offheap_inmemory (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_offheap_inmemory OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_offheap_inmemory""").collect @@ -93,7 +93,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with heap - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC007", Include) { + test("Sortcolumn-001_TC007", Include) { sql(s"""CREATE TABLE sorttable4_heap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_heap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_heap_safe""").collect @@ -103,7 +103,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with heap and unsafe sort - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC008", Include) { + test("Sortcolumn-001_TC008", Include) { sql(s"""CREATE TABLE sorttable4_heap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_heap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_heap_unsafe""").collect @@ -113,7 +113,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with heap and inmemory sort - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC009", Include) { + test("Sortcolumn-001_TC009", Include) { sql(s"""CREATE TABLE sorttable4_heap_inmemory (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable4_heap_inmemory OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select workgroupcategory, empname from sorttable4_heap_inmemory""").collect @@ -123,7 +123,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with multi-sort_columns and data loading with heap and inmemory sort - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC010", Include) { + test("Sortcolumn-001_TC010", Include) { sql(s"""drop table if exists origintable2""").collect sql(s"""drop table if exists sorttable5""").collect sql(s"""CREATE TABLE origintable2 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format'""").collect @@ -145,7 +145,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //filter on sort_columns include no-dictionary - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC011", Include) { + test("Sortcolumn-001_TC011", Include) { sql(s"""drop table if exists sorttable6""").collect sql(s"""CREATE TABLE sorttable6 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, doj, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable6 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -156,7 +156,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //filter on sort_columns include direct-dictionary - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC012", Include) { + test("Sortcolumn-001_TC012", Include) { sql(s"""CREATE TABLE sorttable6 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, doj, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable6 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from sorttable6 where doj = '2007-01-17 00:00:00'""").collect @@ -166,7 +166,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //filter on sort_columns include dictioanry - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC013", Include) { + test("Sortcolumn-001_TC013", Include) { sql(s"""drop table if exists sorttable6""").collect sql(s"""CREATE TABLE sorttable6 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='workgroupcategory, doj, empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable6 OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -177,7 +177,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query data loading with heap and safe sort config - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC014", Include) { + test("Sortcolumn-001_TC014", Include) { sql(s"""CREATE TABLE unsortedtable_heap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_c+C17olumns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_heap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_heap_safe where empno = 11""").collect @@ -187,7 +187,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query data loading with heap and safe sort config with order by - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC015", Include) { + test("Sortcolumn-001_TC015", Include) { sql(s"""drop table if exists unsortedtable_heap_safe""").collect sql(s"""CREATE TABLE unsortedtable_heap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_heap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -198,7 +198,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with heap and unsafe sort config - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC016", Include) { + test("Sortcolumn-001_TC016", Include) { sql(s"""CREATE TABLE unsortedtable_heap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_heap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_heap_unsafe where empno = 11""").collect @@ -208,7 +208,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with heap and unsafe sort config with order by - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC017", Include) { + test("Sortcolumn-001_TC017", Include) { sql(s"""drop table if exists unsortedtable_heap_unsafe""").collect sql(s"""CREATE TABLE unsortedtable_heap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_heap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -219,7 +219,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and safe sort config - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC018", Include) { + test("Sortcolumn-001_TC018", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_safe where empno = 11""").collect @@ -229,7 +229,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and safe sort config with order by - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC019", Include) { + test("Sortcolumn-001_TC019", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_safe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_safe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_safe order by empno""").collect @@ -239,7 +239,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and unsafe sort config - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC020", Include) { + test("Sortcolumn-001_TC020", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_unsafe where empno = 11""").collect @@ -249,7 +249,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and unsafe sort config with order by - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC021", Include) { + test("Sortcolumn-001_TC021", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_unsafe (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_unsafe OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_unsafe order by empno""").collect @@ -259,7 +259,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and inmemory sort config - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC022", Include) { + test("Sortcolumn-001_TC022", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_inmemory (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_inmemory OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_inmemory where empno = 11""").collect @@ -269,7 +269,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //unsorted table creation, query and data loading with offheap and inmemory sort config with order by - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC023", Include) { + test("Sortcolumn-001_TC023", Include) { sql(s"""CREATE TABLE unsortedtable_offheap_inmemory (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE unsortedtable_offheap_inmemory OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect sql(s"""select * from unsortedtable_offheap_inmemory order by empno""").collect @@ -279,7 +279,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictioanry_exclude sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC024", Include) { + test("Sortcolumn-001_TC024", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_exclude'='empname','sort_columns'='empname')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -290,7 +290,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictionary_include, sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC025", Include) { + test("Sortcolumn-001_TC025", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='doj','sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -301,7 +301,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictionary_include, dictioanry_exclude sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC026", Include) { + test("Sortcolumn-001_TC026", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='doj','dictionary_exclude'='empname','sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -312,7 +312,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with alter table and sort_columns with dimension - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC027", Include) { + test("Sortcolumn-001_TC027", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -325,7 +325,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with alter table and sort_columns with measure - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC028", Include) { + test("Sortcolumn-001_TC028", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -338,7 +338,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with no_inverted_index and sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC029", Include) { + test("Sortcolumn-001_TC029", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='doj','no_inverted_index'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -349,7 +349,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictionary_include ,no_inverted_index and sort_columns - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC030", Include) { + test("Sortcolumn-001_TC030", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='doj','sort_columns'='doj','no_inverted_index'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -360,7 +360,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //create table with dictionary_include ,no_inverted_index and sort_columns with measure - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC031", Include) { + test("Sortcolumn-001_TC031", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='empno','sort_columns'='empno','no_inverted_index'='empno')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -371,7 +371,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //test sort_column for different order of column name - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC032", Include) { + test("Sortcolumn-001_TC032", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='empno','sort_columns'='empname,empno,workgroupcategory,doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -382,7 +382,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //default behavior if sort_column not provided - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC033", Include) { + test("Sortcolumn-001_TC033", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('dictionary_include'='empno')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -393,7 +393,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //test sort_column for alter table - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC035", Include) { + test("Sortcolumn-001_TC035", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""CREATE TABLE sorttable (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='doj')""").collect sql(s"""LOAD DATA local inpath '$resourcesPath/Data/sortcolumns/data.csv' INTO TABLE sorttable OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '\"')""").collect @@ -406,7 +406,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //test sort_column for float data_type with alter query - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC037", Include) { + test("Sortcolumn-001_TC037", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""drop table if exists sorttable1""").collect sql(s"""CREATE TABLE sorttable1 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='empno')""").collect @@ -420,7 +420,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //test sort_column for decimal data_type with alter query - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC038", Include) { + test("Sortcolumn-001_TC038", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""drop table if exists sorttable1""").collect sql(s"""CREATE TABLE sorttable1 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int) STORED BY 'org.apache.carbondata.format' tblproperties('sort_columns'='empno')""").collect @@ -434,7 +434,7 @@ class SortColumnTestCase extends QueryTest with BeforeAndAfterAll { //test sort_column for decimal data_type - test("AR-Develop-Feature-sortcolumn-001_PTS001_TC039", Include) { + test("Sortcolumn-001_TC039", Include) { sql(s"""drop table if exists sorttable""").collect sql(s"""drop table if exists sorttable1""").collect sql(s"""CREATE TABLE sorttable1 (empno int, empname String, designation String, doj Timestamp, workgroupcategory int, workgroupcategoryname String, deptno int, deptname String, projectcode int, projectjoindate Timestamp, projectenddate Timestamp,attendance int,utilization int,salary int,newField decimal) STORED BY 'org.apache.carbondata.format' tblproperties('DICTIONARY_INCLUDE'='empno')""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/TimestamptypesTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/TimestamptypesTestCase.scala index 4fdd4907d2b..f49858fb8f4 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/TimestamptypesTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/TimestamptypesTestCase.scala @@ -33,41 +33,41 @@ class TimestamptypesTestCase extends QueryTest with BeforeAndAfterAll { //timestamp in yyyy.MMM.dd HH:mm:ss - test("DataSight_Carbon_TimeStampType_001", Include) { + test("TimeStampType_001", Include) { sql(s""" create table if not exists ddMMMyyyy (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format'""").collect sql(s""" LOAD DATA INPATH '$resourcesPath/Data/vardhandaterestructddMMMyyyy.csv' INTO TABLE ddMMMyyyy OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from ddMMMyyyy""", - Seq(Row(99)), "timestamptypesTestCase_DataSight_Carbon_TimeStampType_001") + Seq(Row(99)), "timestamptypesTestCase_TimeStampType_001") sql(s"""drop table ddMMMyyyy""").collect } //timestamp in dd.MM.yyyy HH:mm:ss - ignore("DataSight_Carbon_TimeStampType_002", Include) { + ignore("TimeStampType_002", Include) { sql(s""" create table if not exists ddMMyyyy (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format'""").collect sql(s""" LOAD DATA INPATH '$resourcesPath/Data/vardhandaterestructddMMyyyy.csv' INTO TABLE ddMMyyyy OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from ddMMyyyy""", - Seq(Row(99)), "timestamptypesTestCase_DataSight_Carbon_TimeStampType_002") + Seq(Row(99)), "timestamptypesTestCase_TimeStampType_002") sql(s"""drop table ddMMyyyy""").collect } //timestamp in yyyy.MM.dd HH:mm:ss - ignore("DataSight_Carbon_TimeStampType_003", Include) { + ignore("TimeStampType_003", Include) { sql(s""" create table if not exists yyyyMMdd (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format'""").collect sql(s""" LOAD DATA INPATH '$resourcesPath/Data/vardhandaterestructyyyyMMdd.csv' INTO TABLE yyyyMMdd OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from yyyyMMdd""", - Seq(Row(99)), "timestamptypesTestCase_DataSight_Carbon_TimeStampType_003") + Seq(Row(99)), "timestamptypesTestCase_TimeStampType_003") sql(s"""drop table yyyyMMdd""").collect } //timestamp in dd.MMM.yyyy HH:mm:ss - test("DataSight_Carbon_TimeStampType_004", Include) { + test("TimeStampType_004", Include) { sql(s""" create table if not exists yyyyMMMdd (imei string,AMSize string,channelsId string,ActiveCountry string, Activecity string,gamePointId double,deviceInformationId int,productionDate Timestamp,deliveryDate timestamp,deliverycharge decimal(10,2)) STORED BY 'org.apache.carbondata.format'""").collect sql(s""" LOAD DATA INPATH '$resourcesPath/Data/vardhandaterestructyyyyMMMdd.csv' INTO TABLE yyyyMMMdd OPTIONS('DELIMITER'=',', 'QUOTECHAR'= '"', 'FILEHEADER'= 'imei,deviceInformationId,AMSize,channelsId,ActiveCountry,Activecity,gamePointId,productionDate,deliveryDate,deliverycharge')""").collect checkAnswer(s"""select count(*) from yyyyMMMdd""", - Seq(Row(99)), "timestamptypesTestCase_DataSight_Carbon_TimeStampType_004") + Seq(Row(99)), "timestamptypesTestCase_TimeStampType_004") sql(s"""drop table yyyyMMMdd""").collect } diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/V3offheapvectorTestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/V3offheapvectorTestCase.scala index 3c37f83ff21..7855ed17f3c 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/V3offheapvectorTestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/V3offheapvectorTestCase.scala @@ -33,286 +33,286 @@ class V3offheapvectorTestCase extends QueryTest with BeforeAndAfterAll { //Check query reponse for select * query with no filters - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_033", Include) { + test("V3_01_Query_01_033", Include) { dropTable("3lakh_uniqdata") sql(s"""CREATE TABLE 3lakh_uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select count(*) from 3lakh_uniqdata""", - Seq(Row(300635)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_033") + Seq(Row(300635)), "V3offheapvectorTestCase_V3_01_Query_01_033") } //Check query reponse where table is having > 10 columns as dimensions and all the columns are selected in the query - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_034", Include) { + test("V3_01_Query_01_034", Include) { checkAnswer(s"""select count(*) from (select CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1 from 3lakh_uniqdata)c""", - Seq(Row(300635)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_034") + Seq(Row(300635)), "V3offheapvectorTestCase_V3_01_Query_01_034") } //Check query reponse when filter is having eq condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_035", Include) { + test("V3_01_Query_01_035", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id = 35000""", - Seq(Row(35000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_035") + Seq(Row(35000)), "V3offheapvectorTestCase_V3_01_Query_01_035") } //Check query reponse when filter is having in condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_036", Include) { + test("V3_01_Query_01_036", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id in (30000, 35000 ,37000)""", - Seq(Row(30000),Row(35000),Row(37000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_036") + Seq(Row(30000),Row(35000),Row(37000)), "V3offheapvectorTestCase_V3_01_Query_01_036") } //Check query reponse when filter is having range condition on 1st column and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_037", Include) { + test("V3_01_Query_01_037", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id between 59000 and 60000)c""", - Seq(Row(1001)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_037") + Seq(Row(1001)), "V3offheapvectorTestCase_V3_01_Query_01_037") } //Check query reponse when filter is having range condition on 1st coluumn and data is selected within a pages - values just in the boundary of the page upper llimit - with offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_041", Include) { + test("V3_01_Query_01_041", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id between 59000 and 61000)c""", - Seq(Row(2001)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_041") + Seq(Row(2001)), "V3offheapvectorTestCase_V3_01_Query_01_041") } //Check query reponse when filter is having in condition 1st column and data is selected across multiple pages - with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_042", Include) { + test("V3_01_Query_01_042", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata where cust_id in (30000, 35000 ,37000, 69000,101000,133000,165000,197000,229000,261000,293000, 329622)""", - Seq(Row(133000),Row(165000),Row(197000),Row(30000),Row(229000),Row(261000),Row(35000),Row(37000),Row(293000),Row(329622),Row(69000),Row(101000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_042") + Seq(Row(133000),Row(165000),Row(197000),Row(30000),Row(229000),Row(261000),Row(35000),Row(37000),Row(293000),Row(329622),Row(69000),Row(101000)), "V3offheapvectorTestCase_V3_01_Query_01_042") } //Check query reponse when filter is having not between condition 1st column and data is selected across all pages - with offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_043", Include) { + test("V3_01_Query_01_043", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_id not between 29001 and 329621)c""", - Seq(Row(3)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_043") + Seq(Row(3)), "V3offheapvectorTestCase_V3_01_Query_01_043") } //Check query reponse when filter is applied on on the 2nd column and data is selected across all pages -with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_044", Include) { + test("V3_01_Query_01_044", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_name like 'CUST_NAME_2%')c""", - Seq(Row(110000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_044") + Seq(Row(110000)), "V3offheapvectorTestCase_V3_01_Query_01_044") } //Check query reponse when filter is having not like condition set on the 2nd columns and data is selected across all pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_045", Include) { + test("V3_01_Query_01_045", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where cust_name not like 'CUST_NAME_2%')c""", - Seq(Row(190635)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_045") + Seq(Row(190635)), "V3offheapvectorTestCase_V3_01_Query_01_045") } //Check query reponse when filter is having > operator set on the 10th columns and data is selected within a page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_046", Include) { + test("V3_01_Query_01_046", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata where Double_COLUMN1 > 42000)b""", - Seq(Row(300624)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_046") + Seq(Row(300624)), "V3offheapvectorTestCase_V3_01_Query_01_046") } //Check query reponse when filter is having like operator set on the 3rd columns and data is selected across all pages - with no offheap sort and vector reader - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_047", Include) { + test("V3_01_Query_01_047", Include) { checkAnswer(s"""select count(*) from (select ACTIVE_EMUI_VERSION from 3lakh_uniqdata where ACTIVE_EMUI_VERSION like 'ACTIVE_EMUI_VERSION_20%')c""", - Seq(Row(11000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_047") + Seq(Row(11000)), "V3offheapvectorTestCase_V3_01_Query_01_047") } //Check query reponse when filter condtion is put on all collumns connected through and operator and data is selected across from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_048", Include) { + test("V3_01_Query_01_048", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where CUST_ID = 29000 and CUST_NAME = 'CUST_NAME_20000' and ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20000' and DOB = '04-10-2010 01:00' and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 and DECIMAL_COLUMN2 = 22345698901 and Double_COLUMN1 = 11234567490 and Double_COLUMN2 = -11234567490 and INTEGER_COLUMN1 = 20001)c""", - Seq(Row(0)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_048") + Seq(Row(0)), "V3offheapvectorTestCase_V3_01_Query_01_048") } //Check query reponse when filter condtion is put on all collumns connected through and and grouping operator and data is selected across from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_050", Include) { + test("V3_01_Query_01_050", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where CUST_ID = 29000 and CUST_NAME = 'CUST_NAME_20000' and (ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20001' or DOB = '04-10-2010 01:00') and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 and DECIMAL_COLUMN2 = 22345698901 or Double_COLUMN1 = 11234567490 and ( Double_COLUMN2 = -11234567490 or INTEGER_COLUMN1 = 20003))c""", - Seq(Row(300623)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_050") + Seq(Row(300623)), "V3offheapvectorTestCase_V3_01_Query_01_050") } //Check query reponse when filter condtion is 1st column and connected through OR condition and data is selected across multiple pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_051", Include) { + test("V3_01_Query_01_051", Include) { checkAnswer(s"""select CUST_NAME from 3lakh_uniqdata where CUST_ID = 29000 or CUST_ID = 60000 or CUST_ID = 100000 or CUST_ID = 130000""", - Seq(Row("CUST_NAME_121000"),Row("CUST_NAME_20000"),Row("CUST_NAME_51000"),Row("CUST_NAME_91000")), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_051") + Seq(Row("CUST_NAME_121000"),Row("CUST_NAME_20000"),Row("CUST_NAME_51000"),Row("CUST_NAME_91000")), "V3offheapvectorTestCase_V3_01_Query_01_051") } //Check query reponse when filter condtion is put on all collumns connected through and/or operator and range is used and data is selected across multiple pages - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_052", Include) { + test("V3_01_Query_01_052", Include) { checkAnswer(s"""select count(*) from (select * from 3lakh_uniqdata where (CUST_ID >= 29000 and CUST_ID <= 60000) and CUST_NAME like 'CUST_NAME_20%' and ACTIVE_EMUI_VERSION = 'ACTIVE_EMUI_VERSION_20000' and DOB = '04-10-2010 01:00' and DOJ = '04-10-2012 02:00' and BIGINT_COLUMN1 = 1.23372E+11 and BIGINT_COLUMN2 = -2.23E+11 and DECIMAL_COLUMN1 = 12345698901 or DECIMAL_COLUMN2 = 22345698901 and Double_COLUMN1 = 11234567490 and (Double_COLUMN2 = -11234567490 or INTEGER_COLUMN1 = 20001))c""", - Seq(Row(1)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_052") + Seq(Row(1)), "V3offheapvectorTestCase_V3_01_Query_01_052") } //Check query reponse when 1st column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_054", Include) { + test("V3_01_Query_01_054", Include) { checkAnswer(s"""select CUST_ID from 3lakh_uniqdata limit 10""", - Seq(Row(8999),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_054") + Seq(Row(8999),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null),Row(null)), "V3offheapvectorTestCase_V3_01_Query_01_054") } //Check query reponse when 2nd column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_055", Include) { + test("V3_01_Query_01_055", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata limit 30000)c""", - Seq(Row(30000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_055") + Seq(Row(30000)), "V3offheapvectorTestCase_V3_01_Query_01_055") } //Check query reponse when 4th column select ed nd filter is applied and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_056", Include) { + test("V3_01_Query_01_056", Include) { checkAnswer(s"""select count(*) from (select DOB from 3lakh_uniqdata limit 30000)c""", - Seq(Row(30000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_056") + Seq(Row(30000)), "V3offheapvectorTestCase_V3_01_Query_01_056") } //Check query reponse when 1st column select ed nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_057", Include) { + test("V3_01_Query_01_057", Include) { checkAnswer(s"""select count(*) from (select CUST_ID from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_057") + Seq(Row(60000)), "V3offheapvectorTestCase_V3_01_Query_01_057") } //Check query reponse when 2nd column select ed nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_058", Include) { + test("V3_01_Query_01_058", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_058") + Seq(Row(60000)), "V3offheapvectorTestCase_V3_01_Query_01_058") } //Check query reponse when 4th column selected nd filter is applied and data is selected from 2 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_059", Include) { + test("V3_01_Query_01_059", Include) { checkAnswer(s"""select count(*) from (select DOB from 3lakh_uniqdata limit 60000)c""", - Seq(Row(60000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_059") + Seq(Row(60000)), "V3offheapvectorTestCase_V3_01_Query_01_059") } //Check query reponse when 2nd column select ed nd with order by and data is selected from 1 page - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_060", Include) { + test("V3_01_Query_01_060", Include) { checkAnswer(s"""select cust_id from 3lakh_uniqdata order by CUST_NAME desc limit 10""", - Seq(Row(108999),Row(108998),Row(108997),Row(108996),Row(108995),Row(108994),Row(108993),Row(108992),Row(108991),Row(108990)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_060") + Seq(Row(108999),Row(108998),Row(108997),Row(108996),Row(108995),Row(108994),Row(108993),Row(108992),Row(108991),Row(108990)), "V3offheapvectorTestCase_V3_01_Query_01_060") } //Check query reponse when temp table is used and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_061", Include) { + test("V3_01_Query_01_061", Include) { checkAnswer(s"""select count(*) from ( select a.cust_id from 3lakh_uniqdata a where a.cust_id in (select c.cust_id from 3lakh_uniqdata c where c.cust_name like 'CUST_NAME_2000%') and a.cust_id between 29000 and 60000)d""", - Seq(Row(10)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_061") + Seq(Row(10)), "V3offheapvectorTestCase_V3_01_Query_01_061") } //Check query reponse when aggregate table is used and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_062", Include) { + test("V3_01_Query_01_062", Include) { checkAnswer(s"""select substring(CUST_NAME,1,11),count(*) from 3lakh_uniqdata group by substring(CUST_NAME,1,11) having count(*) > 1""", - Seq(Row("CUST_NAME_4",10000),Row("CUST_NAME_1",100000),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_2",110000),Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000),Row("",11),Row("CUST_NAME_3",30623)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_062") + Seq(Row("CUST_NAME_4",10000),Row("CUST_NAME_1",100000),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_2",110000),Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000),Row("",11),Row("CUST_NAME_3",30623)), "V3offheapvectorTestCase_V3_01_Query_01_062") } //Check query reponse when aggregate table is used along with filter condition and multiple pages are scanned - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_063", Include) { + test("V3_01_Query_01_063", Include) { checkAnswer(s"""select substring(CUST_NAME,1,11),count(*) from 3lakh_uniqdata where cust_id between 59000 and 160000 group by substring(CUST_NAME,1,11) having count(*) > 1""", - Seq(Row("CUST_NAME_1",51001),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_063") + Seq(Row("CUST_NAME_1",51001),Row("CUST_NAME_8",10000),Row("CUST_NAME_6",10000),Row("CUST_NAME_5",10000),Row("CUST_NAME_7",10000),Row("CUST_NAME_9",10000)), "V3offheapvectorTestCase_V3_01_Query_01_063") } //Check query when table is having single column so that the records count per blocklet is > 120000, where query scan is done on single page - test("PTS_TOR-Productize-New-Features-V3_01_Param_01_007", Include) { + test("V3_01_Param_01_007", Include) { sql(s"""CREATE TABLE 3lakh_uniqdata1 (CUST_NAME String) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128')""").collect sql(s"""insert into 3lakh_uniqdata1 select cust_name from 3lakh_uniqdata""").collect checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata where cust_name like 'CUST_NAME_2000%')c""", - Seq(Row(110)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Param_01_007") + Seq(Row(110)), "V3offheapvectorTestCase_V3_01_Param_01_007") } //Check query when table is having single column so that the records count per blocklet is > 120000, where query scan is done across the pages in the blocklet - test("PTS_TOR-Productize-New-Features-V3_01_Param_01_008", Include) { + test("V3_01_Param_01_008", Include) { checkAnswer(s"""select count(*) from (select CUST_NAME from 3lakh_uniqdata where cust_name like 'CUST_NAME_20%')c""", - Seq(Row(11000)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Param_01_008") + Seq(Row(11000)), "V3offheapvectorTestCase_V3_01_Param_01_008") } //Check impact on load and query reading when larger value (1 lakh length) present in the column - ignore("PTS_TOR-Productize-New-Features-V3_01_Stress_01_008", Include) { + ignore("V3_01_Stress_01_008", Include) { sql(s"""create table t_carbn1c (name string) stored by 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='name')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/1lakh.csv' into table t_carbn1c OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='name')""").collect checkAnswer(s"""select count(*) from t_carbn1c""", - Seq(Row(1)), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Stress_01_008") + Seq(Row(1)), "V3offheapvectorTestCase_V3_01_Stress_01_008") } //Check impact on load and query reading when larger value (1 lakh length) present in the column when the column is measure - ignore("PTS_TOR-Productize-New-Features-V3_01_Stress_01_009", Include) { + ignore("V3_01_Stress_01_009", Include) { checkAnswer(s"""select substring(name,1,10) from t_carbn1c""", - Seq(Row("hellohowar")), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Stress_01_009") + Seq(Row("hellohowar")), "V3offheapvectorTestCase_V3_01_Stress_01_009") } //Check join query when the table is having v3 format - test("PTS_TOR-Productize-New-Features-V3_01_Query_01_064", Include) { + test("V3_01_Query_01_064", Include) { dropTable("3lakh_uniqdata2") sql(s"""CREATE TABLE 3lakh_uniqdata2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata' TBLPROPERTIES('table_blocksize'='128','include_dictionary'='BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1,CUST_ID')""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/3Lakh.csv' into table 3lakh_uniqdata2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect checkAnswer(s"""select a.cust_id, b.cust_name from 3lakh_uniqdata a, 3lakh_uniqdata2 b where a.cust_id = b.cust_id and a.cust_name = b.cust_name and a.cust_id in (29000, 59000, 69000,15000,250000, 310000)""", - Seq(Row(29000,"CUST_NAME_20000"),Row(250000,"CUST_NAME_241000"),Row(310000,"CUST_NAME_301000"),Row(59000,"CUST_NAME_50000"),Row(69000,"CUST_NAME_60000")), "V3offheapvectorTestCase_PTS_TOR-Productize-New-Features-V3_01_Query_01_064") + Seq(Row(29000,"CUST_NAME_20000"),Row(250000,"CUST_NAME_241000"),Row(310000,"CUST_NAME_301000"),Row(59000,"CUST_NAME_50000"),Row(69000,"CUST_NAME_60000")), "V3offheapvectorTestCase_V3_01_Query_01_064") sql(s"""drop table 3lakh_uniqdata""").collect sql(s"""drop table if exists 3lakh_uniqdata2""").collect sql(s"""drop table if exists t_carbn1c""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector1TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector1TestCase.scala index fc6e590d4c6..c198ecfe05d 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector1TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector1TestCase.scala @@ -32,7 +32,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To check select all records with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_001", Include) { + test("Vector1-TC_001", Include) { sql(s"""CREATE TABLE uniqdatavector1 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdatavector1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -44,7 +44,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To check random measure select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_002", Include) { + test("Vector1-TC_002", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector1 where cust_id=10999""").collect @@ -55,7 +55,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To check select random columns and order with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_003", Include) { + test("Vector1-TC_003", Include) { sql(s"""create table double(id double, name string) STORED BY 'org.apache.carbondata.format' """).collect sql(s"""load data inpath '$resourcesPath/Data/InsertData/maxrange_double.csv' into table double""").collect @@ -65,7 +65,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To check the logs of executor with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_004", Include) { + test("Vector1-TC_004", Include) { sql(s"""select id from double order by id""").collect @@ -75,14 +75,14 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To check for select random measures with group by and having clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_005", Include) { + test("Vector1-TC_005", Include) { sql(s"""select id,count(*) from double group by id having count(*)=1""").collect } //To check for select count query with group by and having clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_006", Include) { + test("Vector1-TC_006", Include) { sql(s"""select id,count(id) from double group by id having count(*)=1""").collect @@ -92,7 +92,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To applied cast method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_007", Include) { + test("Vector1-TC_007", Include) { sql(s"""CREATE TABLE uniqdatavector11 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdatavector11 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect @@ -104,7 +104,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply sum method on a column with select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_008", Include) { + test("Vector1-TC_008", Include) { sql(s"""select sum(CUST_ID) from uniqdatavector11""").collect @@ -114,7 +114,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply the average method on a column with select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_009", Include) { + test("Vector1-TC_009", Include) { sql(s"""select avg(CUST_ID) from uniqdatavector11""").collect @@ -124,7 +124,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply the percentile_approx method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_010", Include) { + test("Vector1-TC_010", Include) { sql(s"""select percentile_approx(1, 0.5 ,500) from uniqdatavector11""").collect @@ -134,7 +134,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply the var_samp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_011", Include) { + test("Vector1-TC_011", Include) { sql(s"""select var_samp(cust_id) from uniqdatavector11""").collect @@ -144,7 +144,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply the stddev_pop method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_012", Include) { + test("Vector1-TC_012", Include) { sql(s"""select stddev_pop(cust_id) from uniqdatavector11""").collect @@ -154,7 +154,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply the stddev_samp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_013", Include) { + test("Vector1-TC_013", Include) { sql(s"""select stddev_samp(cust_id) from uniqdatavector11""").collect @@ -162,28 +162,28 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply percentile method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_014", Include) { + test("Vector1-TC_014", Include) { sql(s"""select percentile(0,1) from uniqdatavector11""").collect } //To apply min method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_015", Include) { + test("Vector1-TC_015", Include) { sql(s"""select min(CUST_ID) from uniqdatavector11""").collect } //To applied max method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_016", Include) { + test("Vector1-TC_016", Include) { sql(s"""select max(CUST_ID) from uniqdatavector11""").collect } //To apply sum method with plus operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_017", Include) { + test("Vector1-TC_017", Include) { sql(s"""select sum(CUST_ID+1) from uniqdatavector11""").collect } @@ -191,77 +191,77 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply sum method with minus operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_018", Include) { + test("Vector1-TC_018", Include) { sql(s"""select sum(CUST_ID-1) from uniqdatavector11""").collect } //To apply count method with distinct operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_019", Include) { + test("Vector1-TC_019", Include) { sql(s"""select count(DISTINCT CUST_ID) from uniqdatavector11""").collect } //To check random measure select query with AND operator and vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_020", Include) { + test("Vector1-TC_020", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector11 where cust_id=10999 and INTEGER_COLUMN1=2000 """).collect } //To check random measure select query with OR operator and vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_021", Include) { + test("Vector1-TC_021", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector11 where cust_id=10999 or INTEGER_COLUMN1=2000 """).collect } //To apply count method with if operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_022", Include) { + test("Vector1-TC_022", Include) { sql(s"""select count(if(CUST_ID<1999,NULL,CUST_NAME)) from uniqdatavector11""").collect } //To apply in operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_023", Include) { + test("Vector1-TC_023", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID IN(1,22)""").collect } //To apply not in operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_024", Include) { + test("Vector1-TC_024", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID NOT IN(1,22)""").collect } //To apply between operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_025", Include) { + test("Vector1-TC_025", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID BETWEEN 1 AND 11000""").collect } //To apply not between operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_026", Include) { + test("Vector1-TC_026", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID NOT BETWEEN 1 AND 11000""").collect } //To apply between in operator with order by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_027", Include) { + test("Vector1-TC_027", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID in (1,10999) order by 'CUST_ID'""").collect } //To apply between in operator with group by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_028", Include) { + test("Vector1-TC_028", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID in (1,10999) group by CUST_NAME""").collect @@ -271,7 +271,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply null clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_029", Include) { + test("Vector1-TC_029", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID is null""").collect @@ -281,7 +281,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To applied not null clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_030", Include) { + test("Vector1-TC_030", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID is not null""").collect @@ -291,7 +291,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply > operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_031", Include) { + test("Vector1-TC_031", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID>1""").collect @@ -301,7 +301,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply < operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_032", Include) { + test("Vector1-TC_032", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID<1""").collect @@ -311,7 +311,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply != operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_033", Include) { + test("Vector1-TC_033", Include) { sql(s"""select CUST_NAME from uniqdatavector11 where CUST_ID!=1""").collect @@ -321,7 +321,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply like clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_034", Include) { + test("Vector1-TC_034", Include) { sql(s"""select CUST_ID from uniqdatavector11 where CUST_ID like 10999""").collect @@ -331,7 +331,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply like% clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_035", Include) { + test("Vector1-TC_035", Include) { sql(s"""select CUST_ID from uniqdatavector11 where CUST_ID like '%10999%'""").collect @@ -341,7 +341,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply rlike clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_036", Include) { + test("Vector1-TC_036", Include) { sql(s"""select CUST_ID from uniqdatavector11 where CUST_ID rlike 10999""").collect @@ -351,7 +351,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply rlike% clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_037", Include) { + test("Vector1-TC_037", Include) { sql(s"""select CUST_ID from uniqdatavector11 where CUST_ID rlike '%10999'""").collect @@ -361,7 +361,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply alias clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_038", Include) { + test("Vector1-TC_038", Include) { sql(s"""select count(cust_id)+10.364 as a from uniqdatavector11""").collect @@ -371,7 +371,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply aliase clause with group by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_039", Include) { + test("Vector1-TC_039", Include) { sql(s"""select count(cust_id)+10.364 as a from uniqdatavector11 group by CUST_ID""").collect @@ -381,7 +381,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply aliase clause with order by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_040", Include) { + test("Vector1-TC_040", Include) { sql(s"""select cust_id,count(cust_name) a from uniqdatavector11 group by cust_id order by cust_id""").collect @@ -391,7 +391,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply regexp_replace clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_041", Include) { + test("Vector1-TC_041", Include) { sql(s"""select regexp_replace(cust_id, 'i', 'ment') from uniqdatavector11""").collect @@ -401,7 +401,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply date_add method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_048", Include) { + test("Vector1-TC_048", Include) { sql(s"""SELECT date_add(DOB,1) FROM uniqdatavector11""").collect @@ -411,7 +411,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply date_sub method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_049", Include) { + test("Vector1-TC_049", Include) { sql(s"""SELECT date_sub(DOB,1) FROM uniqdatavector11""").collect @@ -421,7 +421,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply current_date method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_050", Include) { + test("Vector1-TC_050", Include) { sql(s"""SELECT current_date() FROM uniqdatavector11""").collect @@ -431,7 +431,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply add_month method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_051", Include) { + test("Vector1-TC_051", Include) { sql(s"""SELECT add_months(dob,1) FROM uniqdatavector11""").collect @@ -441,7 +441,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply last_day method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_052", Include) { + test("Vector1-TC_052", Include) { sql(s"""SELECT last_day(dob) FROM uniqdatavector11""").collect @@ -451,7 +451,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply next_day method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_053", Include) { + test("Vector1-TC_053", Include) { sql(s"""SELECT next_day(dob,'monday') FROM uniqdatavector11""").collect @@ -461,7 +461,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply months_between method on carbon table - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_054", Include) { + test("Vector1-TC_054", Include) { sql(s"""select months_between('2016-12-28', '2017-01-30') from uniqdatavector11""").collect @@ -471,7 +471,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //Toapply date_diff method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_055", Include) { + test("Vector1-TC_055", Include) { sql(s"""select datediff('2009-03-01', '2009-02-27') from uniqdatavector11""").collect @@ -481,7 +481,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply concat method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_056", Include) { + test("Vector1-TC_056", Include) { sql(s"""SELECT concat('hi','hi') FROM uniqdatavector11""").collect @@ -491,7 +491,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply lower method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_057", Include) { + test("Vector1-TC_057", Include) { sql(s"""SELECT lower('H') FROM uniqdatavector11""").collect @@ -501,7 +501,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply substr method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_058", Include) { + test("Vector1-TC_058", Include) { sql(s"""select substr(cust_id,3) from uniqdatavector11""").collect @@ -511,7 +511,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply trim method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_059", Include) { + test("Vector1-TC_059", Include) { sql(s"""select trim(cust_id) from uniqdatavector11""").collect @@ -521,7 +521,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply split method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_060", Include) { + test("Vector1-TC_060", Include) { sql(s"""select split('knoldus','ol') from uniqdatavector11""").collect @@ -531,7 +531,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply split method limit clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_061", Include) { + test("Vector1-TC_061", Include) { sql(s"""select split('knoldus','ol') from uniqdatavector11 limit 1""").collect @@ -541,7 +541,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply reverse on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_062", Include) { + test("Vector1-TC_062", Include) { sql(s"""select reverse('knoldus') from uniqdatavector11""").collect @@ -551,7 +551,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply replace on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_063", Include) { + test("Vector1-TC_063", Include) { sql(s"""select regexp_replace('Tester', 'T', 't') from uniqdatavector11""").collect @@ -561,7 +561,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply replace with limit clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_064", Include) { + test("Vector1-TC_064", Include) { sql(s"""select regexp_replace('Tester', 'T', 't') from uniqdatavector11 limit 1""").collect @@ -571,7 +571,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply FORMAT_STRING on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_065", Include) { + test("Vector1-TC_065", Include) { sql(s"""select format_string('data', cust_name) from uniqdatavector11""").collect @@ -581,7 +581,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply sentences method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_066", Include) { + test("Vector1-TC_066", Include) { sql(s"""select sentences(cust_name) from uniqdatavector11""").collect @@ -591,7 +591,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply space method on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_067", Include) { + test("Vector1-TC_067", Include) { sql(s"""select space(10) from uniqdatavector11""").collect @@ -601,7 +601,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply rtrim method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_068", Include) { + test("Vector1-TC_068", Include) { sql(s"""select rtrim(" testing ") from uniqdatavector11""").collect @@ -611,7 +611,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply ascii method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_069", Include) { + test("Vector1-TC_069", Include) { sql(s"""select ascii('A') from uniqdatavector11""").collect @@ -621,7 +621,7 @@ class Vector1TestCase extends QueryTest with BeforeAndAfterAll { //To apply utc_timestamp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_070", Include) { + test("Vector1-TC_070", Include) { sql(s"""select from_utc_timestamp('2016-12-12 08:00:00','PST') from uniqdatavector11""").collect diff --git a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector2TestCase.scala b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector2TestCase.scala index 21423f109f3..52537c609cb 100644 --- a/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector2TestCase.scala +++ b/integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector2TestCase.scala @@ -32,7 +32,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check select all records with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_071", Include) { + test("Vector2-TC_071", Include) { sql(s"""CREATE TABLE uniqdatavector2 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdatavector2 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select * from uniqdatavector2 """).collect @@ -42,7 +42,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check random measure select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_072", Include) { + test("Vector2-TC_072", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector2 where cust_id=10999""").collect @@ -51,7 +51,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check select random columns and order with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_073", Include) { + test("Vector2-TC_073", Include) { sql(s"""create table double1(id double, name string) STORED BY 'org.apache.carbondata.format' """).collect sql(s"""load data inpath '$resourcesPath/Data/InsertData/maxrange_double.csv' into table double1""").collect sql(s"""select id from double1 order by id""").collect @@ -61,7 +61,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check the logs of executor with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_074", Include) { + test("Vector2-TC_074", Include) { sql(s"""select id from double1 order by id""").collect @@ -70,7 +70,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check for select random measures with group by and having clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_075", Include) { + test("Vector2-TC_075", Include) { sql(s"""select id,count(*) from double1 group by id having count(*)=1""").collect @@ -79,7 +79,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check for select count query with group by and having clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_076", Include) { + test("Vector2-TC_076", Include) { sql(s"""select id,count(id) from double1 group by id having count(*)=1""").collect @@ -88,7 +88,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To applied cast method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_077", Include) { + test("Vector2-TC_077", Include) { sql(s"""CREATE TABLE uniqdatavector22 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'carbondata'""").collect sql(s"""LOAD DATA INPATH '$resourcesPath/Data/uniqdata/2000_UniqData.csv' into table uniqdatavector22 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')""").collect sql(s"""select cast(Double_COLUMN1 as int) from uniqdatavector22""").collect @@ -98,7 +98,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply sum method on a column with select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_078", Include) { + test("Vector2-TC_078", Include) { sql(s"""select sum(CUST_ID) from uniqdatavector22""").collect @@ -107,7 +107,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply the average method on a column with select query with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_079", Include) { + test("Vector2-TC_079", Include) { sql(s"""select avg(CUST_ID) from uniqdatavector22""").collect @@ -116,7 +116,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply the percentile_approx method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_080", Include) { + test("Vector2-TC_080", Include) { sql(s"""select percentile_approx(1, 0.5 ,500) from uniqdatavector22""").collect @@ -125,7 +125,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply the var_samp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_081", Include) { + test("Vector2-TC_081", Include) { sql(s"""select var_samp(cust_id) from uniqdatavector22""").collect @@ -134,7 +134,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply the stddev_pop method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_082", Include) { + test("Vector2-TC_082", Include) { sql(s"""select stddev_pop(cust_id) from uniqdatavector22""").collect @@ -143,7 +143,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply the stddev_samp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_083", Include) { + test("Vector2-TC_083", Include) { sql(s"""select stddev_samp(cust_id) from uniqdatavector22""").collect @@ -152,7 +152,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply percentile method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_084", Include) { + test("Vector2-TC_084", Include) { sql(s"""select percentile(0,1) from uniqdatavector22""").collect @@ -161,7 +161,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply min method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_085", Include) { + test("Vector2-TC_085", Include) { sql(s"""select min(CUST_ID) from uniqdatavector22""").collect @@ -170,7 +170,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To applied max method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_086", Include) { + test("Vector2-TC_086", Include) { sql(s"""select max(CUST_ID) from uniqdatavector22""").collect @@ -179,7 +179,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply sum method with plus operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_087", Include) { + test("Vector2-TC_087", Include) { sql(s"""select sum(CUST_ID+1) from uniqdatavector22""").collect @@ -189,7 +189,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply sum method with minus operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_088", Include) { + test("Vector2-TC_088", Include) { sql(s"""select sum(CUST_ID-1) from uniqdatavector22""").collect @@ -198,7 +198,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply count method with distinct operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_089", Include) { + test("Vector2-TC_089", Include) { sql(s"""select count(DISTINCT CUST_ID) from uniqdatavector22""").collect @@ -207,7 +207,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check random measure select query with AND operator and vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_090", Include) { + test("Vector2-TC_090", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector22 where cust_id=10999 and INTEGER_COLUMN1=2000 """).collect @@ -216,7 +216,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To check random measure select query with OR operator and vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_091", Include) { + test("Vector2-TC_091", Include) { sql(s"""select cust_name,DOB,DOJ from uniqdatavector22 where cust_id=10999 or INTEGER_COLUMN1=2000 """).collect @@ -225,7 +225,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply count method with if operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_092", Include) { + test("Vector2-TC_092", Include) { sql(s"""select count(if(CUST_ID<1999,NULL,CUST_NAME)) from uniqdatavector22""").collect @@ -234,7 +234,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply in operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_093", Include) { + test("Vector2-TC_093", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID IN(1,22)""").collect @@ -243,7 +243,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply not in operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_094", Include) { + test("Vector2-TC_094", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID NOT IN(1,22)""").collect @@ -252,7 +252,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply between operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_095", Include) { + test("Vector2-TC_095", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID BETWEEN 1 AND 11000""").collect @@ -261,7 +261,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply not between operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_096", Include) { + test("Vector2-TC_096", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID NOT BETWEEN 1 AND 11000""").collect @@ -270,7 +270,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply between in operator with order by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_097", Include) { + test("Vector2-TC_097", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID in (1,10999)order by 'CUST_ID'""").collect @@ -279,7 +279,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply between in operator with group by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_098", Include) { + test("Vector2-TC_098", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID in (1,10999) group by CUST_NAME""").collect @@ -288,7 +288,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply null clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_099", Include) { + test("Vector2-TC_099", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID is null""").collect @@ -297,7 +297,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To applied not null clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_100", Include) { + test("Vector2-TC_100", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID is not null""").collect @@ -306,7 +306,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply > operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_101", Include) { + test("Vector2-TC_101", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID>1""").collect @@ -315,7 +315,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply < operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_102", Include) { + test("Vector2-TC_102", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID<1""").collect @@ -324,7 +324,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply != operator with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_103", Include) { + test("Vector2-TC_103", Include) { sql(s"""select CUST_NAME from uniqdatavector22 where CUST_ID!=1""").collect @@ -333,7 +333,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply like clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_104", Include) { + test("Vector2-TC_104", Include) { sql(s"""select CUST_ID from uniqdatavector22 where CUST_ID like 10999""").collect @@ -342,7 +342,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply like% clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_105", Include) { + test("Vector2-TC_105", Include) { sql(s"""select CUST_ID from uniqdatavector22 where CUST_ID like '%10999%'""").collect @@ -351,7 +351,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply rlike clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_106", Include) { + test("Vector2-TC_106", Include) { sql(s"""select CUST_ID from uniqdatavector22 where CUST_ID rlike 10999""").collect @@ -360,7 +360,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply rlike% clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_107", Include) { + test("Vector2-TC_107", Include) { sql(s"""select CUST_ID from uniqdatavector22 where CUST_ID rlike '%10999'""").collect @@ -369,7 +369,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply alias clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_108", Include) { + test("Vector2-TC_108", Include) { sql(s"""select count(cust_id)+10.364 as a from uniqdatavector22""").collect @@ -378,7 +378,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply aliase clause with group by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_109", Include) { + test("Vector2-TC_109", Include) { sql(s"""select count(cust_id)+10.364 as a from uniqdatavector22 group by CUST_ID""").collect @@ -387,7 +387,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply aliase clause with order by clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_110", Include) { + test("Vector2-TC_110", Include) { sql(s"""select cust_id,count(cust_name) a from uniqdatavector22 group by cust_id order by cust_id""").collect @@ -396,7 +396,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply regexp_replace clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_111", Include) { + test("Vector2-TC_111", Include) { sql(s"""select regexp_replace(cust_id, 'i', 'ment') from uniqdatavector22""").collect @@ -405,7 +405,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply date_add method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_118", Include) { + test("Vector2-TC_118", Include) { sql(s"""SELECT date_add(DOB,1) FROM uniqdatavector22""").collect @@ -414,7 +414,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply date_sub method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_119", Include) { + test("Vector2-TC_119", Include) { sql(s"""SELECT date_sub(DOB,1) FROM uniqdatavector22""").collect @@ -423,7 +423,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply current_date method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_120", Include) { + test("Vector2-TC_120", Include) { sql(s"""SELECT current_date() FROM uniqdatavector22""").collect @@ -432,7 +432,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply add_month method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_121", Include) { + test("Vector2-TC_121", Include) { sql(s"""SELECT add_months(dob,1) FROM uniqdatavector22""").collect @@ -441,7 +441,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply last_day method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_122", Include) { + test("Vector2-TC_122", Include) { sql(s"""SELECT last_day(dob) FROM uniqdatavector22""").collect @@ -450,7 +450,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply next_day method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_123", Include) { + test("Vector2-TC_123", Include) { sql(s"""SELECT next_day(dob,'monday') FROM uniqdatavector22""").collect @@ -459,7 +459,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply months_between method on carbon table - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_124", Include) { + test("Vector2-TC_124", Include) { sql(s"""select months_between('2016-12-28', '2017-01-30') from uniqdatavector22""").collect @@ -468,7 +468,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //Toapply date_diff method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_125", Include) { + test("Vector2-TC_125", Include) { sql(s"""select datediff('2009-03-01', '2009-02-27') from uniqdatavector22""").collect @@ -477,7 +477,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply concat method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_126", Include) { + test("Vector2-TC_126", Include) { sql(s"""SELECT concat('hi','hi') FROM uniqdatavector22""").collect @@ -486,7 +486,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply lower method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_127", Include) { + test("Vector2-TC_127", Include) { sql(s"""SELECT lower('H') FROM uniqdatavector22""").collect @@ -495,7 +495,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply substr method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_128", Include) { + test("Vector2-TC_128", Include) { sql(s"""select substr(cust_id,3) from uniqdatavector22""").collect @@ -504,7 +504,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply trim method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_129", Include) { + test("Vector2-TC_129", Include) { sql(s"""select trim(cust_id) from uniqdatavector22""").collect @@ -513,7 +513,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply split method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_130", Include) { + test("Vector2-TC_130", Include) { sql(s"""select split('knoldus','ol') from uniqdatavector22""").collect @@ -522,7 +522,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply split method limit clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_131", Include) { + test("Vector2-TC_131", Include) { sql(s"""select split('knoldus','ol') from uniqdatavector22 limit 1""").collect @@ -531,7 +531,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply reverse on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_132", Include) { + test("Vector2-TC_132", Include) { sql(s"""select reverse('knoldus') from uniqdatavector22""").collect @@ -540,7 +540,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply replace on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_133", Include) { + test("Vector2-TC_133", Include) { sql(s"""select regexp_replace('Tester', 'T', 't') from uniqdatavector22""").collect @@ -549,7 +549,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply replace with limit clause with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_134", Include) { + test("Vector2-TC_134", Include) { sql(s"""select regexp_replace('Tester', 'T', 't') from uniqdatavector22 limit 1""").collect @@ -558,7 +558,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply FORMAT_STRING on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_135", Include) { + test("Vector2-TC_135", Include) { sql(s"""select format_string('data', cust_name) from uniqdatavector22""").collect @@ -567,7 +567,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply sentences method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_136", Include) { + test("Vector2-TC_136", Include) { sql(s"""select sentences(cust_name) from uniqdatavector22""").collect @@ -576,7 +576,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply space method on carbon table with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_137", Include) { + test("Vector2-TC_137", Include) { sql(s"""select space(10) from uniqdatavector22""").collect @@ -585,7 +585,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply rtrim method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_138", Include) { + test("Vector2-TC_138", Include) { sql(s"""select rtrim(" testing ") from uniqdatavector22""").collect @@ -594,7 +594,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply ascii method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_139", Include) { + test("Vector2-TC_139", Include) { sql(s"""select ascii('A') from uniqdatavector22""").collect @@ -603,7 +603,7 @@ class Vector2TestCase extends QueryTest with BeforeAndAfterAll { //To apply utc_timestamp method with vectorized carbon reader enabled - test("PTS-AR-Productize-New-Features-Huawei-Spark2.1-007-01-01-01_001-TC_140", Include) { + test("Vector2-TC_140", Include) { sql(s"""select from_utc_timestamp('2016-12-12 08:00:00','PST') from uniqdatavector22""").collect diff --git a/pom.xml b/pom.xml index 64accea0f48..3540221ee33 100644 --- a/pom.xml +++ b/pom.xml @@ -366,6 +366,8 @@ true **/*SparkUnknownExpression*.class + **/org/apache/carbondata/cluster/sdv/generated/* + **/org.apache.carbondata.cluster.sdv.generated.* **/org.apache.*