Skip to content

Commit 6860cb5

Browse files
fix: avoid unsupported sql benchmark function (#229)
1 parent 418190c commit 6860cb5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

benches/git.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,15 @@ fn bench_sql_time_travel_queries(c: &mut Criterion) {
317317
let result = glue.execute(
318318
"SELECT
319319
metric,
320-
DATE_TRUNC('hour', timestamp) as hour,
320+
timestamp,
321321
AVG(value) as avg_value,
322322
MIN(value) as min_value,
323323
MAX(value) as max_value
324324
FROM time_series
325325
WHERE timestamp >= TIMESTAMP '2024-01-01 06:00:00'
326326
AND timestamp <= TIMESTAMP '2024-01-01 18:00:00'
327-
GROUP BY metric, DATE_TRUNC('hour', timestamp)
328-
ORDER BY metric, hour"
327+
GROUP BY metric, timestamp
328+
ORDER BY metric, timestamp"
329329
).await.unwrap();
330330
black_box(result);
331331
})

0 commit comments

Comments
 (0)