{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4032","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4032/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4032/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4032/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4032","id":67236821,"number":4032,"title":"r.minval/r.maxval can be written to rethinkdb._debug_scratch","user":{"login":"larkost","id":7431361,"avatar_url":"https://avatars.githubusercontent.com/u/7431361?v=3","gravatar_id":"","url":"https://api.github.com/users/larkost","html_url":"https://github.com/larkost","followers_url":"https://api.github.com/users/larkost/followers","following_url":"https://api.github.com/users/larkost/following{/other_user}","gists_url":"https://api.github.com/users/larkost/gists{/gist_id}","starred_url":"https://api.github.com/users/larkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larkost/subscriptions","organizations_url":"https://api.github.com/users/larkost/orgs","repos_url":"https://api.github.com/users/larkost/repos","events_url":"https://api.github.com/users/larkost/events{/privacy}","received_events_url":"https://api.github.com/users/larkost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:bug","name":"tp:bug","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/92","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.2","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/92/labels","id":964515,"number":92,"title":"2.2","description":"","creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":10,"state":"open","created_at":"2015-02-03T22:18:37Z","updated_at":"2015-09-24T19:33:36Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-04-08T22:47:25Z","updated_at":"2015-09-24T22:00:08Z","closed_at":null,"body":"The `polyglot/mutation/insert` tests are failing inside `interface.artificial_table` because that table seems to avoid our check that `r.minval` and `r.maxval` are not insertable and so the checks for errors when inserting those into `rethinkdb._debug_scratch` are failing. @danielmewes guesses that this is due to the lack of serialization for rethinkdb._debug_scratch.\r\n\r\nThis is easily demonstrated outside of the tests:\r\n```python\r\n>>> r.db('rethinkdb').table('_debug_scratch').insert({'value':r.minval}).run()\r\n{u'errors': 0, u'deleted': 0, u'generated_keys': [u'0b48f71a-c5e8-4831-aae0-9207332b76d7'], u'unchanged': 0, u'skipped': 0, u'replaced': 0, u'inserted': 1}\r\n>>> r.db('rethinkdb').table('_debug_scratch').run()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"rethinkdb/ast.py\", line 97, in run\r\n    return c._start(self, **global_optargs)\r\n  File \"rethinkdb/net.py\", line 520, in _start\r\n    return self._instance.run_query(q, global_optargs.get('noreply', False))\r\n  File \"rethinkdb/net.py\", line 400, in run_query\r\n    raise res.make_error(query)\r\nrethinkdb.errors.RqlRuntimeError: Cannot convert `r.minval` to JSON. in:\r\nr.db('rethinkdb').table('_debug_scratch')\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n``` \r\n\r\nThis is probably isolated to the `rethinkdb._debug_scratch` table, so it is unlikely that actual users would ever encounter it, but it would be nice to solve as it would be complicated to work around in the test."},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/143061621","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4032#issuecomment-143061621","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4032","id":143061621,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T22:00:08Z","updated_at":"2015-09-24T22:00:08Z","body":"A fix for this is in CR 3249 with @mlucy "}}