optimize table_name and partition_ident handling in unassigend shards for partitioned tables