title: How to load only the data of the last partition
body: <p>I have some data partitioned this way:</p>
  
  <p><code>/data/year=2016/month=9/version=0
  /data/year=2016/month=10/version=0
  /data/year=2016/month=10/version=1
  /data/year=2016/month=10/version=2
  /data/year=2016/month=10/version=3
  /data/year=2016/month=11/version=0
  /data/year=2016/month=11/version=1
  </code></p>
  
  <p>When using this data, I'd like to load the last version only of each month.</p>
  
  <p>A simple way to do this is to do <code>load("/data/year=2016/month=11/version=3")</code> instead of doing <code>load("/data")</code>.<br>
  The drawback of this solution is the loss of partitioning information such as <code>year</code> and <code>month</code>, which means it would not be possible to apply operations based on the year or the month anymore.</p>
  
  <p>Is it possible to ask Spark to load the last version only of each month? How would you go about this?</p>