Skip to content

Commit

Permalink
[BZ]Some aggregation functions (quartile, percentile) throw
Browse files Browse the repository at this point in the history
AggrException when all values are filtered [49624]
  • Loading branch information
lzhang authored and mwu committed May 7, 2012
1 parent 7d9426f commit df6b59e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Object getSummaryValue( ) throws DataException
Object[] sortedObjs = this.cachedValues.toArray( );
if ( sortedObjs.length == 0 )
{
return DataException.wrap( new AggrException( ResourceConstants.INVALID_PERCENTILE_COLUMN ) );
return null;
}
RankAggregationUtil.sortArray( sortedObjs );
double n = pct * ( sortedObjs.length - 1 ) + 1;
Expand Down

0 comments on commit df6b59e

Please sign in to comment.