📅  最后修改于: 2022-03-11 14:52:29.133000             🧑  作者: Mango
import spark.implicits._
df.repartition($"entity", $"year", $"month", $"day", $"status").write.partitionBy("entity", "year", "month", "day", "status").mode(SaveMode.Append).parquet(s"$location")