{"action":"created","issue":{"url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/26","repository_url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC","labels_url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/26/comments","events_url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/26/events","html_url":"https://github.com/laughingman7743/PyAthenaJDBC/issues/26","id":230453434,"number":26,"title":"Desc Table Query","user":{"login":"tewfik-ghariani","id":11073604,"avatar_url":"https://avatars0.githubusercontent.com/u/11073604?v=3","gravatar_id":"","url":"https://api.github.com/users/tewfik-ghariani","html_url":"https://github.com/tewfik-ghariani","followers_url":"https://api.github.com/users/tewfik-ghariani/followers","following_url":"https://api.github.com/users/tewfik-ghariani/following{/other_user}","gists_url":"https://api.github.com/users/tewfik-ghariani/gists{/gist_id}","starred_url":"https://api.github.com/users/tewfik-ghariani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tewfik-ghariani/subscriptions","organizations_url":"https://api.github.com/users/tewfik-ghariani/orgs","repos_url":"https://api.github.com/users/tewfik-ghariani/repos","events_url":"https://api.github.com/users/tewfik-ghariani/events{/privacy}","received_events_url":"https://api.github.com/users/tewfik-ghariani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-22T16:38:55Z","updated_at":"2017-06-05T02:11:06Z","closed_at":null,"body":"Hello, \r\nI am using PyAthenaJDBC since the beginning and I believe it has been working like a charm,\r\nNevertheless, I was not able to perform the query to retrieve the description of my tables, the query is ran successfully as I can check it in the history. However, whenever I use any fetch method for the cursor, i get the following error : \r\n\r\n> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1\r\n\r\nYou may find a sample of my code below, i would appreciate any help =)\r\n\r\n\r\n\r\n```\r\nclass PyAthenaLoader():\r\n    def connecti(self):\r\n        self.conn = pyathenajdbc.connect(\r\n            s3_staging_dir=\"s3://bucket\",\r\n            region_name=\"us-east-1\",\r\n            log_path=log_path,\r\n        )\r\n\r\n    def desc(self, database, table):\r\n        \"\"\"\r\n        table description\r\n\r\n        :param database.table:\r\n        :return:\r\n        \"\"\"\r\n        self.connecti()\r\n        try:\r\n            with self.conn.cursor() as cursor:\r\n                cursor.execute('desc {0}.{1};'.format(database, table))\r\n                data = cursor.fetchall()\r\n        except Exception as X:\r\n            print(X.args[0])\r\n            return {'success': False, 'error': X.args[0]}\r\n        finally:\r\n            self.conn.close()\r\n        return {'success': True, 'data': data}\r\n```"},"comment":{"url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/comments/306086885","html_url":"https://github.com/laughingman7743/PyAthenaJDBC/issues/26#issuecomment-306086885","issue_url":"https://api.github.com/repos/laughingman7743/PyAthenaJDBC/issues/26","id":306086885,"user":{"login":"laughingman7743","id":3115686,"avatar_url":"https://avatars3.githubusercontent.com/u/3115686?v=3","gravatar_id":"","url":"https://api.github.com/users/laughingman7743","html_url":"https://github.com/laughingman7743","followers_url":"https://api.github.com/users/laughingman7743/followers","following_url":"https://api.github.com/users/laughingman7743/following{/other_user}","gists_url":"https://api.github.com/users/laughingman7743/gists{/gist_id}","starred_url":"https://api.github.com/users/laughingman7743/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughingman7743/subscriptions","organizations_url":"https://api.github.com/users/laughingman7743/orgs","repos_url":"https://api.github.com/users/laughingman7743/repos","events_url":"https://api.github.com/users/laughingman7743/events{/privacy}","received_events_url":"https://api.github.com/users/laughingman7743/received_events","type":"User","site_admin":false},"created_at":"2017-06-05T02:11:06Z","updated_at":"2017-06-05T02:11:06Z","body":"It is best to use the following library.\r\nhttps://github.com/laughingman7743/PyAthena/\r\nhttps://pypi.python.org/pypi/PyAthena/"}}
{"actor":{"display_login":"laughingman7743"}}