[SPARK-2862] Use shorthand range notation to avoid Scala bug

K - thanks! if we cast link to an issue or something, would be great.