Skip to content

Commit

Permalink
Test for checking results against aws
Browse files Browse the repository at this point in the history
Added query generator which generates equivalent queries for aws
and ceph. After runing these queries, their results are matched.

Signed-off-by: Girjesh Rajoria <[email protected]>
  • Loading branch information
grajoria committed Jul 5, 2021
1 parent 5961378 commit 9817c8a
Show file tree
Hide file tree
Showing 107 changed files with 1,351 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ add_executable(s3select_test s3select_test.cpp)
target_include_directories(s3select_test PUBLIC ../include)
target_link_libraries(s3select_test gtest gtest_main boost_date_time boost_thread boost_system pthread)

add_subdirectory(queries_generator)

include(GoogleTest)
gtest_discover_tests(s3select_test)
2 changes: 2 additions & 0 deletions test/queries_generator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_executable(queries_generator queries_generator.cpp)
add_executable(generate_aws_cmds generate_aws_cmds.cpp)
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
4
4
4
4
4
4
4
4
4
4
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output10.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
7306
3600
9023
7257
6356
5735
7517
360
5457
7079
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output100.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
1940-02-01T15:30:44.640810Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output11.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
worker
worker
doctor
firefighter
worker
police officer
doctor
developer
doctor
police officer
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output12.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
am 17 z 8 am
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output13.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
24 8 08 44
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output14.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
42190
20802
34669
37651
42153
44993
7779
22578
37872
5880
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output15.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
7325
3639
9082
7336
6455
5854
7656
520
5637
7279
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output16.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-257556
-127015
-213488
-230331
-256816
-273497
-51294
-135805
-230642
-39676
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output17.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
1926-10-01T02:11:24.471167Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output18.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@










10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output19.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
25 +00 29
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
1935-09-17T01:37:17.162313Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output20.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
88884
43859
76683
80270
87774
92454
23891
43514
78662
19829
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output21.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
1901-10-21T11:53:51.849814Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output22.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
658155
658155
658155
658155
658155
658155
658155
658155
658155
658155
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output23.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Z :
Z :
Z :
Z :
Z :
Z :
Z :
Z :
Z :
Z :
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output24.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
38498
19147
47722
38556
33931
30775
40236
2767
29631
38251
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output25.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
z 04 307516 307516
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output26.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
1911-09-24T00:04:03.726161Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output27.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
314819455
77224682
323467040
281960028
276672295
267247432
65520585
11950388
216988318
48174519
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output28.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
1921-01-19T01:02:46.247190Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output29.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
50259
24815
44669
45729
49261
51439
16206
23153
44075
13888
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output3.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
1928-05-10T10:02:38.119492Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output30.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1
2
3
4
5
6
7
8
9
10
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output31.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
27067
27067
27067
27067
27067
27067
27067
27067
27067
27067
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output32.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
1970-03-06T01:06:41.606432Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output33.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
332
332
332
332
332
332
331
331
331
331
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output34.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
15
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output35.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
1944-02-22T20:21:23.730763Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output36.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0
-10585
-23721
-28791
-34242
-37985
-7327
-19804
-34168
-5950
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output37.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
3577
1764
2965
3199
3566
3798
712
1886
3203
550
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output38.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
1939-08-27T10:46:42.829453Z
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output39.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0
0
0
0
0
0
0
0
0
0
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
35591
17520
26489
31042
36337
39718
882
22104
32793
-677
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output40.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
1916-03-19T14:11:08.451358Z
Loading

0 comments on commit 9817c8a

Please sign in to comment.