[CARBONDATA-4316]Fix horizontal compaction failure for partition tables