HIVE-7659: be careful when decide not to use sort shuffle