I am still puzzled. We should talk about what we are trying to do here. I did not expect this much complication from just trying to generalize up-to-one-partitioning-column-for-each-table-scan to any-number-of-partitioning-columns-for-each-table-or-subquery-scan.