How to expand a tuple

for instance, how to convert (1,2,3) to 1,2,3?

I ask this b/c I have this use case:

scala> case class Schema (id:Int, name:String, job:String)
defined class Schema

scala> rdd.collect
res31: Array[(Int, String, String)] = Array((1,john doe,developer), (2,rosa kim,hr team))

scala> rdd.map(x => Schema(x._1,x._2,x._3)).toDF.show
+---+--------+---------+
| id|    name|      job|
+---+--------+---------+
|  1|john doe|developer|
|  2|rosa kim|  hr team|
+---+--------+---------+

As you see, I have to expand the tuple by x._1, x._2, x._3 which is ugly.
So how to deal with this? :slight_smile: