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

OneToManyReader assumes records are sorted by join fields #184

Open
rjmackay opened this issue Apr 7, 2015 · 2 comments
Open

OneToManyReader assumes records are sorted by join fields #184

rjmackay opened this issue Apr 7, 2015 · 2 comments

Comments

@rjmackay
Copy link
Contributor

rjmackay commented Apr 7, 2015

OneToManyReader assumes records are sorted by join fields. For each left row, it iterates over RHS rows until it hits a row which doesn't match. If they're out of order, this means any later RHS rows are ignored.

The relevant code is ~ line 94 of OneToManyReader
while ($leftId == $rightId && $this->rightReader->valid()) {

The reader should either not make this assumption, or document it

@Baachi
Copy link
Collaborator

Baachi commented Apr 10, 2015

Feel free to submit a PR :)

@red-crown
Copy link

+1

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

No branches or pull requests

3 participants