OILS / regtest / aports / merge.sql View on Github | oils.pub

56 lines, 45 significant
1-- SQL invoked from regtest/aports-html.sh
2
3update diff_merged
4set
5 baseline_HREF = printf('%s/%s', shard, baseline_HREF),
6 osh_as_sh_HREF = printf('%s/%s', shard, osh_as_sh_HREF),
7 error_grep_HREF = printf('%s/%s', shard, error_grep_HREF),
8 -- note: suite/suite_HREF are sometimes empty
9 suite_HREF = printf('%s/%s', shard, suite_HREF);
10
11-- Useful queries to verify the result:
12-- SELECT COUNT(*) as total_rows FROM diff_merged;
13-- SELECT shard, COUNT(*) as row_count FROM diff_merged GROUP BY shard ORDER BY shard;
14-- .schema diff_merged
15
16create table notable_disagree as
17 select *
18 from diff_merged
19 where disagree == 1 and status1 == 0 and timeout == 0;
20
21create table baseline_only as
22 select *
23 from diff_merged
24 where disagree == 1 and status2 == 0 and timeout == 0;
25
26create table other_fail as
27 select *
28 from diff_merged
29 where disagree == 0 and timeout == 0;
30
31create table timeout as
32 select *
33 from diff_merged
34 where timeout == 1;
35
36-- drop 2 columns from each of 3 tables (sqlite is verbose)
37
38alter table notable_disagree
39drop column disagree;
40alter table notable_disagree
41drop column timeout;
42
43alter table baseline_only
44drop column disagree;
45alter table baseline_only
46drop column timeout;
47
48alter table other_fail
49drop column disagree;
50alter table other_fail
51drop column timeout;
52
53alter table timeout
54drop column disagree;
55alter table timeout
56drop column timeout;