Get source files for directory of parquet tables in spark

Viewed 1538

I have some code where I read in many parquet tables via a directory and wildcard, like this:

df = sqlContext.read.load("some_dir/*")

Is there some way I can get the source file for each row in the resulting DataFrame, df?

1 Answers
Related