1 parent 418190c commit 6860cb5Copy full SHA for 6860cb5
1 file changed
benches/git.rs
@@ -317,15 +317,15 @@ fn bench_sql_time_travel_queries(c: &mut Criterion) {
317
let result = glue.execute(
318
"SELECT
319
metric,
320
- DATE_TRUNC('hour', timestamp) as hour,
+ timestamp,
321
AVG(value) as avg_value,
322
MIN(value) as min_value,
323
MAX(value) as max_value
324
FROM time_series
325
WHERE timestamp >= TIMESTAMP '2024-01-01 06:00:00'
326
AND timestamp <= TIMESTAMP '2024-01-01 18:00:00'
327
- GROUP BY metric, DATE_TRUNC('hour', timestamp)
328
- ORDER BY metric, hour"
+ GROUP BY metric, timestamp
+ ORDER BY metric, timestamp"
329
).await.unwrap();
330
black_box(result);
331
})
0 commit comments