From 8849361418525a90ce1381c97e78649790414221 Mon Sep 17 00:00:00 2001 From: cc_nice Date: Thu, 21 Jul 2022 21:19:33 +0800 Subject: [PATCH] fix omitstats=true crush fix omitstats=true crush for issuse [#486](https://github.com/xitongsys/parquet-go/issues/486) --- layout/chunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/chunk.go b/layout/chunk.go index 5df3a5f1..d340895a 100644 --- a/layout/chunk.go +++ b/layout/chunk.go @@ -91,7 +91,7 @@ func PagesToDictChunk(pages []*Page) *Chunk { var maxVal interface{} = pages[1].MaxVal var minVal interface{} = pages[1].MinVal var nullCount int64 = 0 - pT, cT, logT, omitStats := pages[1].Schema.Type, pages[1].Schema.ConvertedType, pages[1].Schema.LogicalType, pages[0].Info.OmitStats + pT, cT, logT, omitStats := pages[1].Schema.Type, pages[1].Schema.ConvertedType, pages[1].Schema.LogicalType, pages[1].Info.OmitStats funcTable := common.FindFuncTable(pT, cT, logT) for i := 0; i < len(pages); i++ {