Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 31779 invoked from network); 2 Jul 2009 17:36:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 17:36:03 -0000 Received: (qmail 14238 invoked by uid 500); 2 Jul 2009 17:36:12 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 14083 invoked by uid 500); 2 Jul 2009 17:36:11 -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 14067 invoked by uid 99); 2 Jul 2009 17:36:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 17:36:11 +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 17:36:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6E8F2234C004 for ; Thu, 2 Jul 2009 10:35:47 -0700 (PDT) Message-ID: <1591668948.1246556147441.JavaMail.jira@brutus> Date: Thu, 2 Jul 2009 10:35: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=12726569#action_12726569 ] Prasad Chakka commented on HIVE-590: ------------------------------------ I don't think the new Schema object should be in metastore as it is not going to be used by it. There is no corresponding object in metadb. It will be used only by HiveServer so it should be in the thrift interface of HiveServer. Namit and I had a chat about it and he agreed to move it there. > 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.