brianmcgee commited on
Commit
d001c67
·
unverified ·
1 Parent(s): 0bf66b0

feat: add narinfo comparison between inventory and buildstepoutputs

Browse files
datasets/inventory-not-in-buildstepoutputs-2025-12-05-17:38:30Z.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1953cbfe848b9f633b61745351e597203c1ef48f57afdf04ed1d0e6192c2d5d9
3
+ size 36328518
duckdb/inventory-not-in-buildstepoutputs.sql ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SET memory_limit = '64GB';
2
+ SET threads = 16;
3
+ SET preserve_insertion_order = false;
4
+ SET temp_directory = '/tmp/duckdb';
5
+
6
+ COPY (
7
+ WITH buildstep_hashes AS (
8
+ SELECT DISTINCT substring(split_part(path, '/', 4), 1, 32) AS hash
9
+ FROM 'datasets/buildstepoutputs-2025-12-05-17:38:30Z.csv'
10
+ ),
11
+ inventory_filtered AS (
12
+ SELECT
13
+ replace(key, '.narinfo', '') AS hash,
14
+ last_modified_date
15
+ FROM 'datasets/inventory-2026-01-06T01-13Z.parquet'
16
+ WHERE key LIKE '%.narinfo'
17
+ AND last_modified_date <= TIMESTAMP '2025-12-05 17:38:30Z'
18
+ )
19
+ SELECT i.hash, i.last_modified_date
20
+ FROM inventory_filtered i
21
+ LEFT JOIN buildstep_hashes b ON i.hash = b.hash
22
+ WHERE b.hash IS NULL
23
+ ORDER BY i.last_modified_date
24
+ ) TO 'datasets/inventory-not-in-buildstepoutputs-2025-12-05-17:38:30Z.parquet' (FORMAT PARQUET, COMPRESSION ZSTD);