[
https://issues.apache.org/jira/browse/METRON-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397430#comment-16397430
]
ASF GitHub Bot commented on METRON-1461:
----------------------------------------
Github user cestella commented on the issue:
https://github.com/apache/metron/pull/942
So, I would suggest rather than accepting a list of stats objects, `MAX`
and `MIN` accept one of the following:
* A StatisticsProvider object
* A list of comparables
Essentially, these two would both function:
* `MAX(STATS_ADD(null, 1, 2, 3))`
* `MAX([1, 2, 3])`
> MIN MAX stellar function should take a stats or list object and return min/max
> ------------------------------------------------------------------------------
>
> Key: METRON-1461
> URL: https://issues.apache.org/jira/browse/METRON-1461
> Project: Metron
> Issue Type: Bug
> Reporter: Mohan
> Assignee: Mohan
> Priority: Minor
>
> Currently the MIN and MAX stellar function accepts only the list as input
> and the list may only contain objects that are mutually comparable / ordinal.
> Modify the method to take a stats or list object and return min/max.
> * [|https://hortonworks.jira.com/secure/AddComment!default.jspa?id=163485]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)