You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by tlisonbee <gi...@git.apache.org> on 2016/04/05 23:31:36 UTC

[GitHub] flink pull request: [FLINK-3664] Create method to easily summarize...

GitHub user tlisonbee opened a pull request:

    https://github.com/apache/flink/pull/1855

    [FLINK-3664] Create method to easily summarize a DataSet of Tuples

    Adding summarize() method in DataSetUtils that will supply a number of single pass statistics for DataSets of Tuples.
    
    Summary statistics depend on the type being summarized:
    
    - Numeric types (Integer, IntValue, Float, Double, etc): min, max, mean, variance, standard deviation, NaN count, Infinity count, totalCount, etc.
    - String, StringValue: minLength, maxLength, meanLength, emptyCount, totalCount
    - Boolean, BooleanValue: trueCount, falseCount, totalCount.
    
    Example usage:
    `Dataset<Tuple3<Double, String, Boolean>> input = // [...]`
    `Tuple3<NumericColumnSummary,StringColumnSummary, BooleanColumnSummary> summary = DataSetUtils.summarize(input)`
    
    `summary.f0.getStandardDeviation()`
    `summary.f1.getMaxLength()`
    
    Uses the Kahan summation algorithm to avoid numeric instability.  The algorithm is described in: "Scalable and Numerically Stable Descriptive Statistics in SystemML", Tian et al, International Conference on Data Engineering 2012.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tlisonbee/flink FLINK-3664

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1855.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1855
    
----
commit 65f54df532829994a8be240a27b9138d01a186b5
Author: Todd Lisonbee <to...@intel.com>
Date:   2016-04-05T05:51:12Z

    [FLINK-3664] Create DataSetUtils method to easily summarize a DataSet of Tuples

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3664] Create method to easily summarize...

Posted by tlisonbee <gi...@git.apache.org>.
Github user tlisonbee closed the pull request at:

    https://github.com/apache/flink/pull/1855


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3664] Create method to easily summarize...

Posted by tlisonbee <gi...@git.apache.org>.
Github user tlisonbee commented on the pull request:

    https://github.com/apache/flink/pull/1855#issuecomment-206453395
  
    Travis build failed but it seemed unrelated to my changes so I pulled the latest master to see if it would fix.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3664] Create method to easily summarize...

Posted by tlisonbee <gi...@git.apache.org>.
Github user tlisonbee commented on the pull request:

    https://github.com/apache/flink/pull/1855#issuecomment-206637922
  
    Closing.  My build was failing because I missed a header on one file.  I went ahead and opened a new pull request for this change with a clean history.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---