Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3887B10886 for ; Thu, 22 Aug 2013 21:51:56 +0000 (UTC) Received: (qmail 95977 invoked by uid 500); 22 Aug 2013 21:51:52 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 95899 invoked by uid 500); 22 Aug 2013 21:51:52 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 95864 invoked by uid 500); 22 Aug 2013 21:51:52 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 95846 invoked by uid 99); 22 Aug 2013 21:51:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 21:51:52 +0000 Date: Thu, 22 Aug 2013 21:51:52 +0000 (UTC) From: "Phabricator (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5137) A Hive SQL query should not return a ResultSet when the underlying plan does not include a FetchTask MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747924#comment-13747924 ] Phabricator commented on HIVE-5137: ----------------------------------- thejas has commented on the revision "HIVE-5137 [jira] A Hive SQL query should not return a ResultSet when the underlying plan does not include a FetchTaskSQL". INLINE COMMENTS jdbc/src/test/org/apache/hive/jdbc/TestJdbcDriver2.java:473 I think writing it to stderr is better. Maybe create a function for this - e.printStackTrace(); fail(e.toString()); jdbc/src/test/org/apache/hive/jdbc/TestJdbcDriver2.java:468 a function for this will make it more readable - Something like - checkResultsAvailable(String[] setupStmts, String stmt, boolean resultsExpected) jdbc/src/test/org/apache/hive/jdbc/TestJdbcDriver2.java:267 We need to look at ways to get explain statement giving results as well. REVISION DETAIL https://reviews.facebook.net/D12453 To: JIRA, vaibhavgumashta Cc: thejas > A Hive SQL query should not return a ResultSet when the underlying plan does not include a FetchTask > ---------------------------------------------------------------------------------------------------- > > Key: HIVE-5137 > URL: https://issues.apache.org/jira/browse/HIVE-5137 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.11.0 > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Attachments: HIVE-5137.D12453.1.patch, HIVE-5137.D12453.2.patch, HIVE-5137.D12453.3.patch, HIVE-5137.D12453.4.patch, HIVE-5137.D12453.5.patch > > > Currently, a query like "create table if not exists t2 as select * from t1" sets the hasResultSet to true in SQLOperation and in turn, the query returns a result set. However, as a DDL command, this should ideally not return a result set. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira