Skip to content

[SPARK-58231][GRAPHX][FOLLOW UP] Add regression test for SVD++ aggregateMessages combiner#57392

Open
Ma77Ball wants to merge 1 commit into
apache:masterfrom
Ma77Ball:SPARK-58231-svdpp-combiner-regression-test
Open

[SPARK-58231][GRAPHX][FOLLOW UP] Add regression test for SVD++ aggregateMessages combiner#57392
Ma77Ball wants to merge 1 commit into
apache:masterfrom
Ma77Ball:SPARK-58231-svdpp-combiner-regression-test

Conversation

@Ma77Ball

@Ma77Ball Ma77Ball commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Follow-up to SPARK-58177 / #57314, which fixed a wrong operand in the SVD++ Phase 2 aggregateMessages combiner but merged without a test. This adds the regression test:

  • Extract the Phase 2 training-message merge logic into a package-private SVDPlusPlus.combineTrainMessages, and use it in place of the inline aggregateMessages combiner.
  • Add a unit test in SVDPlusPlusSuite that asserts both vectors and the scalar are summed element-wise, and that the input messages are not mutated.

Why are the changes needed?

The fixed bug (the second vector was based on g2._2, which dropped g1._2 and doubled g2._2) only manifests when a vertex merges two or more differing messages, and the combiner was an inline lambda that could not be tested directly. Extracting it makes the merge logic unit-testable and guards against a future regression.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added a unit test in SVDPlusPlusSuite; the full suite passes locally. The test was confirmed to fail when the pre-fix operand (g2._2) is restored and to pass with the fix in place.

Was this patch authored or co-authored using generative AI tooling?

No

@Ma77Ball Ma77Ball changed the title [SPARK-58231][GRAPHX] Add regression test for SVD++ aggregateMessages combiner [SPARK-58231][GRAPHX][FOLLOW UP] Add regression test for SVD++ aggregateMessages combiner Jul 21, 2026
@Ma77Ball

Copy link
Copy Markdown
Contributor Author

cc @Yicong-Huang and @uros-b PTAL when you are available. I added the regression test discussed in PR #57314 to cover SVD++.

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @Ma77Ball! PTAL too @Yicong-Huang

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