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 03bf4b3
Show file tree
Hide file tree
Showing 107 changed files with 1,332 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 @@
77
40
27
20
15
12
9
7
5
3
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 @@
2027-02-03T14:21:30.397Z
2016-03-10T04:22:45.8327+09:45
2007-06-08T02:18:23.446633-12:00
2001-12-01T04:40:00+12:30
2019-05-07T08:27:59.2Z
2004-07-08T20:25-01:05
2014-01-19T01:00:30Z
2026-10-08T14:07:01.23323-00:30
2025-07-28T23:21:22.23+05:15
2006-12-21T17:41Z
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 @@










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 @@
-258
-258
-258
-258
-258
-258
-258
-258
-258
-258
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 @@
42930
21173
35585
38392
42806
45586
8552
22637
38443
6615
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 @@
7327
3647
9096
7356
6481
5886
7694
563
5686
7334
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 @@
350375
88077
73924
82220
50598
54906
3725
29642
7161
-5091
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 @@
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
1974-03-28T06:54:22.859837Z
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 @@
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
1963-07-03T08:48:01.749638Z
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 @@
ker
ker
tor
efigh
ker
ice o
tor
elope
tor
ice o
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 @@
-21539135
-15805312
-11199932
-8297004
-17469342
-9666764
-14678174
-21369231
-20740160
-10958215
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 @@
:
:
:
:
:
:
:
:
:
:
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 @@
31931
15711
21967
27401
33144
36834
-2895
21903
30042
-4241
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 @@
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
1914-02-11T14:46:06.505116Z
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 @@
-57554
-32073
-71905
-75073
-81546
-86583
-69828
-27345
-94849
-86728
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 @@
-35562
-13859
-8300
-9002
-10478
-10401
45109
-18407
12367
66260
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 @@
2027-02-26T11:24:37.397Z
2016-04-02T01:25:52.8327+09:45
2007-06-27T23:21:30.446633-12:00
2001-12-24T01:43:07+12:30
2019-05-30T05:31:06.2Z
2004-07-31T17:28:07-01:05
2014-02-10T22:03:37Z
2026-10-30T11:10:08.23323-00:30
2025-08-20T20:24:29.23+05:15
2007-01-13T14:44:07Z
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 @@
429982
106199
119503
96696
86243
76550
12972
28339
43271
7337
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 @@
0
0
0
0
1
1
1
1
1
2
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output26.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
84769246786
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output27.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30572
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 @@
2020-10-29T15:21:48.397Z
2009-12-05T05:23:03.8327+09:45
2001-03-03T03:18:41.446633-12:00
1995-08-27T05:40:18+12:30
2013-02-02T09:28:17.2Z
1998-04-03T21:25:18-01:05
2007-10-14T02:00:48Z
2020-07-03T15:07:19.23323-00:30
2019-04-24T00:21:40.23+05:15
2000-09-16T18:41:18Z
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 @@
2
0
-2
-5
-7
-9
-11
-14
-16
-18
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 @@



er

ficer



ficer
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output30.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
121053
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 @@
2022-10-26T14:28:30.397Z
2011-12-02T04:29:45.8327+09:45
2003-02-28T02:25:23.446633-12:00
1997-08-24T04:47:00+12:30
2015-01-30T08:34:59.2Z
2000-03-31T20:32-01:05
2009-10-11T01:07:30Z
2022-06-30T14:14:01.23323-00:30
2021-04-20T23:28:22.23+05:15
2002-09-13T17:48Z
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 @@
2020-10-27T05:21:37.397Z
2009-12-02T19:22:52.8327+09:45
2001-02-28T17:18:30.446633-12:00
1995-08-24T19:40:07+12:30
2013-01-30T23:28:06.2Z
1998-04-01T11:25:07-01:05
2007-10-11T16:00:37Z
2020-07-01T05:07:08.23323-00:30
2019-04-21T14:21:29.23+05:15
2000-09-14T08:41:07Z
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 @@
-13594
-6595
741
-9084
-17066
-22304
21874
-20833
-16255
22047
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output34.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
2020-10-26T21:23:39.397Z
2009-12-02T11:24:54.8327+09:45
2001-02-28T09:20:32.446633-12:00
1995-08-24T11:42:09+12:30
2013-01-30T15:30:08.2Z
1998-04-01T03:27:09-01:05
2007-10-11T08:02:39Z
2020-06-30T21:09:10.23323-00:30
2019-04-21T06:23:31.23+05:15
2000-09-14T00:43:09Z
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 @@
5 5
5 5
5 5
5 5
5 5
5 5
5 5
5 5
5 5
5 5
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 @@
2
2
2
2
2
2
2
2
2
2
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 @@
53707960
26561807
247785079
215632847
208737934
206056457
411034742
2190215
286546921
530698312
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 @@
1
1
1
1
1
1
0
1
1
0
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 @@
1
1
1
1
5
5
0
1
8
2
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-67
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 @@
Nov 39 +00:00 2020 +00:00 02020 11
Dec 83 +09:45 2009 +09:45 02009 12
Mar 44 -12:00 2001 -12:00 02001 3
Sep 00 +12:30 1995 +12:30 01995 9
Feb 20 +00:00 2013 +00:00 02013 2
Apr 00 -01:05 1998 -01:05 01998 4
Oct 00 +00:00 2007 +00:00 02007 10
Jul 23 -00:30 2020 -00:30 02020 7
May 23 +05:15 2019 +05:15 02019 5
Sep 00 +00:00 2000 +00:00 02000 9
1 change: 1 addition & 0 deletions test/queries_generator/aws_results/output41.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
74
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output42.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
42
21
35
38
42
45
85
22
38
66
10 changes: 10 additions & 0 deletions test/queries_generator/aws_results/output43.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
13466
6672
14174
12829
12578
12374
8886
3761
11137
8232
Loading

0 comments on commit 03bf4b3

Please sign in to comment.