This PR is to fix the select specific partition issue, certain codes related to this feature were accidentally deleted.