Apache spark Spark数据帧UDAF问题

Apache spark Spark数据帧UDAF问题,apache-spark,apache-spark-sql,spark-dataframe,Apache Spark,Apache Spark Sql,Spark Dataframe,解码时出错: java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 58, Column 33: Incompatible expression types "boolean" and "java.lang.Boolean" 在此处查

解码时出错:

java.util.concurrent.ExecutionException: java.lang.Exception: failed to
compile: org.codehaus.commons.compiler.CompileException: File 
'generated.java', Line 58, Column 33: Incompatible expression types "boolean" 
and "java.lang.Boolean"

在此处查找代码

请在此处发布代码详细信息以及复制问题的步骤

还要确保spark和scala版本在您的项目中是正确的

例如:

scala.version:2.11.5

scala.compat.version:2.11


spark.version:2.1.0

请在此处查找代码: