This is similar to #5841 and #5832, but may need a different IR representation at the DBSP level to expose the integral used for the primary key.