Thanks for the explanation. The retainPKColumns logic seems fine. My thought was wrt adding and ignoring the PColumn. I think you can do the same by adjusting the position as necessary for RHS/LHS and RHS & LHS being salted - I'm trying to keep salting as transparent as possible. The salt column gets automatically added to a PTable if bucketNum is not null on creation.