```sql
CREATE TABLE t
(
   id Int64, 
   d String,
   p Map(String, String)
   
)
ENGINE = ReplacingMergeTree order by id settings index_granularity  = 0;


insert into t values (1,  's', {'a':'b'});

CH starts eating RAM until it crashes

the same with

insert into t select 1,  's', map('a','b');

```

{
    if (accumulated_columns.empty())
        return 0;
    return accumulated_columns.at(0)->size();
}
void MergeTreeDataPartWriterCompact::fillChecksums(IMergeTreeDataPart::Checksums & checksums)
{
    
    if (!columns_list.empty())
        fillDataChecksums(checksums);
    if (settings.rewrite_primary_key)
        fillPrimaryIndexChecksums(checksums);
    fillSkipIndicesChecksums(checksums);
}
void MergeTreeDataPartWriterCompact::finish(bool sync)
{
    
    if (!columns_list.empty())
        finishDataSerialization(sync);
    if (settings.rewrite_primary_key)
        finishPrimaryIndexSerialization(sync);
    finishSkipIndicesSerialization(sync);
}
}