← anubhavjindal.com Anubhav Jindal

Impala internals

Anatomy of a distributed query.

This is the machinery I work on every day. Press run, and watch a SQL query fan out across an Impala cluster — the same six stages the engine walks through for every single query.

sales_report.sql
SELECT region, SUM(revenue) AS total
FROM sales
WHERE year = 2026
GROUP BY region
ORDER BY total DESC
LIMIT 10;

3 executors · MT_DOP=4
12 fragment instances

catalogd table metadata >_ impala-shell client COORDINATOR impalad :21000 runs fragment F00 pool “default” · admitted F00 · merge + top-N impalad executor 1 0 rows scanned impalad executor 2 0 rows scanned impalad executor 3 0 rows scanned

Timings are illustrative — the six stages and the mechanics are how Impala really runs a query.