{"action":"created","issue":{"url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/35","repository_url":"https://api.github.com/repos/treasure-data/presto-client-ruby","labels_url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/35/comments","events_url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/35/events","html_url":"https://github.com/treasure-data/presto-client-ruby/pull/35","id":253209877,"number":35,"title":"Fix too deep nested json failure","user":{"login":"Lewuathe","id":1713047,"avatar_url":"https://avatars0.githubusercontent.com/u/1713047?v=4","gravatar_id":"","url":"https://api.github.com/users/Lewuathe","html_url":"https://github.com/Lewuathe","followers_url":"https://api.github.com/users/Lewuathe/followers","following_url":"https://api.github.com/users/Lewuathe/following{/other_user}","gists_url":"https://api.github.com/users/Lewuathe/gists{/gist_id}","starred_url":"https://api.github.com/users/Lewuathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lewuathe/subscriptions","organizations_url":"https://api.github.com/users/Lewuathe/orgs","repos_url":"https://api.github.com/users/Lewuathe/repos","events_url":"https://api.github.com/users/Lewuathe/events{/privacy}","received_events_url":"https://api.github.com/users/Lewuathe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-28T02:15:41Z","updated_at":"2017-08-28T03:58:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/treasure-data/presto-client-ruby/pulls/35","html_url":"https://github.com/treasure-data/presto-client-ruby/pull/35","diff_url":"https://github.com/treasure-data/presto-client-ruby/pull/35.diff","patch_url":"https://github.com/treasure-data/presto-client-ruby/pull/35.patch"},"body":"## Problem\r\n\r\nPresto can return too nested JSON value in statement request when huge `UNION ALL` or `JOIN` query is submitted.\r\n\r\n```\r\n     Failure/Error: StatementClient.new(faraday, query, options)\r\n     JSON::NestingError:\r\n       nesting of 101 is too deep\r\n     # ./lib/presto/client/statement_client.rb:198:in `parse_body'\r\n     # ./lib/presto/client/statement_client.rb:124:in `post_query_request!'\r\n     # ./lib/presto/client/statement_client.rb:64:in `initialize'\r\n     # ./spec/statement_client_spec.rb:294:in `new'\r\n     # ./spec/statement_client_spec.rb:294:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\n## Solution\r\n\r\nDisabling depth checking in this case should be safe."},"comment":{"url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/comments/325254570","html_url":"https://github.com/treasure-data/presto-client-ruby/pull/35#issuecomment-325254570","issue_url":"https://api.github.com/repos/treasure-data/presto-client-ruby/issues/35","id":325254570,"user":{"login":"Lewuathe","id":1713047,"avatar_url":"https://avatars0.githubusercontent.com/u/1713047?v=4","gravatar_id":"","url":"https://api.github.com/users/Lewuathe","html_url":"https://github.com/Lewuathe","followers_url":"https://api.github.com/users/Lewuathe/followers","following_url":"https://api.github.com/users/Lewuathe/following{/other_user}","gists_url":"https://api.github.com/users/Lewuathe/gists{/gist_id}","starred_url":"https://api.github.com/users/Lewuathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lewuathe/subscriptions","organizations_url":"https://api.github.com/users/Lewuathe/orgs","repos_url":"https://api.github.com/users/Lewuathe/repos","events_url":"https://api.github.com/users/Lewuathe/events{/privacy}","received_events_url":"https://api.github.com/users/Lewuathe/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T03:58:26Z","updated_at":"2017-08-28T03:58:26Z","body":"@miniway Thanks!"}}
{"actor":{"display_login":"Lewuathe"}}