Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
SELECT DISTINCT
replaceOne(head_branch, 'refs/heads/', '') AS branch,
head_sha AS commit,
workflow_id AS id,
timestamp
workflow_id,
toDate(fromUnixTimestamp(timestamp), 'UTC') AS date
FROM benchmark.oss_ci_benchmark_torchinductor
PREWHERE
timestamp >= toUnixTimestamp({startTime: DateTime64(3)})
AND timestamp < toUnixTimestamp({stopTime: DateTime64(3)})
AND timestamp < toUnixTimestamp({stopTime: DateTime64(3)})
WHERE
-- optional branches
(
has(
{branches: Array(String)},
replaceOne(head_branch, 'refs/heads/', '')
)
has({branches: Array(String)}, replaceOne(head_branch, 'refs/heads/', ''))
OR empty({branches: Array(String)})
)
-- optional suites
AND (
has({suites: Array(String) }, suite)
OR empty({suites: Array(String) })
has({suites: Array(String)}, suite)
OR empty({suites: Array(String)})
)
-- optional dtype
AND (
benchmark_dtype = {dtype: String}
OR empty({dtype: String})
)
-- optional mode
AND (
benchmark_mode = {mode: String}
OR empty({mode: String})
)
-- optional device
AND (
device = {device: String}
OR empty({device: String})
)
-- optional arch (array param); if empty array, skip filter
AND (
multiSearchAnyCaseInsensitive(arch, {arch: Array(String)})
OR empty({arch: Array(String)})
)
AND benchmark_dtype = {dtype: String}
AND benchmark_mode = {mode: String}
AND device = {device: String}
AND multiSearchAnyCaseInsensitive(arch, {arch: Array(String)})
ORDER BY timestamp
SETTINGS session_timezone = 'UTC';
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dtype": "String",
"granularity": "String",
"mode": "String",
"suites": "Array(String)"
"suites": "Array(String)",
"models": "Array(String)"
},
"tests": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ WHERE
has({suites: Array(String) }, suite)
OR empty({suites: Array(String) })
)
AND (
has({models: Array(String)}, model_name)
OR empty({models: Array(String) })
)
AND benchmark_dtype = {dtype: String}
AND benchmark_mode = {mode: String}
AND device = {device: String}
Expand Down
Loading
Loading