{"action":"created","issue":{"url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/27","labels_url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/27/comments","events_url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/27/events","html_url":"https://github.com/jbochi/lua-resty-cassandra/issues/27","id":56090242,"number":27,"title":"Unable to iterate over key/value pairs","user":{"login":"thibaultCha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultCha","html_url":"https://github.com/thibaultCha","followers_url":"https://api.github.com/users/thibaultCha/followers","following_url":"https://api.github.com/users/thibaultCha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultCha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultCha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultCha/subscriptions","organizations_url":"https://api.github.com/users/thibaultCha/orgs","repos_url":"https://api.github.com/users/thibaultCha/repos","events_url":"https://api.github.com/users/thibaultCha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultCha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-30T21:58:52Z","updated_at":"2015-02-02T16:11:14Z","closed_at":"2015-01-31T10:50:54Z","body":"Hi,\r\n\r\nI noticed that in `parse_rows` [here](https://github.com/jbochi/lua-resty-cassandra/blob/master/src/cassandra.lua#L841), every row is added to two keys in the final result:\r\n\r\n```lua\r\nrow[j] = value\r\nrow[columns[j].name] = value\r\n```\r\n\r\nThus leading to results such as:\r\n\r\n```lua\r\n{ \r\n  { \"3.2.0\", \"3\", \"2.1.2\",\r\n  cql_version = \"3.2.0\",\r\n  native_protocol_version = \"3\",\r\n  release_version = \"2.1.2\"\r\n}\r\n```\r\n\r\nI was wondering what purpose this behaviour served, and if an option to only retrieve this part:\r\n\r\n```lua\r\n{\r\n  cql_version = \"3.2.0\",\r\n  native_protocol_version = \"3\",\r\n  release_version = \"2.1.2\"\r\n}\r\n```\r\n\r\ncould be considered.\r\n"},"comment":{"url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/comments/72483645","html_url":"https://github.com/jbochi/lua-resty-cassandra/issues/27#issuecomment-72483645","issue_url":"https://api.github.com/repos/jbochi/lua-resty-cassandra/issues/27","id":72483645,"user":{"login":"jbochi","id":292712,"avatar_url":"https://avatars.githubusercontent.com/u/292712?v=3","gravatar_id":"","url":"https://api.github.com/users/jbochi","html_url":"https://github.com/jbochi","followers_url":"https://api.github.com/users/jbochi/followers","following_url":"https://api.github.com/users/jbochi/following{/other_user}","gists_url":"https://api.github.com/users/jbochi/gists{/gist_id}","starred_url":"https://api.github.com/users/jbochi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbochi/subscriptions","organizations_url":"https://api.github.com/users/jbochi/orgs","repos_url":"https://api.github.com/users/jbochi/repos","events_url":"https://api.github.com/users/jbochi/events{/privacy}","received_events_url":"https://api.github.com/users/jbochi/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T16:11:14Z","updated_at":"2015-02-02T16:11:14Z","body":"Hey! I just bumped the version to 0.3 -> http://rocks.moonscript.org/modules/jbochi/cassandra/0.3-1"}}