File tree Expand file tree Collapse file tree 1 file changed +25
-10
lines changed
torchci/clickhouse_queries/torchbench_userbenchmark_list_commits Expand file tree Collapse file tree 1 file changed +25
-10
lines changed Original file line number Diff line number Diff line change 1
- -- !!! Query is not converted to CH syntax yet. Delete this line when it gets converted
2
1
WITH w AS (
3
- SELECT ARBITRARY(name) AS name, " torchbench-userbenchmark" .environ .pytorch_git_version as pytorch_git_version,
4
- ARBITRARY(" torchbench-userbenchmark" .environ .pytorch_version ) as pytorch_version,
5
- FROM torchbench." torchbench-userbenchmark"
6
- WHERE name = :userbenchmark
7
- GROUP BY " torchbench-userbenchmark" .environ .pytorch_git_version
2
+ SELECT
3
+ any(name) as name,
4
+ JSONExtractString(environ, ' pytorch_git_version' ) as pytorch_git_version,
5
+ any(JSONExtractString(environ, ' pytorch_version' )) as pytorch_version
6
+ FROM
7
+ benchmark .torchbench_userbenchmark
8
+ WHERE
9
+ benchmark .torchbench_userbenchmark .name = {userbenchmark: String }
10
+ GROUP BY
11
+ pytorch_git_version
8
12
),
9
13
s AS (
10
- SELECT push ._event_time as pytorch_commit_time, push .head_commit .id as sha from push
14
+ SELECT
15
+ push .head_commit .timestamp as pytorch_commit_time,
16
+ push .head_commit .id as sha
17
+ from
18
+ default .push
11
19
)
12
- SELECT name, pytorch_git_version, pytorch_version, s .pytorch_commit_time FROM w
13
- INNER JOIN s ON w .pytorch_git_version = s .sha
14
- ORDER BY s .pytorch_commit_time DESC ;
20
+ SELECT
21
+ name,
22
+ pytorch_git_version,
23
+ pytorch_version,
24
+ s .pytorch_commit_time
25
+ FROM
26
+ w
27
+ INNER JOIN s ON w .pytorch_git_version = s .sha
28
+ ORDER BY
29
+ s .pytorch_commit_time DESC
You can’t perform that action at this time.
0 commit comments