Merging works on partitions