SemyonSinchenko opened a new pull request, #60786: URL: https://github.com/apache/spark/pull/60786
### What changes were proposed in this pull request? A new `GraphConf` and new configurations section `spark.graph.X` ### Why are the changes needed? It is a part of SPARK-61746 epic about bringing GraphFrames as in-tree module. #### Important parts On top of `workDir` I added also a "mode" for keeping stages results and state for intermediate algorithms. It was hard to change in GraphFrames, but I would like to change it there. Reasons: 1. Checkpointing leads to [bugs](https://github.com/graphframes/graphframes/issues/940) for some vendored Spark. While it is a problem of fork, not vanilla OSS, it is still a problem because in vanilla OSS the size is growing as well and the only difference it is harmless 2. For a Pregel pattern "write graph edges once, left join vertex state on each iteration" there are only two ways of fully avoiding Sort+Exchange on edges: `repartition("src").sortWithinPartition("src").persist` and `write.format("parquet").bucketBy(n, "src").sortBy("src")`. And sort+exchange of edges is the biggest part of each iteration due to size (edges typically x5-100 times bigger compared to vertices). The checkpoint logic itself is the follow-up SPARK-62131 but I tested it already. All other configs like default algorithms will come with algorithms and will mostly mimic what is in GraphFrames codebase. ### Does this PR introduce _any_ user-facing change? A new configuration section. In theory, the code that rely only on all existing configurations can be affected. ### How was this patch tested? - scalatest - format ### Was this patch authored or co-authored using generative AI tooling? Claude Code (Opus-5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
