From 74e514abf3fa04eb75b02c0d1934267a061aabd3 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 15 Sep 2026 16:15:54 +0200 Subject: [PATCH] Fix table names in ResultsDataWriteGroups query to be compatible with Filters.pm --- scripts/Queries/ResultsDataWriteGroups.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Queries/ResultsDataWriteGroups.pm b/scripts/Queries/ResultsDataWriteGroups.pm index 3b8e69b..5d77c17 100644 --- a/scripts/Queries/ResultsDataWriteGroups.pm +++ b/scripts/Queries/ResultsDataWriteGroups.pm @@ -25,12 +25,12 @@ sub query { # only the first row lands in the table. # This query fixes that. my $querystring = "SELECT -benchmark, resulttype, SUM(t.time2 - t.time1 + 1) AS faults +benchmark, resulttype, SUM(g.time2 - g.time1 + 1) AS faults FROM variant v -JOIN trace t ON v.id = t.variant_id -JOIN fsppilot p ON p.variant_id = t.variant_id - AND ( (p.known_outcome = 1 AND t.accesstype = 'W') - OR (p.known_outcome = 0 AND p.instr2 = t.instr2 AND p.data_physical_address = t.data_physical_address) ) +JOIN trace g ON v.id = g.variant_id +JOIN fsppilot p ON p.variant_id = g.variant_id + AND ( (p.known_outcome = 1 AND g.accesstype = 'W') + OR (p.known_outcome = 0 AND p.instr2 = g.instr2 AND p.data_physical_address = g.data_physical_address) ) JOIN result_GenericExperimentMessage r ON r.pilot_id = p.id WHERE v.variant = '$experiment'$extra GROUP BY v.id, resulttype