Skip to content

Commit 382d7d4

Browse files
authored
Convert torchbench_userbenchmark_query_metrics to CH (#6122)
1 parent ca303db commit 382d7d4

File tree

1 file changed

+10
-4
lines changed
  • torchci/clickhouse_queries/torchbench_userbenchmark_query_metrics

1 file changed

+10
-4
lines changed
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
-- !!! Query is not converted to CH syntax yet. Delete this line when it gets converted
2-
SELECT * FROM torchbench."torchbench-userbenchmark"
3-
WHERE name = :userbenchmark
4-
AND REGEXP_LIKE("torchbench-userbenchmark".environ.pytorch_git_version, :commit);
1+
SELECT
2+
*
3+
FROM
4+
benchmark.torchbench_userbenchmark
5+
WHERE
6+
name = {userbenchmark: String }
7+
AND match(
8+
JSONExtractString(environ, 'pytorch_git_version') as pytorch_git_version,
9+
{commit: String }
10+
)

0 commit comments

Comments
 (0)