Add short circuit check and return early if finding the partitioning column