Project: Birt
Bug 214322 Enhance BIRT COUNT aggregation function.
Reported: 2008-01-04 04:56:36 | Status: resolved fixed

Current BIRT COUNT aggregation function takes no argument, this makes the function a mimic of SQL COUNT(*). However it still cannot cover COUNT(columnName) usage of SQL count. This enhancement targets to add an optional argument to BIRT COUNT. In case that an argument is provided we will have a complete mimic of SQL COUNT(columnName), otherwise we stick to current behavior.

Files changed in fix:
data/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/TotalCount.java data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/TotalTest.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/aggregation/AggregationHelper.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/MultiPassExpressionCompiler.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/aggregation/AggrRegistry.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/aggregation/AggregateCalculator.java