score:0

Do you need all 55 columns ?

You can create a case class that just holds that columns you need and save this subset.

Of course you keep the original file that has all the data if you need that in the future.

You are getting the Tuple50 error because you are hitting the 22 Tuple limit in Scala - see Why does the Scala library only defines tuples up to Tuple22?


Related Query

More Query from same tag