Skip to content

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

Merged
mjsax merged 6 commits into
apache:trunkfrom
gharris1727:proto-outer-join-type
Jun 14, 2024
Merged

MINOR: Change KStreamKstreamOuterJoinTest to use distinct left and right types#15513
mjsax merged 6 commits into
apache:trunkfrom
gharris1727:proto-outer-join-type

Conversation

@gharris1727

@gharris1727 gharris1727 commented Mar 11, 2024

Copy link
Copy Markdown
Contributor

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>

@cadonna cadonna 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.

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
Copy Markdown
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
Copy Markdown
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

mjsax commented Jun 5, 2024

Copy link
Copy Markdown
Member

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

@cadonna

cadonna commented Jun 6, 2024

Copy link
Copy Markdown
Member

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

mjsax commented Jun 6, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@mjsax

mjsax commented Jun 14, 2024

Copy link
Copy Markdown
Member

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