qe is a columnar analytical query engine in C++20. Parquet in, a SQL subset out, results checked against DuckDB before anything gets timed.
https://github.com/abiralpokhrel-learns/query-engine
I built it because I wanted to know how a database answers a question, and reading about it wasn't enough.
What it does: column pruning, predicate pushdown, row-group skipping, metadata-only COUNT(*). Vectorized filter, aggregate, hash join, distinct, sort, limit. Hand-written parser and planner. An optional --threads flag decodes row groups in parallel and still emits in serial order. An optional CUDA path for global float aggregates, off by default.
The numbers. 1M rows, same queries and data for both engines, raw runs committed as JSON in the repo.
Single-threaded: qe wins 3 of 8. Four scan threads: 5 of 8. Top-k went 88.81 ms to 39.11 ms, GROUP BY region 92.14 to 39.99, global aggregate 43.81 to 20.42.
The losses are in the table because a benchmark without them is an ad.
The GPU: roughly tied at best. At 1M rows the transfer costs about what the faster math saves. At 10M rows it's relatively worse. The CUDA path stays opt-in.
Correctness came before the benchmarks. 208 tests, 74.7% coverage. Every supported query is diffed against DuckDB on generated edge cases, plus a deterministic fuzzer. ASan/UBSan in CI.
Try it:
micromamba env create -f environment.yml micromamba activate qe scripts/build.sh scripts/demo.sh EXPLAIN ANALYZE is next. After that, join ordering, and only GPU work the measurements justify.

