```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');

```

{
    compressed_hashing.next();
    compressor.next();
    plain_hashing.next();
    if (compress_marks)
    {
        marks_compressed_hashing.next();
        marks_compressor.next();
    }
    marks_hashing.next();
    plain_file->preFinalize();
    marks_file->preFinalize();
    is_prefinalized = true;
}
void MergeTreeDataPartWriterOnDisk::Stream::finalize()
{
    if (!is_prefinalized)
        preFinalize();
    plain_file->finalize();
    marks_file->finalize();
}
void MergeTreeDataPartWriterOnDisk::Stream::sync() const
{
    plain_file->sync();
    marks_file->sync();
}
MergeTreeDataPartWriterOnDisk::Stream::Stream(