{"action":"created","issue":{"url":"https://api.github.com/repos/cloudera/impyla/issues/209","repository_url":"https://api.github.com/repos/cloudera/impyla","labels_url":"https://api.github.com/repos/cloudera/impyla/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/cloudera/impyla/issues/209/comments","events_url":"https://api.github.com/repos/cloudera/impyla/issues/209/events","html_url":"https://github.com/cloudera/impyla/issues/209","id":174432687,"number":209,"title":"cursor.rowcount() returns -1 for Impala/Kudu","user":{"login":"briantwalter","id":5378252,"avatar_url":"https://avatars.githubusercontent.com/u/5378252?v=3","gravatar_id":"","url":"https://api.github.com/users/briantwalter","html_url":"https://github.com/briantwalter","followers_url":"https://api.github.com/users/briantwalter/followers","following_url":"https://api.github.com/users/briantwalter/following{/other_user}","gists_url":"https://api.github.com/users/briantwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/briantwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briantwalter/subscriptions","organizations_url":"https://api.github.com/users/briantwalter/orgs","repos_url":"https://api.github.com/users/briantwalter/repos","events_url":"https://api.github.com/users/briantwalter/events{/privacy}","received_events_url":"https://api.github.com/users/briantwalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-01T04:11:31Z","updated_at":"2016-09-06T13:35:31Z","closed_at":null,"body":"This could be \"works as designed\" but when I insert with this library to a table stored in Kudu I get a (-1) result for a successful insert and I would expect (1) row affected.\r\n\r\nCode:\r\n\r\nimport impala.dbapi\r\nconn = impala.dbapi.connect(host=\"hostname\", port=21050)\r\ncursor = conn.cursor()\r\nsql = \"INSERT into kudu_testing VALUES (%s, %s)\"\r\nrow = [ 12345, \"spaceballs\"]\r\ncursor.execute((sql), (row))\r\nprint 'Number of rows affected on INSERT is ' + str(cursor.rowcount)\r\n\r\n\r\nOutput:\r\nNumber of rows affected on INSERT is -1"},"comment":{"url":"https://api.github.com/repos/cloudera/impyla/issues/comments/244951682","html_url":"https://github.com/cloudera/impyla/issues/209#issuecomment-244951682","issue_url":"https://api.github.com/repos/cloudera/impyla/issues/209","id":244951682,"user":{"login":"Saluev","id":2435301,"avatar_url":"https://avatars.githubusercontent.com/u/2435301?v=3","gravatar_id":"","url":"https://api.github.com/users/Saluev","html_url":"https://github.com/Saluev","followers_url":"https://api.github.com/users/Saluev/followers","following_url":"https://api.github.com/users/Saluev/following{/other_user}","gists_url":"https://api.github.com/users/Saluev/gists{/gist_id}","starred_url":"https://api.github.com/users/Saluev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saluev/subscriptions","organizations_url":"https://api.github.com/users/Saluev/orgs","repos_url":"https://api.github.com/users/Saluev/repos","events_url":"https://api.github.com/users/Saluev/events{/privacy}","received_events_url":"https://api.github.com/users/Saluev/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T13:35:31Z","updated_at":"2016-09-06T13:35:31Z","body":"It would be useful if `rowcount` was equal to 0 after operations which don't return rows (e.g. `DROP TABLE`)."}}
{"actor":{"display_login":"Saluev"}}