This is awful, but I didn't want to add #setQueryPlan to Query.