From 4e1cf9ef6c7c8c54af4b2cebb3982fccf4db421b Mon Sep 17 00:00:00 2001 From: mo Date: Thu, 25 Jun 2026 01:24:58 +0000 Subject: [PATCH] Use equivalent 5M sin benchmark query on Trino --- api/sql_console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/sql_console.py b/api/sql_console.py index 992179d..fd841a9 100644 --- a/api/sql_console.py +++ b/api/sql_console.py @@ -52,7 +52,7 @@ SAMPLES: dict[str, list[dict[str, str]]] = { BENCHMARK_SQL = { "postgres": "SELECT sum(sin(i)) AS total FROM generate_series(1, 5000000) i", - "trino": "SELECT sum(sin(a.x)) AS total FROM unnest(sequence(1,2500)) a(x) CROSS JOIN unnest(sequence(1,2000)) b(y)", + "trino": "SELECT sum(sin(x + (y - 1) * 5000)) AS total FROM unnest(sequence(1,5000)) a(x) CROSS JOIN unnest(sequence(1,1000)) b(y)", }