I want to create a temporary variables in a spark code.
Can I do this?

for (i <- num)
{
val temp = ......
   {
   do something
   }
temp.unpersist()
}

Thank You

Reply via email to