HistoryQueryExecutor MinMax return format?

I am unable to get a custom HistoryQueryExecutor to return multiple values with the same time stamp when MinMax is selected.

List of Qualified Values is [[10.0, Good, Sun Nov 13 11:15:46 PST 2022 (1668366946147)], [15.0, Good, Sun Nov 13 11:15:46 PST 2022 (1668366946147)], [20.0, Good, Sun Nov 13 11:16:46 PST 2022 (1668367006147)], [25.0, Good, Sun Nov 13 11:16:46 PST 2022 (1668367006147)]]

((ProcessedHistoryColumn) columnNodes.get(0)).put(the list from above)

At the com.inductiveautomation.gateway.tags.history.query.processing.aggregates.MinMaxAggregate#process level, MIN and MAX are being cached into the block context using min and max as keys, and the overall result of process is a QualifiedValue[] with two values; the min and max.

It looks like the HistoryQueryExecutor should be calling into the column to process it in processData; the column then calls into the aggregation function:
((HistoryColumn) nodes.get(p.index()).getDelegate()).process(historicalValue(p));

1 Like