Comments (6)
Moving to backlog until more pressing issues are worked out.
from rethinkdb.
This query fails:
r.db('w').table('design').eqJoin('id', r.db('w').table('user'), 'id_user').zip().run()
The primary key of the table design is "id" and the one of the table user is "id_user".
I get this error:
Runtime Error: Attribute: id is not the primary key (id_user) and thus cannot be selected upon.
r.db('w').table('design').concatMap(function(arg0_10) {return r.let({'right':r.db('w').table('user').get(r.letVar('arg0_10')('id'), 'id')}, r.branch(r.letVar('right').ne(r.expr(null)), r.expr([r.expr({'left':r.letVar('arg0_10'), 'right':r.letVar('right')})]), r.expr([])))}).map(function(arg0_11) {return r.branch(r.letVar('arg0_11').contains(right), r.letVar('arg0_11')('left').merge(r.letVar('arg0_11')('right')), r.letVar('arg0_11')('left'))})
So the problem is not just that the default key is "id" but that the default key is always "id" even if the user define the primary key.
from rethinkdb.
That seems to be a bug in the driver. @wmrowan -- could you take a look?
EDIT: this is a separate issue from the original one, so @wmrowan -- perhaps you should open a new one that we fix now.
from rethinkdb.
In regards to the original issue described here, I'd be in favor of merging this into the protocol refactoring process since this is an already acknowledged goal of that effort. In the future, these optional attributes will be included as optargs on their respective operations in the protocol spec and the server will use the known primary key for the table if the optarg is not provided. Given this, I see little reason to fix this now.
from rethinkdb.
Meant to close the other one
from rethinkdb.
This is no longer relevant, closing.
from rethinkdb.
Related Issues (20)
- Rethinkdb Proxy
- Set a name to a proxy name HOT 3
- Add "Buffers" from /proc/meminfo in parse_meminfo_file to determine available memory
- download.rethinkdb.com is down, 502 Bad Gateway HOT 1
- Evaluate Profile-Guided Optimization (PGO) on RethinkDB
- error: to_string called on an uninitialized ip_address_t, addr_type: 0 compiling rethinkdb on Raspberry HOT 6
- RethinkDB not fully supported on Raspberry PI OS Bullseye (32/64 bit) HOT 10
- Reasonable to change hard-coded cluster size? HOT 5
- help bro my issue = warn: Problem when checking for new versions of RethinkDB: HTTP request to update.rethinkdb.com failed. HOT 1
- cluster connect/reconnect timeout HOT 1
- Installation fails in Kubuntu 23.10 HOT 4
- Generate web_assets.cc in a repeatable file order HOT 1
- Avoid full paths of coffeescript files in generation of web_assets.cc HOT 2
- Rethinkdb 2.4.4 release list HOT 11
- Support protobuf 25
- Return multiple changes feed
- Cache miss rate measurements HOT 4
- Something i forgot to had when having the default doc like so
- Connect rethinkdb directly from browser ? HOT 1
- Why exactly do rethinkDB add null characters to response / request JSON ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rethinkdb.