spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishi Shah <>
Subject [PySpark 2.3+] Reading parquet entire path vs a set of file paths
Date Mon, 01 Jun 2020 13:33:20 GMT
Hi All,

I use the following to read a set of parquet file paths when files are
scattered across many many partitions.

paths = ['p1', 'p2', ... 'p10000']
df =*paths)

Above method feels like is sequentially reading those files & not really
parallelizing the read operation, is that correct?

If I put all these files in a single path and read like below - works

path = 'consolidated_path'
df =

Is my observation correct? If so, is there a way to optimize reads from
multiple/specific paths ?


Rishi Shah

View raw message