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

A more precise initial buffer size can be used here:

```scala
val columnType = ColumnType(attribute.dataType)
ColumnBuilder(columnType.typeId, columnType.defaultSize * batchSize, attribute.name, useCompression)
```