You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chaining two eqJoin commands, returns the wrong output:
r.tableCreate('senders');r.tableCreate('receivers');r.tableCreate('messages');r.table('senders').insert({id: 1,sender: 'Sender One'});r.table('receivers').insert({id: 1,receiver: 'Receiver One'});r.table('messages').insert([{senderId: 1,receiverId: 1,msg: 'Message One'},{senderId: 1,receiverId: 1,msg: 'Message Two'},{senderId: 1,receiverId: 1,msg: 'Message Three'}]);// returns tree rows, as expectedr.table('messages').eqJoin('senderId',r.table('senders')).without({right: {id: true}}).zip()// returns only one rowr.table('messages').eqJoin('senderId',r.table('senders')).without({right: {id: true}}).zip().eqJoin('receiverId',r.table('receivers')).without({right: {id: true}}).zip()
Interestingly, coercing to an array in the middle, returns the right output:
// returns three rows as expectedr.table('messages').eqJoin('senderId',r.table('senders')).without({right: {id: true}}).zip().coerceTo('array').eqJoin('receiverId',r.table('receivers')).without({right: {id: true}}).zip()
I've tracked this down; the cause was very similar to the cause of #1796, except it was happening in the eager code. It's surprising our tests didn't catch it (I'm adding one that will now).
Activity
mlucy commentedon Jan 9, 2014
I've tracked this down; the cause was very similar to the cause of #1796, except it was happening in the eager code. It's surprising our tests didn't catch it (I'm adding one that will now).
mlucy commentedon Jan 9, 2014
This is in review 1115 by @Tryneus .
mlucy commentedon Jan 10, 2014
This is in next and v1.11.x .
mlucy commentedon Jan 10, 2014
@AtnNn -- think we're ready for a point release?
AtnNn commentedon Jan 10, 2014
@mlucy Thanks! Looks like we are ready for a point release.