afaik partition_ident is always unique for a table, so distinct is not needed here