```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 (!getSettings()->remove_empty_parts)
        return 0;
    size_t cleared_count = 0;
    auto parts = getDataPartsVectorForInternalUsage();
    for (const auto & part : parts)
    {
        if (part->rows_count != 0)
            continue;
        
        if (!part->version.getCreationTID().isPrehistoric() && !part->version.isVisible(TransactionLog::instance().getLatestSnapshot()))
            continue;
        
        
        {
            auto lock = lockParts();
            if (part->getState() != DataPartState::Active)
                continue;
            DataPartsVector covered_parts = getCoveredOutdatedParts(part, lock);
            if (!covered_parts.empty())
                continue;
        }
        LOG_INFO(log, "Will drop empty part {}", part->name);
        dropPartNoWaitNoThrow(part->name);
        ++cleared_count;
    }
    return cleared_count;
}
void MergeTreeData::rename(const String & new_table_path, const StorageID & new_table_id)