{"action":"created","issue":{"url":"https://api.github.com/repos/tarantool/doc/issues/71","repository_url":"https://api.github.com/repos/tarantool/doc","labels_url":"https://api.github.com/repos/tarantool/doc/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/tarantool/doc/issues/71/comments","events_url":"https://api.github.com/repos/tarantool/doc/issues/71/events","html_url":"https://github.com/tarantool/doc/issues/71","id":180136661,"number":71,"title":"space:pairs() must pass key and opts parameters to primary index :pairs()","user":{"login":"Gerold103","id":5232171,"avatar_url":"https://avatars.githubusercontent.com/u/5232171?v=3","gravatar_id":"","url":"https://api.github.com/users/Gerold103","html_url":"https://github.com/Gerold103","followers_url":"https://api.github.com/users/Gerold103/followers","following_url":"https://api.github.com/users/Gerold103/following{/other_user}","gists_url":"https://api.github.com/users/Gerold103/gists{/gist_id}","starred_url":"https://api.github.com/users/Gerold103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gerold103/subscriptions","organizations_url":"https://api.github.com/users/Gerold103/orgs","repos_url":"https://api.github.com/users/Gerold103/repos","events_url":"https://api.github.com/users/Gerold103/events{/privacy}","received_events_url":"https://api.github.com/users/Gerold103/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tarantool/doc/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"pgulutzan","id":5668310,"avatar_url":"https://avatars.githubusercontent.com/u/5668310?v=3","gravatar_id":"","url":"https://api.github.com/users/pgulutzan","html_url":"https://github.com/pgulutzan","followers_url":"https://api.github.com/users/pgulutzan/followers","following_url":"https://api.github.com/users/pgulutzan/following{/other_user}","gists_url":"https://api.github.com/users/pgulutzan/gists{/gist_id}","starred_url":"https://api.github.com/users/pgulutzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgulutzan/subscriptions","organizations_url":"https://api.github.com/users/pgulutzan/orgs","repos_url":"https://api.github.com/users/pgulutzan/repos","events_url":"https://api.github.com/users/pgulutzan/events{/privacy}","received_events_url":"https://api.github.com/users/pgulutzan/received_events","type":"User","site_admin":false},"assignees":[{"login":"pgulutzan","id":5668310,"avatar_url":"https://avatars.githubusercontent.com/u/5668310?v=3","gravatar_id":"","url":"https://api.github.com/users/pgulutzan","html_url":"https://github.com/pgulutzan","followers_url":"https://api.github.com/users/pgulutzan/followers","following_url":"https://api.github.com/users/pgulutzan/following{/other_user}","gists_url":"https://api.github.com/users/pgulutzan/gists{/gist_id}","starred_url":"https://api.github.com/users/pgulutzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgulutzan/subscriptions","organizations_url":"https://api.github.com/users/pgulutzan/orgs","repos_url":"https://api.github.com/users/pgulutzan/repos","events_url":"https://api.github.com/users/pgulutzan/events{/privacy}","received_events_url":"https://api.github.com/users/pgulutzan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-29T19:12:35Z","updated_at":"2016-10-25T18:27:20Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/tarantool/doc/issues/comments/256127038","html_url":"https://github.com/tarantool/doc/issues/71#issuecomment-256127038","issue_url":"https://api.github.com/repos/tarantool/doc/issues/71","id":256127038,"user":{"login":"pgulutzan","id":5668310,"avatar_url":"https://avatars.githubusercontent.com/u/5668310?v=3","gravatar_id":"","url":"https://api.github.com/users/pgulutzan","html_url":"https://github.com/pgulutzan","followers_url":"https://api.github.com/users/pgulutzan/followers","following_url":"https://api.github.com/users/pgulutzan/following{/other_user}","gists_url":"https://api.github.com/users/pgulutzan/gists{/gist_id}","starred_url":"https://api.github.com/users/pgulutzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgulutzan/subscriptions","organizations_url":"https://api.github.com/users/pgulutzan/orgs","repos_url":"https://api.github.com/users/pgulutzan/repos","events_url":"https://api.github.com/users/pgulutzan/events{/privacy}","received_events_url":"https://api.github.com/users/pgulutzan/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:27:20Z","updated_at":"2016-10-25T18:27:20Z","body":"I think this means: document space-object:pairs([key-value [,{option(s)]]}).\r\nThat's valid, since (although it's optional not mandatory) a key and an iterator option can be passed.\r\nBut please explain:\r\nbox.schema.space.create('t')\r\nbox.space.t:create_index('i')\r\nbox.space.t:insert{1}, box.space.t:insert{2}, box.space.t:insert{3}\r\nbox.space.t:select(1,{iterator='GT',limit=1})\r\nfor k, v in box.space.t:pairs(1,{iterator='GT',limit=1}) do print(v[1]) end\r\nNotice that the select() request returns one tuple, but the pairs() request returns two tuples.\r\nIn other words, it appears that the \"limit\" option has been ignored.\r\nSo: we shouldn't say \"opts\" (plural), we should say \"opt\" or just \"iterator-type\",\r\nas we do for indexes\r\nhttps://tarantool.org/doc/book/box/box_index.html#lua-function.index_object.pairs\r\nor am I misunderstanding what you mean by \"opts\"?"}}
{"actor":{"display_login":"pgulutzan"}}