Return-Path: Delivered-To: apmail-hive-user-archive@www.apache.org Received: (qmail 54210 invoked from network); 1 Dec 2010 04:11:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Dec 2010 04:11:11 -0000 Received: (qmail 46074 invoked by uid 500); 1 Dec 2010 04:11:11 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 45956 invoked by uid 500); 1 Dec 2010 04:11:11 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 45948 invoked by uid 99); 1 Dec 2010 04:11:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 04:11:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saptarshi@revolution-computing.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 04:11:02 +0000 Received: by gwaa20 with SMTP id a20so587235gwa.35 for ; Tue, 30 Nov 2010 20:10:41 -0800 (PST) Received: by 10.151.83.16 with SMTP id k16mr13848650ybl.239.1291176641408; Tue, 30 Nov 2010 20:10:41 -0800 (PST) Received: from [192.168.1.105] (c-98-234-50-180.hsd1.ca.comcast.net [98.234.50.180]) by mx.google.com with ESMTPS id q5sm1402092ybe.6.2010.11.30.20.10.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Nov 2010 20:10:40 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: Deserializing results from ThriftHiveClient::fetch* From: Saptarshi Guha In-Reply-To: Date: Tue, 30 Nov 2010 20:10:37 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <587E83F2-6CB4-4202-A39D-70A3246FBE28@revolution-computing.com> References: To: user@hive.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org And sorry for the terrible grammar. Should have proofread. Cheers J From: Saptarshi Guha Date: November 30, 2010 4:51:35 PM PST To: user@hive.apache.org Subject: Deserializing results from ThriftHiveClient::fetch* > Hello=20 >=20 > A few questions. Once i get the result from e.g void = fetchOne(std::string& _return); > how does one parse the bytes in _return? >=20 > Is this what getSchema is for? Do I call getSchema, figure out the = column types > and (somehow) deserialize? Or are there functions for to deserialize = this? > The source does say something about Thrift serialized form, so maybe = there could > thrift functions to deserialize the return values from fetch*. >=20 > Once again thanks for your pointers >=20 > Cheers > Joy >=20