Apache Drill: Write general-purpose array_agg UDF
问题 I would like to create an array_agg UDF for Apache Drill to be able to aggregate all values of a group to a list of values. This should work with any major types (required, optional) and minor types (varchar, dict, map, int, etc.) However, I get the impression that Apache Drill's UDF API does not really make use of inheritance and generics. Each type has its own writer and handler, and they cannot be abstracted to handle any type. E.g., the ValueHolder interface seems to be purely cosmetic