column "ms.xxx_time" must appear in the GROUP BY clause or be used in an aggregate function
SELECTavg()as,max()as,min()as,count()as,sum()as,to_char(xxx,'yyyy-MM-ddhh24:MI:ss')FROMmetricswheremetrics.tag=?andzzz_timebetween?and?2018-07-2409:29:56.785WARN9768---[nio-8080-exec-4]o.h.engine.jdbc