Created
March 21, 2024 09:59
-
-
Save martin-g/e28a8b42a402d69ce1d15597bf5b89ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE TABLE stats AS | |
SELECT * FROM read_csv('./packages.tsv', | |
delim = '\t', | |
header = true, | |
columns = { | |
'package': 'VARCHAR', | |
'total': 'INTEGER' | |
}) | |
WHERE package NOT LIKE 'bioconductor-%' | |
AND package NOT LIKE 'perl-%' | |
; | |
CREATE OR REPLACE TABLE aarch64 AS | |
SELECT * FROM read_csv('./aarch64-status.tsv', | |
delim = '\t', | |
header = true, | |
columns = { | |
'package': 'VARCHAR', | |
'has_aarch64': 'INTEGER', | |
'noarch': 'INTEGER' | |
}) | |
; | |
SELECT stats.* | |
FROM stats JOIN aarch64 ON (stats.package = aarch64.package) | |
WHERE aarch64.has_aarch64 = 0 AND aarch64.noarch = 0 | |
ORDER BY stats.total DESC | |
LIMIT 40 | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment