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 1B2CFEC67 for ; Sun, 3 Feb 2013 19:34:14 +0000 (UTC) Received: (qmail 90062 invoked by uid 500); 3 Feb 2013 19:34:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 90017 invoked by uid 500); 3 Feb 2013 19:34:13 -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 90008 invoked by uid 500); 3 Feb 2013 19:34:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 90005 invoked by uid 99); 3 Feb 2013 19:34:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2013 19:34:13 +0000 Date: Sun, 3 Feb 2013 19:34:13 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3308) Mixing avro and snappy gives null values 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-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569871#comment-13569871 ] Ashutosh Chauhan commented on HIVE-3308: ---------------------------------------- [~jakobhoman] Would you like to review this patch? > Mixing avro and snappy gives null values > ---------------------------------------- > > Key: HIVE-3308 > URL: https://issues.apache.org/jira/browse/HIVE-3308 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.10.0 > Reporter: Bennie Schut > Attachments: HIVE-3308.patch1.txt, HIVE-3308.patch2.txt > > > On default hive uses LazySimpleSerDe for output. > When I now enable compression and "select count(*) from avrotable" the output is a file with the .avro extension but this then will display null values since the file is in reality not an avro file but a file created by LazySimpleSerDe using compression so should be a .snappy file. > This causes any job (exception select * from avrotable is that not truly a job) to show null values. > If you use any serde other then avro you can temporarily fix this by setting "set hive.output.file.extension=.snappy" and it will correctly work again but this won't work on avro since it overwrites the hive.output.file.extension during initializing. > When you dump the query result into a table with "create table bla as" you can rename the .avro file into .snappy and the "select from bla" will also magiacally work again. > Input and Ouput serdes don't always match so when I use avro as an input format it should not set the hive.output.file.extension. > Onces it's set all queries will use it and fail making the connection useless to reuse. -- 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