You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schema_rows =collect(DBInterface.execute(db, "SELECT value FROM benchledger_metadata WHERE key = 'schema_version'"))
286
-
ifisempty(schema_rows)
285
+
# Avoid collect(...) here: SQLite.jl can materialize this single-column result as missing.
286
+
schema_iter =iterate(DBInterface.execute(db, "SELECT value FROM benchledger_metadata WHERE key = 'schema_version'"))
287
+
if schema_iter ===nothing
287
288
error("Unsupported BenchLedger database in $(path): missing benchledger_metadata.schema_version.")
288
289
end
289
-
schema_version =String(first(schema_rows).value)
290
+
schema_version =String(schema_iter[1].value)
290
291
schema_version == Benchledger_Schema_Version ||error("Unsupported BenchLedger schema version in $(path): $(schema_version). Expected $(Benchledger_Schema_Version).")
291
292
292
293
result_columns =Set{String}()
@@ -341,23 +342,32 @@ function metric_rows(benchmark_path::Vector{String}, value)
341
342
error("Unsupported benchmark leaf at $(join(benchmark_path, " / ")): $(typeof(value)). Provide a BenchmarkTools.Trial or normalize custom results into BenchmarkMetricRow rows.")
0 commit comments