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

Patch field order with avro #248

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sbarnoud
Copy link

What changes were proposed in this pull request?

Fix toBytes() to be not dependent on fields order in the incoming dataset to serialize in Avro.
This fix should in the mean time have better performance as we don't need to generate the Avro Schema from the dataset for each row (we only use the user supplied one)

How was this patch tested?

New Unit Test: "avro not dependent on schema field order"
This test as been submitted in #247 => it fails
With this patch => it succeeds

sbarnoud060710 added 2 commits April 19, 2018 11:59
I don't understand why using the row.toSeq.iterator fails in my environment
I added the Unit test hortonworks-spark#247 showing that the problem doesn't exists in Travis
See https://travis-ci.org/hortonworks-spark/shc/builds/368556158 => the Unit test fails without the patch, and succeed with.
But stills fails in my environment ...
@sbarnoud
Copy link
Author

For the remaining problem with the order of the iterator, notice that I'm running Java8 and that your tests seem to be executed in Java7

Copy link
Contributor

@merlintang merlintang left a comment

Choose a reason for hiding this comment

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

LGTM

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