pyspark - How to know how many files spark created after saving data frame -


i have data frame , im saving csv file databricks.spark.csv using save function on dataframe. how can know how many files spark created (spark dividing files automatically)

+1 anshul's comment, can use getnumpartitions number of partitions of rdd, , number of file number.

btw,why need know saved file number?


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

ruby on rails - ActiveRecord order not working -

java - ConcurrentModificationException upon committing transaction with Hibernate -