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

Fix toIterator bug (#988) #990

Merged
merged 2 commits into from
Aug 1, 2014
Merged

Fix toIterator bug (#988) #990

merged 2 commits into from
Aug 1, 2014

Conversation

johnynek
Copy link
Collaborator

@johnynek johnynek commented Aug 1, 2014

Actually many toIterator is probably broken due to this bug. Unless the sourceFields are the default ordering of the tuple, it was broken.

Closes #988

@ianoc
Copy link
Collaborator

ianoc commented Aug 1, 2014

How did it work/not work before?

@ianoc
Copy link
Collaborator

ianoc commented Aug 1, 2014

LGTM, merge when green... if ever! :)

@johnynek
Copy link
Collaborator Author

johnynek commented Aug 1, 2014

The reason it worked before is that toIterator uses a different path than reading does. We were ignoring the sourceFields. For sources that are already in order (most of them) that was okay. TextLine was selecting only the line field, which is unusual.

johnynek added a commit that referenced this pull request Aug 1, 2014
@johnynek johnynek merged commit ad7698b into develop Aug 1, 2014
@johnynek johnynek deleted the textline-iterator branch August 1, 2014 20:58
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.

TextLine().toIterator is broken
2 participants