Returning Multiple Arrays from User-Defined Aggregate Function (UDAF) in Apache Spark SQL
问题 I am trying to create a user-defined aggregate function (UDAF) in Java using Apache Spark SQL that returns multiple arrays on completion. I have searched online and cannot find any examples or suggestions on how to do this. I am able to return a single array, but cannot figure out how to get the data in the correct format in the evaluate() method for returning multiple arrays. The UDAF does work as I can print out the arrays in the evaluate() method, I just can't figure out how to return