summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2012-03-12 23:25:46 (EDT)
committer mwu2012-03-12 23:25:46 (EDT)
commitab009a3a10a90ea395845e73d8da03959e083f28 (patch)
treec071a70c50ebb1b3f56703eea456699f44f9dfc6
parent541a05f2d7051464e33217a5d4f8dd540f71f4a3 (diff)
downloadorg.eclipse.birt-ab009a3a10a90ea395845e73d8da03959e083f28.zip
org.eclipse.birt-ab009a3a10a90ea395845e73d8da03959e083f28.tar.gz
org.eclipse.birt-ab009a3a10a90ea395845e73d8da03959e083f28.tar.bz2
Some aggregation functions (quartile, percentile) throw AggrException
when all values are filtered.[46494]
-rw-r--r--data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/rank/PercentileAccumulator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/rank/PercentileAccumulator.java b/data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/rank/PercentileAccumulator.java
index 31059fa..5f4793e 100644
--- a/data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/rank/PercentileAccumulator.java
+++ b/data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/rank/PercentileAccumulator.java
@@ -90,7 +90,7 @@ abstract class PercentileAccumulator extends SummaryAccumulator
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;