spark sql也支持函数,但与通常的数据库函数有些区别,附上官方api文档,以作备忘:
http://spark.apache.org/docs/latest/api/sql/index.html#acos