Let p be a prime and let S be a non-empty subset of Fp. Generalizing a result of Green and Tao on the equidistribution of high-rank polynomials over finite fields, we show that if P:Fpn→Fp is a polynomial and its restriction to Sn does not take each value with approximately the same frequency, then there exists a polynomial P0:Fpn→Fp that vanishes on Sn, such that the polynomial P−P0 has bounded rank. Our argument uses two black boxes: that a tensor with high partition rank has high analytic rank and that a tensor with high essential partition rank has high disjoint partition rank.