[SPARK-2650][SQL] Build column buffers in smaller batches

Yes, @liancheng , you're right. Sorry, I didn't make it clearer, I will create another PR for this. :-)