Skip to content

Commit 1737d03

Browse files
authored
Merge pull request ClickHouse#379 from GlareDB/sean/partitioned
Update GlareDB, add partitioned parquet results
2 parents 80ea801 + dfd847d commit 1737d03

File tree

6 files changed

+149
-57
lines changed

6 files changed

+149
-57
lines changed

glaredb/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$(basename "$repo_root")" == "glaredb" ]]; then
1212
else
1313
# Not in glaredb repo, use prebuilt binary.
1414
export GLAREDB_INSTALL_DIR="${script_dir}"
15-
export GLAREDB_VERSION="v25.5.2"
15+
export GLAREDB_VERSION="v25.5.11"
1616
curl -fsSL https://glaredb.com/install.sh | sh
1717
fi
1818

glaredb/create_partitioned.sql

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CREATE TEMP VIEW hits AS
2+
SELECT * REPLACE (
3+
EventDate::DATE AS EventDate,
4+
Title::TEXT AS Title,
5+
URL::TEXT AS URL,
6+
Referer::TEXT AS Referer,
7+
FlashMinor2::TEXT AS FlashMinor2,
8+
UserAgentMinor::TEXT AS UserAgentMinor,
9+
MobilePhoneModel::TEXT AS MobilePhoneModel,
10+
Params::TEXT AS Params,
11+
SearchPhrase::TEXT AS SearchPhrase,
12+
PageCharset::TEXT AS PageCharset,
13+
OriginalURL::TEXT AS OriginalURL,
14+
HitColor::TEXT AS HitColor,
15+
BrowserLanguage::TEXT AS BrowserLanguage,
16+
BrowserCountry::TEXT AS BrowserCountry,
17+
SocialNetwork::TEXT AS SocialNetwork,
18+
SocialAction::TEXT AS SocialAction,
19+
SocialSourcePage::TEXT AS SocialSourcePage,
20+
ParamOrderID::TEXT AS ParamOrderID,
21+
ParamCurrency::TEXT AS ParamCurrency,
22+
OpenstatServiceName::TEXT AS OpenstatServiceName,
23+
OpenstatCampaignID::TEXT AS OpenstatCampaignID,
24+
OpenstatAdID::TEXT AS OpenstatAdID,
25+
OpenstatSourceID::TEXT AS OpenstatSourceID,
26+
UTMSource::TEXT AS UTMSource,
27+
UTMMedium::TEXT AS UTMMedium,
28+
UTMCampaign::TEXT AS UTMCampaign,
29+
UTMContent::TEXT AS UTMContent,
30+
UTMTerm::TEXT AS UTMTerm,
31+
FromTag::TEXT AS FromTag
32+
)
33+
FROM read_parquet('./data/hits_*.parquet')
34+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"system": "GlareDB (Parquet, partitioned)",
3+
"date": "2025-05-25",
4+
"machine": "c6a.4xlarge, 500gb gp2",
5+
"cluster_size": 1,
6+
"comment": "",
7+
"tags": ["Rust", "serverless"],
8+
"load_time": 0,
9+
"data_size": 14779976446,
10+
"result": [
11+
[0.031,0.020,0.020],
12+
[0.127,0.114,0.099],
13+
[0.248,0.205,0.201],
14+
[0.342,0.148,0.153],
15+
[1.188,0.998,0.999],
16+
[1.228,1.128,1.139],
17+
[0.118,0.105,0.099],
18+
[0.140,0.111,0.111],
19+
[1.589,1.489,1.478],
20+
[1.938,1.821,1.820],
21+
[0.710,0.601,0.597],
22+
[0.805,0.705,0.689],
23+
[1.340,1.223,1.263],
24+
[2.941,2.311,2.329],
25+
[1.450,1.363,1.378],
26+
[1.421,1.317,1.320],
27+
[3.008,2.571,2.562],
28+
[2.755,2.188,2.169],
29+
[5.958,4.737,4.731],
30+
[0.205,0.150,0.154],
31+
[10.010,1.989,1.944],
32+
[11.209,1.669,1.681],
33+
[21.838,3.420,3.355],
34+
[56.158,16.690,16.615],
35+
[2.671,1.123,1.132],
36+
[1.255,1.201,1.175],
37+
[2.697,1.351,1.359],
38+
[9.724,2.921,2.769],
39+
[12.476,11.973,11.867],
40+
[4.771,4.769,4.800],
41+
[2.188,1.403,1.370],
42+
[6.008,1.718,1.710],
43+
[7.814,6.456,6.456],
44+
[11.128,4.671,4.650],
45+
[11.143,4.858,4.816],
46+
[1.462,1.407,1.407],
47+
[0.244,0.175,0.176],
48+
[0.180,0.148,0.150],
49+
[0.152,0.088,0.103],
50+
[0.393,0.308,0.307],
51+
[0.090,0.057,0.055],
52+
[0.088,0.056,0.052],
53+
[0.087,0.058,0.059]
54+
]
55+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"system": "GlareDB (Parquet, single)",
3+
"date": "2025-05-25",
4+
"machine": "c6a.4xlarge, 500gb gp2",
5+
"cluster_size": 1,
6+
"comment": "",
7+
"tags": ["Rust", "serverless"],
8+
"load_time": 0,
9+
"data_size": 14779976446,
10+
"result": [
11+
[0.042,0.037,0.039],
12+
[0.128,0.109,0.108],
13+
[0.238,0.207,0.209],
14+
[0.310,0.159,0.156],
15+
[1.039,0.968,0.974],
16+
[1.057,0.992,0.997],
17+
[0.117,0.107,0.108],
18+
[0.134,0.121,0.120],
19+
[1.518,1.425,1.452],
20+
[1.854,1.752,1.763],
21+
[0.553,0.478,0.481],
22+
[0.646,0.564,0.559],
23+
[1.053,0.960,0.971],
24+
[2.859,2.038,2.044],
25+
[1.149,1.070,1.073],
26+
[1.368,1.278,1.281],
27+
[2.954,2.389,2.378],
28+
[2.672,2.054,2.012],
29+
[5.767,4.403,4.415],
30+
[0.220,0.174,0.177],
31+
[9.679,1.597,1.648],
32+
[11.132,1.522,1.515],
33+
[21.898,3.573,3.587],
34+
[55.924,14.342,14.250],
35+
[2.528,0.813,0.819],
36+
[0.964,0.900,0.906],
37+
[2.547,1.040,1.050],
38+
[9.488,1.423,1.454],
39+
[11.198,10.757,10.516],
40+
[4.607,4.607,4.650],
41+
[2.165,1.231,1.210],
42+
[5.868,1.545,1.601],
43+
[7.346,6.075,6.167],
44+
[10.930,3.838,3.802],
45+
[10.975,4.016,3.983],
46+
[1.405,1.383,1.391],
47+
[0.241,0.187,0.186],
48+
[0.178,0.154,0.153],
49+
[0.177,0.123,0.124],
50+
[0.436,0.342,0.346],
51+
[0.099,0.090,0.073],
52+
[0.092,0.069,0.088],
53+
[0.092,0.077,0.089]
54+
]
55+
}

glaredb/results/c6a.4xlarge.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

glaredb/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ case "$1" in
77
single)
88
create_sql_file="create_single.sql"
99
;;
10+
partitioned)
11+
create_sql_file="create_partitioned.sql"
12+
;;
1013
*)
11-
echo "Invalid argument to 'run.sh', expected 'single'"
14+
echo "Invalid argument to 'run.sh', expected 'single' or 'partitioned'"
1215
exit 1
1316
;;
1417
esac

0 commit comments

Comments
 (0)