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
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