title: How to check if all records for a given key are in the same partition already?
body: <p>I'd like to avoid repartitioning data set by key as much as possible and know if all records for a given key are in the same partition already.</p>
  
  <p>Is there a built-in function in Spark that would give me the answer?</p>