The pruning of local indexes should do the following:
- Use the local index
- Reduce the number of regions based on filters on the table's primary key (i.e. WHERE conditions including prefixes of the primary key)
Instead it looks like in order for this to work the needed PK column need to be included in the local index itself, changing the sort order of the local index.
I'll provide some examples in the comments.