Skip to content

Conversation

@antonymayi
Copy link
Contributor

VectorLoader was corrupting data when some of the fields had same name in which case only one of that vectors got properly loaded. This PR resolves the problem by avoiding by-name field lookups.

@wesm
Copy link
Member

wesm commented Jul 6, 2017

Is it possible to add a unit test for this?

@antonymayi
Copy link
Contributor Author

unit test added

@antonymayi antonymayi changed the title ARROW-1190 - fixing VectorLoader for duplicate field names ARROW-1190: [JAVA] fixing VectorLoader for duplicate field names Jul 8, 2017
@antonymayi antonymayi changed the title ARROW-1190: [JAVA] fixing VectorLoader for duplicate field names ARROW-1190: [JAVA] Fixing VectorLoader for duplicate field names Jul 8, 2017
Copy link
Member

@xhochy xhochy left a comment

Choose a reason for hiding this comment

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

+1, thank you for fixing this!

@asfgit asfgit closed this in 0396240 Jul 17, 2017
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
VectorLoader was corrupting data when some of the fields had same name in which case only one of that vectors got properly loaded. This PR resolves the problem by avoiding by-name field lookups.

Author: Antony Mayi <antonymayi@yahoo.com>

Closes apache#816 from antonymayi/master and squashes the following commits:

38c1837 [Antony Mayi] adding unit test for unload-loading vectors with duplicate field names
a723416 [Antony Mayi] ARROW-1190 - fixing VectorLoader for duplicate field names
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.

3 participants