I want to assign a spark SQL function to a variable. For example:
val func = org.apache.spark.sql.functions.max(_)
Now, this is the way for doing partial functions. But when I'm doing this, I get this error:
Cannot resolve overloaded method max
Searched online, couldn't find a solution. Does anyone have an idea?