Spark Select Columns By Index, Depending on how much data you have, that overhead could be significant.