Compile failed, and the error code makes no sense to me

As the docs state and the error message suggests, your Spark.function needs to be of this type
int fn(String) and not void fn().

Some background can be found here

1 Like