mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: average is not caculated correctly
This commit is contained in:
parent
dd08e38d97
commit
2370682fc1
1 changed files with 1 additions and 2 deletions
|
|
@ -407,8 +407,7 @@ export function getCubeWithSchema(rows, keyColumns, groupColumns, aggrColumns) {
|
|||
const count = (AggregatorFunctionDiv[aggrColumn.aggr]) ?
|
||||
c[aggrName].count + 1 : c[aggrName].count;
|
||||
|
||||
c[aggrName].value = value;
|
||||
c[aggrName].count = count;
|
||||
c[aggrName].value = (aggrColumn.aggr === Aggregator.AVG) ? (value / count) : value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue