{"action":"created","comment":{"url":"https://api.github.com/repos/apache/drill/pulls/comments/202443154","pull_request_review_id":137151954,"id":202443154,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjQ0MzE1NA==","diff_hunk":"@@ -100,36 +96,125 @@ public static String normalizeQuery(final String query) {\n   }\n \n   /**\n-   * Execute a SQL query, and print the results.\n+   * Execute a SQL query, and output the results.\n    *\n    * @param drillClient drill client to use\n    * @param type type of the query\n    * @param queryString query string\n+   * @param print True to output results to stdout. False to log results.\n+   *\n    * @return number of rows returned\n    * @throws Exception\n    */\n-  public static int testRunAndPrint(\n-      final DrillClient drillClient, final QueryType type, final String queryString) throws Exception {\n+  private static int testRunAndOutput(final DrillClient drillClient,\n+                                      final QueryType type,\n+                                      final String queryString,\n+                                      final boolean print) throws Exception {\n     final String query = normalizeQuery(queryString);\n     DrillConfig config = drillClient.getConfig();\n     AwaitableUserResultsListener resultListener =\n-        new AwaitableUserResultsListener(\n-            config.getBoolean(TEST_QUERY_PRINTING_SILENT) ?\n-                new SilentListener() :\n-                new PrintingResultsListener(config, Format.TSV, VectorUtil.DEFAULT_COLUMN_WIDTH)\n-        );\n+      new AwaitableUserResultsListener(print ?\n+      new PrintingResultsListener(config, Format.TSV, VectorUtil.DEFAULT_COLUMN_WIDTH):\n+      new LoggingResultsListener(config, Format.TSV, VectorUtil.DEFAULT_COLUMN_WIDTH));\n     drillClient.runQuery(type, query, resultListener);\n     return resultListener.await();\n   }\n \n+  /**\n+   * Execute one or more queries separated by semicolons, and output the results.\n+   *\n+   * @param drillClient drill client to use\n+   * @param queryString the query string\n+   * @param print True to output results to stdout. False to log results.\n+   * @throws Exception\n+   */\n+  public static void testRunAndOutput(final DrillClient drillClient,\n+                                      final String queryString,\n+                                      final boolean print) throws Exception{\n+    final String query = normalizeQuery(queryString);","path":"exec/java-exec/src/test/java/org/apache/drill/test/QueryTestUtil.java","position":70,"original_position":70,"commit_id":"743974de6b42e5d8e89b13d300d12d762b5a1507","original_commit_id":"743974de6b42e5d8e89b13d300d12d762b5a1507","user":{"login":"ilooner","id":8020165,"node_id":"MDQ6VXNlcjgwMjAxNjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8020165?v=4","gravatar_id":"","url":"https://api.github.com/users/ilooner","html_url":"https://github.com/ilooner","followers_url":"https://api.github.com/users/ilooner/followers","following_url":"https://api.github.com/users/ilooner/following{/other_user}","gists_url":"https://api.github.com/users/ilooner/gists{/gist_id}","starred_url":"https://api.github.com/users/ilooner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilooner/subscriptions","organizations_url":"https://api.github.com/users/ilooner/orgs","repos_url":"https://api.github.com/users/ilooner/repos","events_url":"https://api.github.com/users/ilooner/events{/privacy}","received_events_url":"https://api.github.com/users/ilooner/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2018-07-13T18:54:34Z","updated_at":"2018-07-13T18:54:34Z","html_url":"https://github.com/apache/drill/pull/1336#discussion_r202443154","pull_request_url":"https://api.github.com/repos/apache/drill/pulls/1336","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/drill/pulls/comments/202443154"},"html":{"href":"https://github.com/apache/drill/pull/1336#discussion_r202443154"},"pull_request":{"href":"https://api.github.com/repos/apache/drill/pulls/1336"}},"in_reply_to_id":202316800},"pull_request":{"url":"https://api.github.com/repos/apache/drill/pulls/1336","id":197232334,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MjMyMzM0","html_url":"https://github.com/apache/drill/pull/1336","diff_url":"https://github.com/apache/drill/pull/1336.diff","patch_url":"https://github.com/apache/drill/pull/1336.patch","issue_url":"https://api.github.com/repos/apache/drill/issues/1336","number":1336,"state":"open","locked":false,"title":"DRILL-6496: Added missing logging statement in VectorUtil.showVectorAccessibleContent(VectorAccessible va, int[] columnWidths)","user":{"login":"ilooner","id":8020165,"node_id":"MDQ6VXNlcjgwMjAxNjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8020165?v=4","gravatar_id":"","url":"https://api.github.com/users/ilooner","html_url":"https://github.com/ilooner","followers_url":"https://api.github.com/users/ilooner/followers","following_url":"https://api.github.com/users/ilooner/following{/other_user}","gists_url":"https://api.github.com/users/ilooner/gists{/gist_id}","starred_url":"https://api.github.com/users/ilooner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilooner/subscriptions","organizations_url":"https://api.github.com/users/ilooner/orgs","repos_url":"https://api.github.com/users/ilooner/repos","events_url":"https://api.github.com/users/ilooner/events{/privacy}","received_events_url":"https://api.github.com/users/ilooner/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-25T20:52:13Z","updated_at":"2018-07-13T18:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53adddc2175d53b4c1be5902b8f35c7ed370921e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vvysotskyi","id":20928429,"node_id":"MDQ6VXNlcjIwOTI4NDI5","avatar_url":"https://avatars3.githubusercontent.com/u/20928429?v=4","gravatar_id":"","url":"https://api.github.com/users/vvysotskyi","html_url":"https://github.com/vvysotskyi","followers_url":"https://api.github.com/users/vvysotskyi/followers","following_url":"https://api.github.com/users/vvysotskyi/following{/other_user}","gists_url":"https://api.github.com/users/vvysotskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/vvysotskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvysotskyi/subscriptions","organizations_url":"https://api.github.com/users/vvysotskyi/orgs","repos_url":"https://api.github.com/users/vvysotskyi/repos","events_url":"https://api.github.com/users/vvysotskyi/events{/privacy}","received_events_url":"https://api.github.com/users/vvysotskyi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/drill/pulls/1336/commits","review_comments_url":"https://api.github.com/repos/apache/drill/pulls/1336/comments","review_comment_url":"https://api.github.com/repos/apache/drill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/drill/issues/1336/comments","statuses_url":"https://api.github.com/repos/apache/drill/statuses/743974de6b42e5d8e89b13d300d12d762b5a1507","head":{"label":"ilooner:DRILL-6496","ref":"DRILL-6496","sha":"743974de6b42e5d8e89b13d300d12d762b5a1507","user":{"login":"ilooner","id":8020165,"node_id":"MDQ6VXNlcjgwMjAxNjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8020165?v=4","gravatar_id":"","url":"https://api.github.com/users/ilooner","html_url":"https://github.com/ilooner","followers_url":"https://api.github.com/users/ilooner/followers","following_url":"https://api.github.com/users/ilooner/following{/other_user}","gists_url":"https://api.github.com/users/ilooner/gists{/gist_id}","starred_url":"https://api.github.com/users/ilooner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilooner/subscriptions","organizations_url":"https://api.github.com/users/ilooner/orgs","repos_url":"https://api.github.com/users/ilooner/repos","events_url":"https://api.github.com/users/ilooner/events{/privacy}","received_events_url":"https://api.github.com/users/ilooner/received_events","type":"User","site_admin":false},"repo":{"id":101440394,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE0NDAzOTQ=","name":"drill","full_name":"ilooner/drill","owner":{"login":"ilooner","id":8020165,"node_id":"MDQ6VXNlcjgwMjAxNjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8020165?v=4","gravatar_id":"","url":"https://api.github.com/users/ilooner","html_url":"https://github.com/ilooner","followers_url":"https://api.github.com/users/ilooner/followers","following_url":"https://api.github.com/users/ilooner/following{/other_user}","gists_url":"https://api.github.com/users/ilooner/gists{/gist_id}","starred_url":"https://api.github.com/users/ilooner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilooner/subscriptions","organizations_url":"https://api.github.com/users/ilooner/orgs","repos_url":"https://api.github.com/users/ilooner/repos","events_url":"https://api.github.com/users/ilooner/events{/privacy}","received_events_url":"https://api.github.com/users/ilooner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ilooner/drill","description":"Mirror of Apache Drill","fork":true,"url":"https://api.github.com/repos/ilooner/drill","forks_url":"https://api.github.com/repos/ilooner/drill/forks","keys_url":"https://api.github.com/repos/ilooner/drill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ilooner/drill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ilooner/drill/teams","hooks_url":"https://api.github.com/repos/ilooner/drill/hooks","issue_events_url":"https://api.github.com/repos/ilooner/drill/issues/events{/number}","events_url":"https://api.github.com/repos/ilooner/drill/events","assignees_url":"https://api.github.com/repos/ilooner/drill/assignees{/user}","branches_url":"https://api.github.com/repos/ilooner/drill/branches{/branch}","tags_url":"https://api.github.com/repos/ilooner/drill/tags","blobs_url":"https://api.github.com/repos/ilooner/drill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ilooner/drill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ilooner/drill/git/refs{/sha}","trees_url":"https://api.github.com/repos/ilooner/drill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ilooner/drill/statuses/{sha}","languages_url":"https://api.github.com/repos/ilooner/drill/languages","stargazers_url":"https://api.github.com/repos/ilooner/drill/stargazers","contributors_url":"https://api.github.com/repos/ilooner/drill/contributors","subscribers_url":"https://api.github.com/repos/ilooner/drill/subscribers","subscription_url":"https://api.github.com/repos/ilooner/drill/subscription","commits_url":"https://api.github.com/repos/ilooner/drill/commits{/sha}","git_commits_url":"https://api.github.com/repos/ilooner/drill/git/commits{/sha}","comments_url":"https://api.github.com/repos/ilooner/drill/comments{/number}","issue_comment_url":"https://api.github.com/repos/ilooner/drill/issues/comments{/number}","contents_url":"https://api.github.com/repos/ilooner/drill/contents/{+path}","compare_url":"https://api.github.com/repos/ilooner/drill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ilooner/drill/merges","archive_url":"https://api.github.com/repos/ilooner/drill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ilooner/drill/downloads","issues_url":"https://api.github.com/repos/ilooner/drill/issues{/number}","pulls_url":"https://api.github.com/repos/ilooner/drill/pulls{/number}","milestones_url":"https://api.github.com/repos/ilooner/drill/milestones{/number}","notifications_url":"https://api.github.com/repos/ilooner/drill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ilooner/drill/labels{/name}","releases_url":"https://api.github.com/repos/ilooner/drill/releases{/id}","deployments_url":"https://api.github.com/repos/ilooner/drill/deployments","created_at":"2017-08-25T20:36:39Z","updated_at":"2018-06-12T01:53:51Z","pushed_at":"2018-07-13T01:13:05Z","git_url":"git://github.com/ilooner/drill.git","ssh_url":"git@github.com:ilooner/drill.git","clone_url":"https://github.com/ilooner/drill.git","svn_url":"https://github.com/ilooner/drill","homepage":"","size":61941,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"a77fd142d86dd5648cda8866b8ff3af39c7b6b11","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":5683653,"node_id":"MDEwOlJlcG9zaXRvcnk1NjgzNjUz","name":"drill","full_name":"apache/drill","owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/drill","description":"Apache Drill","fork":false,"url":"https://api.github.com/repos/apache/drill","forks_url":"https://api.github.com/repos/apache/drill/forks","keys_url":"https://api.github.com/repos/apache/drill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/drill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/drill/teams","hooks_url":"https://api.github.com/repos/apache/drill/hooks","issue_events_url":"https://api.github.com/repos/apache/drill/issues/events{/number}","events_url":"https://api.github.com/repos/apache/drill/events","assignees_url":"https://api.github.com/repos/apache/drill/assignees{/user}","branches_url":"https://api.github.com/repos/apache/drill/branches{/branch}","tags_url":"https://api.github.com/repos/apache/drill/tags","blobs_url":"https://api.github.com/repos/apache/drill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/drill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/drill/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/drill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/drill/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/drill/languages","stargazers_url":"https://api.github.com/repos/apache/drill/stargazers","contributors_url":"https://api.github.com/repos/apache/drill/contributors","subscribers_url":"https://api.github.com/repos/apache/drill/subscribers","subscription_url":"https://api.github.com/repos/apache/drill/subscription","commits_url":"https://api.github.com/repos/apache/drill/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/drill/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/drill/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/drill/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/drill/contents/{+path}","compare_url":"https://api.github.com/repos/apache/drill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/drill/merges","archive_url":"https://api.github.com/repos/apache/drill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/drill/downloads","issues_url":"https://api.github.com/repos/apache/drill/issues{/number}","pulls_url":"https://api.github.com/repos/apache/drill/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/drill/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/drill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/drill/labels{/name}","releases_url":"https://api.github.com/repos/apache/drill/releases{/id}","deployments_url":"https://api.github.com/repos/apache/drill/deployments","created_at":"2012-09-05T07:00:26Z","updated_at":"2018-07-13T17:41:02Z","pushed_at":"2018-07-13T18:02:02Z","git_url":"git://github.com/apache/drill.git","ssh_url":"git@github.com:apache/drill.git","clone_url":"https://github.com/apache/drill.git","svn_url":"https://github.com/apache/drill","homepage":"","size":61670,"stargazers_count":1004,"watchers_count":1004,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":673,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":673,"open_issues":97,"watchers":1004,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/drill/pulls/1336"},"html":{"href":"https://github.com/apache/drill/pull/1336"},"issue":{"href":"https://api.github.com/repos/apache/drill/issues/1336"},"comments":{"href":"https://api.github.com/repos/apache/drill/issues/1336/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/drill/pulls/1336/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/drill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/drill/pulls/1336/commits"},"statuses":{"href":"https://api.github.com/repos/apache/drill/statuses/743974de6b42e5d8e89b13d300d12d762b5a1507"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ilooner"}}