Skip to content

Commit

Permalink
[improve](regression case) Add more inverted index regression case (a…
Browse files Browse the repository at this point in the history
…pache#18589)

1. add more inverted index regression case for unique mow
2. add inverted index case with different data types
  • Loading branch information
Tanya-W authored Apr 12, 2023
1 parent a9f9366 commit 1f93725
Show file tree
Hide file tree
Showing 45 changed files with 1,925 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q1.1 --
\N

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q1.2 --
\N

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q1.3 --
\N

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q2.1 --
29165996 1992 MFGR#121
23120066 1992 MFGR#1210
52982362 1992 MFGR#1211
30954680 1992 MFGR#1212
15288453 1992 MFGR#1213
7655070 1992 MFGR#1214
22246540 1992 MFGR#1215
19716439 1992 MFGR#1216
43666251 1992 MFGR#1217
22759602 1992 MFGR#1218
23318799 1992 MFGR#1219
74056106 1992 MFGR#122
51050565 1992 MFGR#1220
38878674 1992 MFGR#1221
16558051 1992 MFGR#1222
26690787 1992 MFGR#1223
76498594 1992 MFGR#1224
32608903 1992 MFGR#1225
47636685 1992 MFGR#1226
27691433 1992 MFGR#1227
32513490 1992 MFGR#1228
35514258 1992 MFGR#1229
17199862 1992 MFGR#123
24678908 1992 MFGR#1230
26231337 1992 MFGR#1231
36330900 1992 MFGR#1232
24946678 1992 MFGR#1233
36431683 1992 MFGR#1234
39368479 1992 MFGR#1235
44456974 1992 MFGR#1236
31443810 1992 MFGR#1237
49003021 1992 MFGR#1238
31379822 1992 MFGR#1239
24245603 1992 MFGR#124
49870826 1992 MFGR#1240
28194770 1992 MFGR#125
40503844 1992 MFGR#126
36027836 1992 MFGR#127
35881895 1992 MFGR#128
21732451 1992 MFGR#129

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q2.2 --
28235270 1992 MFGR#2221
64071827 1992 MFGR#2222
48591160 1992 MFGR#2223
20416501 1992 MFGR#2224
74950776 1992 MFGR#2225
60628045 1992 MFGR#2226
39273349 1992 MFGR#2227
66658087 1992 MFGR#2228

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q2.3 --
89380397 1992 MFGR#2239

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q3.1 --
JAPAN CHINA 1992 637991852
VIETNAM CHINA 1992 621845377
INDONESIA CHINA 1992 621316255
CHINA CHINA 1992 614550901
INDIA CHINA 1992 561966207
INDIA INDONESIA 1992 487449629
INDONESIA INDONESIA 1992 477417717
JAPAN INDONESIA 1992 476513261
JAPAN VIETNAM 1992 468999429
INDONESIA JAPAN 1992 465870469
VIETNAM INDONESIA 1992 462424521
INDIA JAPAN 1992 412186106
JAPAN JAPAN 1992 399179790
VIETNAM JAPAN 1992 395247587
JAPAN INDIA 1992 393835589
CHINA INDONESIA 1992 352903905
CHINA INDIA 1992 348359904
VIETNAM VIETNAM 1992 342176333
INDIA VIETNAM 1992 334582962
INDIA INDIA 1992 329354089
CHINA JAPAN 1992 327558220
CHINA VIETNAM 1992 324763767
INDONESIA INDIA 1992 310417666
VIETNAM INDIA 1992 296225919
INDONESIA VIETNAM 1992 278083418

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q3.2 --
UNITED ST4 UNITED ST0 1992 34626982
UNITED ST4 UNITED ST3 1992 29767238
UNITED ST1 UNITED ST9 1992 25644597
UNITED ST2 UNITED ST0 1992 23943154
UNITED ST4 UNITED ST9 1992 21189183
UNITED ST0 UNITED ST0 1992 18293852
UNITED ST7 UNITED ST3 1992 17996772
UNITED ST9 UNITED ST3 1992 17863433
UNITED ST1 UNITED ST7 1992 17410800
UNITED ST2 UNITED ST3 1992 15331073
UNITED ST5 UNITED ST9 1992 14448179
UNITED ST1 UNITED ST3 1992 13938002
UNITED ST5 UNITED ST6 1992 12398029
UNITED ST9 UNITED ST2 1992 12370917
UNITED ST2 UNITED ST9 1992 12343455
UNITED ST5 UNITED ST0 1992 12301234
UNITED ST6 UNITED ST0 1992 11900889
UNITED ST4 UNITED ST2 1992 11696334
UNITED ST4 UNITED ST6 1992 11369008
UNITED ST1 UNITED ST6 1992 11000283
UNITED ST1 UNITED ST0 1992 10878084
UNITED ST4 UNITED ST7 1992 10151573
UNITED ST5 UNITED ST2 1992 9917834
UNITED ST7 UNITED ST7 1992 9715656
UNITED ST6 UNITED ST6 1992 8685228
UNITED ST2 UNITED ST2 1992 8313714
UNITED ST1 UNITED ST2 1992 8004700
UNITED ST2 UNITED ST7 1992 7759164
UNITED ST0 UNITED ST7 1992 7137641
UNITED ST9 UNITED ST7 1992 6703890
UNITED ST6 UNITED ST9 1992 6597261
UNITED ST7 UNITED ST2 1992 6125476
UNITED ST7 UNITED ST6 1992 6058017
UNITED ST5 UNITED ST3 1992 5862031
UNITED ST8 UNITED ST9 1992 5690491
UNITED ST7 UNITED ST9 1992 5403152
UNITED ST9 UNITED ST0 1992 4816370
UNITED ST9 UNITED ST9 1992 4234523
UNITED ST3 UNITED ST3 1992 4080199
UNITED ST5 UNITED ST7 1992 3936271
UNITED ST8 UNITED ST0 1992 3574169
UNITED ST0 UNITED ST3 1992 3201624
UNITED ST3 UNITED ST9 1992 2614811
UNITED ST8 UNITED ST7 1992 2373825
UNITED ST9 UNITED ST6 1992 2066609
UNITED ST7 UNITED ST0 1992 1882015
UNITED ST6 UNITED ST3 1992 1873819
UNITED ST6 UNITED ST2 1992 291566

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q3.3 --
UNITED KI5 UNITED KI1 1992 4397192

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q3.4 --

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q4.1 --
1992 ARGENTINA 533196600
1992 BRAZIL 684224630
1992 CANADA 532686194
1992 PERU 586223155
1992 UNITED STATES 682387184

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q4.2 --

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q4.3 --

115 changes: 115 additions & 0 deletions regression-test/data/inverted_index_p0/test_inverted_index.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql --
k1 TINYINT Yes true \N
k2 SMALLINT Yes true \N
k3 INT Yes true \N
k4 BIGINT Yes false \N NONE
k5 CHAR(1) Yes false \N NONE
k6 VARCHAR(1) Yes false \N NONE
k7 DATE Yes false \N NONE
k8 DATETIME Yes false \N NONE
k9 LARGEINT Yes false \N NONE
k10 DECIMAL(9, 0) Yes false \N NONE
k11 BOOLEAN Yes false \N NONE
k12 DATE Yes false \N NONE
k13 DATETIME Yes false \N NONE
k14 DATETIME Yes false \N NONE
k15 DATETIME Yes false \N NONE

-- !sql --
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index1 k1 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index2 k2 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index3 k3 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index4 k4 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index5 k5 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index6 k6 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index7 k7 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index8 k8 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index9 k9 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index10 k10 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index11 k11 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index12 k12 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index13 k13 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index14 k14 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_dup index15 k15 INVERTED

-- !sql --
1 1 1 1 1 1 2022-05-31 2022-05-31T10:00 1 1 true 2022-05-31 2022-05-31T10:00 2022-05-31T10:00:00.111 2022-05-31T10:00:00.111111

-- !sql --
k1 TINYINT Yes true \N
k2 SMALLINT Yes true \N
k3 INT Yes true \N
k4 BIGINT Yes true \N
k5 CHAR(1) Yes true \N
k6 VARCHAR(1) Yes true \N
k7 DATE Yes true \N
k8 DATETIME Yes true \N
k9 LARGEINT Yes true \N
k10 DECIMAL(9, 0) Yes true \N
k11 BOOLEAN Yes true \N
k12 DATE Yes true \N
k13 DATETIME Yes true \N
k14 DATETIME Yes true \N
k15 DATETIME Yes true \N
v1 INT Yes false \N SUM

-- !sql --
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index1 k1 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index2 k2 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index3 k3 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index4 k4 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index5 k5 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index6 k6 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index7 k7 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index8 k8 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index9 k9 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index10 k10 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index11 k11 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index12 k12 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index13 k13 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index14 k14 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_agg index15 k15 INVERTED

-- !sql --
1 1 1 1 1 1 2022-05-31 2022-05-31T10:00 1 1 true 2022-05-31 2022-05-31T10:00 2022-05-31T10:00:00.111 2022-05-31T10:00:00.111111 1

-- !sql --
k1 TINYINT Yes true \N
k2 SMALLINT Yes true \N
k3 INT Yes true \N
k4 BIGINT Yes true \N
k5 CHAR(1) Yes true \N
k6 VARCHAR(1) Yes true \N
k7 DATE Yes true \N
k8 DATETIME Yes true \N
k9 LARGEINT Yes true \N
k10 DECIMAL(9, 0) Yes true \N
k11 BOOLEAN Yes true \N
k12 DATE Yes false \N NONE
k13 DATETIME Yes false \N NONE
k14 DATETIME Yes false \N NONE
k15 DATETIME Yes false \N NONE
v1 INT Yes false \N NONE

-- !sql --
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index1 k1 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index2 k2 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index3 k3 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index4 k4 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index5 k5 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index6 k6 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index7 k7 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index8 k8 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index9 k9 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index10 k10 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index11 k11 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index12 k12 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index13 k13 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index14 k14 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index15 k15 INVERTED
default_cluster:regression_test_inverted_index_p0.test_inverted_index_unique index16 v1 INVERTED

-- !sql --
1 1 1 1 1 1 2022-05-31 2022-05-31T10:00 1 1 true 2022-05-31 2022-05-31T10:00 2022-05-31T10:00:00.111 2022-05-31T10:00:00.111111 1

Loading

0 comments on commit 1f93725

Please sign in to comment.