DRILL-1163: Re-plan query if memory estimate exceeds threshold.