Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 50130 invoked from network); 2 Jul 2009 17:59:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 17:59:59 -0000 Received: (qmail 51513 invoked by uid 500); 2 Jul 2009 18:00:09 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 51462 invoked by uid 500); 2 Jul 2009 18:00:09 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 51452 invoked by uid 99); 2 Jul 2009 18:00:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 18:00:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 18:00:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54447234C046 for ; Thu, 2 Jul 2009 10:59:47 -0700 (PDT) Message-ID: <1849175991.1246557587344.JavaMail.jira@brutus> Date: Thu, 2 Jul 2009 10:59:47 -0700 (PDT) From: "Prasad Chakka (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-590) Pass type information in genFileSinkPlan In-Reply-To: <941239155.1246303607172.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726586#action_12726586 ] Prasad Chakka commented on HIVE-590: ------------------------------------ well, there is get_table() call that returns Table object. You can use that one. > Pass type information in genFileSinkPlan > ---------------------------------------- > > Key: HIVE-590 > URL: https://issues.apache.org/jira/browse/HIVE-590 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Reporter: Raghotham Murthy > Assignee: Namit Jain > Fix For: 0.4.0 > > Attachments: hive.590.1.patch, hive.590.2.patch > > > Right now only column names are being passed between semanticanalyzer and fetchtask. Once type information is passed, we can use LazySerDe to serialize the data (into json) in Driver.getResults(). > Driver.getSchema() should then return a new thrift type ResultSchema instead of String: > {code} > struct ResultSchema { > // column names, types, comments > 1: list fieldSchemas, > // delimiters etc > 2: map properties > } > {code} > Once this is done, the jdbc client can instantiate a simplified serde from the ResultSchema and parse the query results. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.