Difference between var and val in spark