Skip to content

Commit 5f513ae

Browse files
committed
Clickbench test
1 parent d1f8596 commit 5f513ae

68 files changed

Lines changed: 634 additions & 25 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,14 @@ con.execute('''
267267
```
268268

269269
## Correctness Testing
270-
Sirius provides a unit test that compares Sirius against DuckDB for correctness across all 22 TPC-H queries. To run the unittest, generate SF=1 TPC-H dataset using the method described [here](https://github.com/sirius-db/sirius?tab=readme-ov-file#generating-tpc-h-dataset) and run the unittest using the following command:
270+
Sirius provides a unit test that compares Sirius against DuckDB for correctness across many test queries. To run the unittest, generate the datasets using the method described [here](https://github.com/sirius-db/sirius?tab=readme-ov-file#generating-tpc-h-dataset) and run the unittest using the following command:
271271
```
272272
make test
273273
```
274274

275275
To run a specific test run the command from the root directory:
276276
```
277+
make -j {nproc}
277278
build/release/test/unittest --test-dir . test/sql/clickbench_queries.test
278279
```
279280

test/answers/clickbench/q1.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
total
2+
1428535

test/answers/clickbench/q10.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RegionID|sum|c|avg|c_dist
2+
229|38831|530550|1563.1453680143247|37579
3+
2|12922|177044|1544.206479745148|13612
4+
158|143|96366|288.79302866156115|22725
5+
208|2724|40767|1313.277184978046|4942
6+
1|1869|33759|1543.1276696584614|2370
7+
34|549|22019|1446.801989191153|2354
8+
42|642|16748|1458.2838547886315|1515
9+
47|1043|16520|1521.673426150121|1388
10+
184|30|15560|1425.5323264781491|1663
11+
169|21|14309|1022.6057027045915|2561

test/answers/clickbench/q11.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MobilePhoneModel|u
2+
iPad|4362
3+
iPhone|221
4+
A500|78
5+
iPho|18
6+
GT-P7300B|18
7+
N8-00|14
8+
3110000|13
9+
eagle75|10
10+
ONE TOUCH 6030A|9
11+
308|7

test/answers/clickbench/q12.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MobilePhone|MobilePhoneModel|u
2+
1|iPad|3663
3+
5|iPad|203
4+
7|iPad|157
5+
6|iPad|112
6+
118|A500|78
7+
6|iPhone|75
8+
60|iPad|67
9+
26|iPhone|66
10+
32|iPad|52
11+
13|iPad|32

test/answers/clickbench/q13.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SearchPhrase|c
2+
ведомосквы вместу|4943
3+
ведомосквы вы из|2471
4+
ведомосквиталия страции|2026
5+
ведомосковский|1686
6+
рецепты сбербан|1244
7+
покеты рецепт засня|961
8+
авторий|705
9+
инстанец жизнь|596
10+
тип туроп|524
11+
ведомосква|446

test/answers/clickbench/q14.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SearchPhrase|u
2+
ведомосквы вместу|1381
3+
рецепты сбербан|909
4+
ведомосквы вы из|678
5+
ведомосквиталия страции|658
6+
инстанец жизнь|444
7+
тип туроп|441
8+
ведомосковский|407
9+
покеты рецепт засня|281
10+
авторий|196
11+
рецепт блиноленские|196

test/answers/clickbench/q15.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SearchEngineID|SearchPhrase|c
2+
2|ведомосквы вместу|3478
3+
2|ведомосквы вы из|1857
4+
2|ведомосковский|1682
5+
2|ведомосквиталия страции|1434
6+
2|рецепты сбербан|1172
7+
4|покеты рецепт засня|959
8+
3|ведомосквы вместу|660
9+
2|авторий|576
10+
3|ведомосквиталия страции|494
11+
2|инстанец жизнь|486

test/answers/clickbench/q16.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
UserID|count
2+
6949028786848070043|2496
3+
1508127196834704092|1303
4+
3787634936610360879|1270
5+
3205616454965152970|949
6+
502693359570399458|893
7+
873022393995828557|876
8+
2256536417172705921|695
9+
3372693799634031492|650
10+
340634745528635910|610
11+
4658845711757699259|560

test/answers/clickbench/q17.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
UserID|SearchPhrase|count
2+
6949028786848070043||2496
3+
1508127196834704092||1303
4+
3787634936610360879||1269
5+
3205616454965152970||949
6+
502693359570399458||893
7+
873022393995828557||876
8+
2256536417172705921||695
9+
3372693799634031492||650
10+
340634745528635910||610
11+
72709437341035504||560

0 commit comments

Comments
 (0)