spark sql vs scala performance