| 195 | } |
| 196 | |
| 197 | MergedColumnChunkStats ColumnChunk::getMergedColumnChunkStats() const { |
| 198 | DASSERT(!updateInfo.isSet()); |
| 199 | auto baseStats = MergedColumnChunkStats{ColumnChunkStats{}, true, true}; |
| 200 | for (auto& segment : data) { |
| 201 | // TODO: Replace with a function that modifies the existing stats in-place? |
| 202 | auto segmentStats = segment->getMergedColumnChunkStats(); |
| 203 | baseStats.merge(segmentStats, segment->getDataType().getPhysicalType()); |
| 204 | } |
| 205 | return baseStats; |
| 206 | } |
| 207 | |
| 208 | void ColumnChunk::serialize(Serializer& serializer) const { |
| 209 | serializer.writeDebuggingInfo("enable_compression"); |
no test coverage detected