score:8

Accepted answer

You're probably missing this import:

import org.apache.spark.sql.functions._

(which is provided automatically in a Spark shell)


Related Query

More Query from same tag