Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B99A11FC3 for ; Sun, 17 Aug 2014 12:10:16 +0000 (UTC) Received: (qmail 92846 invoked by uid 500); 17 Aug 2014 12:10:14 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 92776 invoked by uid 500); 17 Aug 2014 12:10:14 -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 92766 invoked by uid 99); 17 Aug 2014 12:10:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Aug 2014 12:10:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torkale@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yh0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Aug 2014 12:10:08 +0000 Received: by mail-yh0-f44.google.com with SMTP id f73so3676651yha.3 for ; Sun, 17 Aug 2014 05:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=XWXAxvvvEnBMgESxuLpQ29GHaGt49CET78VTZ2HkiMc=; b=RrFqRiFOMOvJbY8Ps2qsHuADrXmYupwWoL/RlzqHACRzz4xMRD6aRgG65A8Dh0RP4B 3LEqjYCkkK42FhS5R52lYOb5G1YrrUrYc6buFaN1s2z3zrlcNB1kAG0rZox0hB+pttEo kkuZAAfJhOVSUHKwtLYj0sCOyKjCaOIlHmcI78FXyYL5W79D130TPtP4qmg3uHEZ+A+G NuNV5Mvo8t0Fse+ReDpZrSbiOSPNpItS7Jh1c+2giMFfQoXmeEKmcZLW2wmaIL66Dq94 MLaxj8Ep8x+OYla5saVunn1rZHWLqTgNy/SDBYqZT+spGxsH+bc4HwxiBBtfgT5s0v5I 9noQ== MIME-Version: 1.0 X-Received: by 10.236.29.7 with SMTP id h7mr43619907yha.42.1408277388030; Sun, 17 Aug 2014 05:09:48 -0700 (PDT) Received: by 10.170.45.140 with HTTP; Sun, 17 Aug 2014 05:09:47 -0700 (PDT) Date: Sun, 17 Aug 2014 15:09:47 +0300 Message-ID: Subject: Hive queries returning all NULL values. From: Tor Ivry To: user@hive.apache.org Content-Type: multipart/alternative; boundary=089e0149be927579970500d2218b X-Virus-Checked: Checked by ClamAV on apache.org --089e0149be927579970500d2218b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have a hive (0.11) table with the following create syntax: CREATE EXTERNAL TABLE events( =E2=80=A6 ) PARTITIONED BY(dt string) ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe' STORED AS INPUTFORMAT "parquet.hive.DeprecatedParquetInputFormat" OUTPUTFORMAT "parquet.hive.DeprecatedParquetOutputFormat" LOCATION '/data-events/success=E2=80=99; Query runs fine. I add hdfs partitions (containing snappy.parquet files). When I run hive > select count(*) from events where dt=3D=E2=80=9C20140815=E2=80=9D I get the correct result *Problem:* When I run hive > select * from events where dt=3D=E2=80=9C20140815=E2=80=9D limit 1; I get OK NULL NULL NULL NULL NULL NULL NULL 20140815 *The same query in Impala returns the correct values.* Any idea what could be the issue? Thanks Tor --089e0149be927579970500d2218b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi

=C2=A0

I have a hive (0.11) table with the following create syntax:

=C2=A0

CREATE EXTERNAL TABLE events(

=E2=80=A6

)

PARTITIONED BY(dt string)

=C2=A0 ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe'

=C2=A0 STORED AS

=C2=A0 =C2=A0 INPUTFORMAT "parquet.hive.DeprecatedParquetInputForma= t"

=C2=A0 =C2=A0 OUTPUTFORMAT "parquet.hive.DeprecatedParquetOutputFor= mat"

=C2=A0 =C2=A0 LOCATION '/data-events/success=E2=80=99;

=C2=A0

Query runs fine.


I=C2=A0add hdfs partitions (containing snappy.parquet files).=

=C2=A0

When I run

hive=C2=A0

> select count(*) from events where dt=3D=E2=80=9C20140815=E2=80=9D

I get the correct result

=C2=A0

Problem:

When I run=C2=A0

hive

> select * from events where dt=3D=E2=80=9C20140815=E2=80=9D limit 1;=

I get

OK

NULL=C2=A0NULL=C2=A0NULL=C2=A0NULL=C2=A0NULL=C2=A0NULL=C2=A0NULL=C2=A020= 140815

=C2=A0

The same query in Impala returns the correct values.

=C2=A0

Any idea what could be the issue?

=C2=A0

Thanks

Tor


--089e0149be927579970500d2218b--