I have noticed that the output to the following code spark.read.format("csv").option("header",True).schema(schema).load(path).limit(nrows).rdd.getNumPartitions() is always 1 notwithstanding the argument nrows. Does using limit clause always result in only 1 partition?
I haven't been able to find anything mentioned about such constraint