• please try to add .option("mergeSchema", "true")
  • in filePath just specify main top folder with partitions (root folder for parquet dataset)

Here is official documentation about partition discovery https://spark.apache.org/docs/2.3.1/sql-programming-guide.html#partition-discovery


My blog: https://databrickster.medium.com/

View solution in original post