Fixed hive tests with non-deterministic output (e.g. limit without order by).

See
https://github.com/amplab/hive/commit/31be6d8a61f454293f13e0d8bb2d88c3dce19c44