Skip to content

Commit

Permalink
v.0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolainp committed Nov 10, 2023
1 parent 24ff55b commit 682c1fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datarecord/datarecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ func (obj *dataColumns) getColumnStatistics() []ColumnStatistic {
}
}

for name, pivotData := range obj.statistic {
columnNames := obj.getPivotColumnNames()
for i := range columnNames {
name := columnNames[i]
pivotData := obj.statistic[name]

if len(pivotData) == 1 {
columns = append(columns, getColumnStatistic(name, pivotData[0]))
} else {
Expand Down

0 comments on commit 682c1fc

Please sign in to comment.