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

Handle primitive types in AvroRecordWriterProvider. #176

Merged
merged 2 commits into from
Feb 27, 2017

Conversation

ewencp
Copy link
Contributor

@ewencp ewencp commented Feb 27, 2017

Fixes #130

@ewencp
Copy link
Contributor Author

ewencp commented Feb 27, 2017

@rnpridgeon @confluentinc/connect

@ewencp
Copy link
Contributor Author

ewencp commented Feb 27, 2017

This issue has been around for quite awhile, I targeted 3.0.x and we can merge up to 3.1.x, 3.2.x, and master.

Copy link
Member

@kkonstantine kkonstantine 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. One nit. LGTM

long size = endOffset - startOffset + 1;
assertEquals(records.size(), size);
for (Object avroRecord : records) {
assertEquals(avroRecord, 12);
Copy link
Member

Choose a reason for hiding this comment

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

nit: Use the variable record instead? Rename it to something that stresses that it's just a static value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack, cleaned it up a bit.

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