Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINOR: Change KStreamKstreamOuterJoinTest to use distinct left and right types #15513

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

gharris1727
Copy link
Contributor

@gharris1727 gharris1727 commented Mar 11, 2024

This test uses the same value types on the left and right, and so wouldn't be sensitive to a mixup between left and right values. So I changed one of the stream types to Long, and updated the assertions to match.

Because the implementation of the KStreamKstreamJoin is not type-safe, it was unclear just from the code that a mixup was not possible.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Signed-off-by: Greg Harris <greg.harris@aiven.io>
Copy link
Member

@cadonna cadonna left a comment

Choose a reason for hiding this comment

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

Thanks for the change, @gharris1727 !

I have one comment.

Comment on lines 742 to 745
new KeyValueTimestamp<>(0, "C0+0", 0L),
new KeyValueTimestamp<>(0, "C0+0", 0L),
new KeyValueTimestamp<>(1, "C1+1", 0L),
new KeyValueTimestamp<>(1, "C1+1", 0L),
Copy link
Member

Choose a reason for hiding this comment

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

This seems to make the verification less strict. It does not differentiate between a0 and b0 as well as a1 and b1. Maybe use 10 for a0 and 20 for b0 and 11 for a1 and 21 for b1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I didn't notice this. I did a search-and-replace renaming, and reverted the stuff which didn't make sense.

I did have to manually renumber stuff like "a0-0", and some places where capital letters "A0" were used on the inputStream2 to fit the pattern better. PTAL, thanks!

@mjsax
Copy link
Member

mjsax commented Jun 5, 2024

@gharris1727 @cadonna -- do we still want to merge this PR?

@cadonna
Copy link
Member

cadonna commented Jun 6, 2024

Yes, why not? It is a good change to the test, no?
I just did not have time to review it since my last review.

@mjsax
Copy link
Member

mjsax commented Jun 6, 2024

Was just wondering if the other PR contained tests that cover this already.

@gharris1727 could you rebase so a new PR build is triggered to make sure everything still works? Happy to reveiw/merge afterwards.

@gharris1727
Copy link
Contributor Author

@mjsax It was already up-to-date without merge conflicts, but I synced it up again.

@mjsax mjsax merged commit dfe0fcf into apache:trunk Jun 14, 2024
1 check was pending
@mjsax
Copy link
Member

mjsax commented Jun 14, 2024

Thanks @gharris1727 -- merged to trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants