[SPARK-4673][SQL] Optimizing limit using coalesce

Optimizing limit using coalesce to avoid shuffle.
Refer to https://github.com/scwf/spark/commit/e2614038e78f4693fafedeee15b6fdf0ea1be473, seems ignore this will leads some problem