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

indexCreate with r.branch gives [RqlDriverError: Nesting depth limit exceeded] #5

Closed
dmitrig01 opened this issue Mar 6, 2014 · 5 comments

Comments

@dmitrig01
Copy link

I'm pretty sure this is a driver error, because it works in the web UI, but from rethinkdbdash, this code gives the error (haven't really had time to isolate – I don't know if it's the multi, or if it's r.branch, or what it is – but it definitely doesn't work):

r.db('a').table('b').indexCreate('c', function(b) {
    return r.branch(
        b('something'),
        ['a'],
        ['b']
    );
}, { multi: true })
@neumino
Copy link
Owner

neumino commented Mar 6, 2014

I just tried your query and it works fine (there is an extra comma in r.branch though).

What version of node are you using and on which OS? I'm running 0.11.10 on Linux.

@dmitrig01
Copy link
Author

0.11.9, Mac 10.9 (and yeah, that extra comma was a formatting error). hmmmm. Rethinkdb 1.11.2, rethinkdbdash 1.11.7

@neumino
Copy link
Owner

neumino commented Mar 11, 2014

Sorry @dmitrig01, I forgot to look at that this week end.

I just built Node 0.11.9, and it still works fine for me (I'm running Linux though).

Could you try with Node 0.11.10 to see if you still have this problem?

@dmitrig01
Copy link
Author

ahh, I know what it was – bug in my code (not this part, but the surrounding code – I did a funky thing mixing rethinkdbdash and the normal rethinkdb drive).

@neumino
Copy link
Owner

neumino commented Mar 11, 2014

Glad we could sort it out ; )

thelinuxlich added a commit to AIDAX/rethinkdbdash that referenced this issue May 23, 2018
Fix pool matching when a server has no assigned pool
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

2 participants