In the future the row groups size could be different with the sum of the size of columns when more metadata is added. So we decide to separate the logic of setting size of row group and adding columns