Some error produced by Velox. You can increase `numWorkers` here and run&debug tests: https://github.com/facebookincubator/axiom/blob/aa6ea292c4319e95985df5d0730eb1f066a6c013/axiom/optimizer/tests/PlanTest.cpp#L875 `UNION ALL => AGGREGATION` is same issue, `UNION ALL` without aggregation is working