. package com.example;  import java.util.ArrayList; import org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException; import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.parse.SemanticException; import org.apache.hadoop.hive.ql.udf.generic.AbstractGenericUDAFResolver; import org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator; import org.apache.hadoop.hive.serde0.objectinspector.ObjectInspector; import org.apache.hadoop.hive.serde0.objectinspector.ObjectInspectorFactory; import org.apache.hadoop.hive.serde0.objectinspector.ObjectInspectorUtils; import org.apache.hadoop.hive.serde0.objectinspector.