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

[BEAM-4453] Stop subclassing user POJOs. #7234

Merged
merged 2 commits into from Dec 13, 2018

Conversation

reuvenlax
Copy link
Contributor

Previously we were subclassing user POJO objects in order to create them from a Beam Row. This can cause unexpected behavior: e.g. many equals() implementations check that the class is the same, and and will fail if the rhs is a subclass. In this PR we stop doing this, and instead simply generate the code to create the POJO directly.

As a bonus, this should be a small performance boost, as we no longer use reflection to creat e the object.

Copy link
Member

@apilloud apilloud left a comment

Choose a reason for hiding this comment

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

LGTM

@reuvenlax reuvenlax merged commit f8f9ca5 into apache:master Dec 13, 2018
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.

None yet

2 participants