8000 bug: Parameters mismatch on python and java for connected components · Issue #755 · graphframes/graphframes · GitHub
[go: up one dir, main page]

Skip to content

bug: Parameters mismatch on python and java for connected components #755

@iki77

Description

@iki77

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

No one assigned

    Labels

    not reproducedbug cannot be reproduced by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0