[SPARK-911] allow efficient queries for a range if RDD is partitioned wi...

...th RangePartitioner
I think it would be better to just skip the PartitionPruningRDD step if there's no partitione instead of returning a set of dummy indicies.

Also, this current approach would be better if it used the actual number of partitions rather than `Int.MaxValue`.