mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-04-03 09:39:47 +00:00

This reverts commit cbde3c73b601383fff33ce501d0b26047326e93f. This regresses: ``` WITH inputs AS ( SELECT geo_name, CASE WHEN profile_id = 1930 THEN 'total' ELSE 'cyclist' END AS mode, female, male FROM census WHERE profile_id IN ( '1930', '1935') AND csd_type_name = 'CY' AND geo_name IN ('Victoria', 'Dawson Creek', 'Kitchener') ) SELECT total.geo_name, cyclist.male, cyclist.female, 100.0 * cyclist.male / total.male, 100.0 * cyclist.female / total.female FROM inputs AS total JOIN inputs AS cyclist USING (geo_name) WHERE total.mode = 'total' AND cyclist.mode = 'cyclist'; ``` while improving: ``` select count(*) from census where geo_name in ('Dawson Creek', 'Kitchener', 'Victoria') and csd_type_name = 'CY' and profile_id = '1930'; ``` which seems like a bad tradeoff.