Skip to content

[DONT MERGE] Connected component suite#477

Closed
bjornjorgensen wants to merge 8 commits intographframes:masterfrom
bjornjorgensen:ConnectedComponentSuite
Closed

[DONT MERGE] Connected component suite#477
bjornjorgensen wants to merge 8 commits intographframes:masterfrom
bjornjorgensen:ConnectedComponentSuite

Conversation

@bjornjorgensen
Copy link
Contributor

No description provided.

assert(actualComponents === expected)
}

private def withDisabledAQE(f: => Unit): Unit = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rjurney
it seams like its AQE that are making problems..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EnricoMi CC
What do you think?

@rjurney
Copy link
Collaborator

rjurney commented Jan 11, 2025

@bjornjorgensen Thanks so much for this PR! When I get home I will review and test it :)

Copy link
Collaborator

@rjurney rjurney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, mow let me test it...

val orderedEdges = edges.filter(col(SRC) =!= col(DST))
.select(minValue(col(SRC), col(DST)).as(SRC), maxValue(col(SRC), col(DST)).as(DST))
.distinct()
.distinct() // Add explicit parentheses for Scala 2.13
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bjornjorgensen what does this mean? distinct() has parenthesis before this edit...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we don't need it but there are 8 warnings when we build it https://github.com/graphframes/graphframes/actions/runs/12726219880/job/35474344050#step:5:2278 and I was trying to fix some of them.

val components = g.connectedComponents.run()
val expected = Set(Set(0L, 1L, 2L), Set(3L, 4L, 5L), Set(6L), Set(7L))
assertComponents(components, expected)
withSparkConf(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bjornjorgensen why is disabling AQE needed when you disable it in the connected components code itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you are right. I have made a new PR that works #478

@bjornjorgensen
Copy link
Contributor Author

I have made a new PR #478 instead of this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments