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 B521017953 for ; Thu, 8 Jan 2015 11:12:33 +0000 (UTC) Received: (qmail 6718 invoked by uid 500); 8 Jan 2015 11:12:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 6648 invoked by uid 500); 8 Jan 2015 11:12:34 -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 6637 invoked by uid 500); 8 Jan 2015 11:12:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 6634 invoked by uid 99); 8 Jan 2015 11:12:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 11:12:34 +0000 Date: Thu, 8 Jan 2015 11:12:34 +0000 (UTC) From: "payal (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-9311) I tryed to run max query using jdbc it didint work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 payal created HIVE-9311: --------------------------- Summary: I tryed to run max query using jdbc it didint work Key: HIVE-9311 URL: https://issues.apache.org/jira/browse/HIVE-9311 Project: Hive Issue Type: Bug Components: Configuration Affects Versions: 0.12.0 Reporter: payal I tryed to run max query using jdbc it didint work please look at it Class.forName("org.apache.hive.jdbc.HiveDriver"); try { con1 =3D DriverManager.getConnection( "jdbc:hive2://dkhc3012:10000/default", "hive", ""); } catch (SQLException sqle) { System.out.println("SQL Exception thrown: " + sqle); } System.out.println("Connected"); System.out.println(columns + tables); Statement stmt =3D con1.createStatement(); result =3D stmt.executeQuery("SELECT max(date_id) FROM date_dim"); while (result.next()) { System.out.println("In while"); val =3D result.getInt(1); System.out.println(val); System.out.println(result.getString(1)); } System.out.println("JDBC Done"); -- This message was sent by Atlassian JIRA (v6.3.4#6332)