crate/crate — pull request #1465 by mfelsche (2014-12-16 12:48:27+00:00)
Title: fix plan of non distributed group by queries

and separate the planning process into two methods to reduce if/else shizzle