-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Labels
not reproducedbug cannot be reproduced by maintainersbug cannot be reproduced by maintainers
Description
Describe the bug
I can't use .connectedComponents as it will throw
Py4JError: An error occurred while calling o825.setUseLabelsAsComponents.
Trace: py4j.Py4JException: Method setUseLabelsAsComponents([class java.lang.Boolean]) does not exist
To Reproduce
Steps to reproduce the behavior:
# Create a Vertex DataFrame with unique ID column "id"
v = spark.createDataFrame([
("a", "Alice", 34),
("b", "Bob", 36),
("c", "Charlie", 30),
], ["id", "name", "age"])
# Create an Edge DataFrame with "src" and "dst" columns
e = spark.createDataFrame([
("a", "b", "friend"),
("b", "c", "follow"),
("c", "b", "follow"),
], ["src", "dst", "relationship"])
g = GraphFrame(v,e)
result = g.connectedComponents()
Expected behavior
It will return the result from .connectedComponents().
System:
- OS: Ubuntu 18.04
- Python Version: Python 3.10.15
- Spark / PySpark version: PySpark 3.3.4
- GraphFrames version: graphframes-0.9.3 and 0.10.0
Metadata
Metadata
Assignees
Labels
not reproducedbug cannot be reproduced by maintainersbug cannot be reproduced by maintainers