I am trying to get jOOQ to emit this (without much luck):
SELECT array_agg(DISTINCT my_field) FROM ...
I ended up using a plain-SQL field.
Is there a way to do this that I am missing?
If not, would it make sense to add a .distinct() method to Field that can be used with any aggregate function? Or a DSL.distinct(Field) that creates a Field, rather than a SelectStep - not sure if that makes a difference.
This currently seems to be accomplished by creating separate DSL methods for each aggregate: countDistinct, groupConcatDistinct, min/max/sum/avgDistinct, etc.
Thanks