Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20070#discussion_r158744186
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/graphx/Analytics.scala ---
    @@ -145,9 +145,9 @@ object Analytics extends Logging {
               // TriangleCount requires the graph to be partitioned
               
.partitionBy(partitionStrategy.getOrElse(RandomVertexCut)).cache()
             val triangles = TriangleCount.run(graph)
    -        println("Triangles: " + triangles.vertices.map {
    +        println(s"Triangles: ${triangles.vertices.map {
    --- End diff --
    
    This is probably more readable if the expression is stored in a local val 
first. Anything nontrivial like this gets hard to parse in an interpolated 
string. While we're here, worth fixing up.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to