lmccay opened a new pull request #302: KNOX-2310
URL: https://github.com/apache/knox/pull/302
 
 
   (It is very **important** that you created an Apache Knox JIRA for this 
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
   
   ## What changes were proposed in this pull request?
   
   A simple method for producing a meaningful mathematical report of a dataset 
would allow the user to quickly determine some basic metrics of a dataset.
   
   For instance, given a dataset with time series data across columns, an 
aggregation of:
   
       min
       max
       mean
       median
       mode
       sum
   
   for specific columns would provide a way to visualize the changes across 
time.
   
   knox:000> test.aggregate() columns "A,B,C" functions "min, max, mean, 
median, mode,sum"
   ===> +----------+----------------------+----------+----------+
   |          |          A           |    B     |    C     |
   +----------+----------------------+----------+----------+
   |   min    |        100.0         |  200.0   |  300.0   |
   |   max    |        200.0         |  400.0   |  500.0   |
   |   mean   |  166.66666666666666  |  300.0   |  400.0   |
   |  median  |        200.0         |  300.0   |  400.0   |
   |   mode   |        200.0         |  200.0   |  300.0   |
   |   sum    |        500.0         |  900.0   |  1200.0  |
   +----------+----------------------+----------+----------+
   
   ## How was this patch tested?
   
   Added new unit test and ran existing unit tests.
   Tested manually in KnoxShell.
   
   (Please explain how this patch was tested. For instance: running automated 
unit/integration tests, manual tests. Please write down your test steps as 
detailed as possible)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to