Prune the table scan assignments just before plan finalization
Implement distinct limit operator