cast as string spark sql. There are any references about cast as string spark sql in here. you can look below.