From 682c1fc0016c8dfde7d496431568f029a8afef8c Mon Sep 17 00:00:00 2001 From: "Nickolay.NP" Date: Fri, 10 Nov 2023 21:21:15 +0300 Subject: [PATCH] v.0.44 --- datarecord/datarecord.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datarecord/datarecord.go b/datarecord/datarecord.go index 876a02a..a9d4c98 100644 --- a/datarecord/datarecord.go +++ b/datarecord/datarecord.go @@ -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 {