Skip to content

Commit

Permalink
[FLINK-1150] Fix size estimate for FilterNode. Data size changes prop…
Browse files Browse the repository at this point in the history
…ortional to cardinality.

This closes apache#146
  • Loading branch information
fhueske committed Oct 9, 2014
1 parent 986f25f commit 3eebaa8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ protected List<OperatorDescriptorSingle> getPossibleProperties() {
@Override
protected void computeOperatorSpecificDefaultEstimates(DataStatistics statistics) {
this.estimatedNumRecords = (long) (getPredecessorNode().getEstimatedNumRecords() * 0.5);
this.estimatedOutputSize = (long) (getPredecessorNode().getEstimatedOutputSize() * 0.5);
}
}

0 comments on commit 3eebaa8

Please sign in to comment.