Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove 'GraphX with dots' test as not needed
  • Loading branch information
EnricoMi committed Mar 28, 2025
commit 7a60f7a50c4d01ea9a894b54c0cdaf85b1af1cc5
18 changes: 0 additions & 18 deletions src/test/scala/org/graphframes/GraphFrameSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,6 @@ class GraphFrameSuite extends SparkFunSuite with GraphFrameTestSparkContext {
}
}

test("construction from GraphX with dots in column names") {
val vv: RDD[(Long, String)] = vertices.rdd.map { case Row(id: Long, name: String) =>
(id, name)
}
val ee: RDD[Edge[String]] = edges.rdd.map { case Row(src: Long, dst: Long, action: String) =>
Edge(src, dst, action)
}
val g = Graph(vv, ee)
val gf = GraphFrame.fromGraphX(g)
gf.vertices.select("id", "attr").collect().foreach { case Row(id: Long, name: String) =>
assert(localVertices(id) === name)
}
gf.edges.select("src", "dst", "attr").collect().foreach {
case Row(src: Long, dst: Long, action: String) =>
assert(localEdges((src, dst)) === action)
}
}

test("convert to GraphX: Long IDs") {
val gf = GraphFrame(vertices, edges)
val g = gf.toGraphX
Expand Down