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 D60D5108A7 for ; Thu, 11 Dec 2014 19:43:15 +0000 (UTC) Received: (qmail 49845 invoked by uid 500); 11 Dec 2014 19:43:14 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 49622 invoked by uid 500); 11 Dec 2014 19:43:14 -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 49609 invoked by uid 500); 11 Dec 2014 19:43:14 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 49604 invoked by uid 99); 11 Dec 2014 19:43:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 19:43:14 +0000 Date: Thu, 11 Dec 2014 19:43:14 +0000 (UTC) From: "Chaoyu Tang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-9056) Describe Avro Table Partition Fails 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-9056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chaoyu Tang resolved HIVE-9056. ------------------------------- Resolution: Cannot Reproduce > Describe Avro Table Partition Fails > ----------------------------------- > > Key: HIVE-9056 > URL: https://issues.apache.org/jira/browse/HIVE-9056 > Project: Hive > Issue Type: Bug > Components: CLI > Affects Versions: 0.12.0, 0.13.0 > Environment: CDH5.2 > Reporter: Johndee Burks > Assignee: Chaoyu Tang > Priority: Minor > > If you describe a partition of a table that is avro then you get the schema error. > {code} > DROP TABLE IF EXISTS episodes_partitioned; > CREATE TABLE episodes_partitioned > PARTITIONED BY (doctor_pt INT) > ROW FORMAT > SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' > STORED AS > INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' > OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat' > TBLPROPERTIES ('avro.schema.literal'='{ > "namespace": "testing.hive.avro.serde", > "name": "episodes", > "type": "record", > "fields": [ > { > "name":"title", > "type":"string", > "doc":"episode title" > }, > { > "name":"air_date", > "type":"string", > "doc":"initial date" > }, > { > "name":"doctor", > "type":"int", > "doc":"main actor playing the Doctor in episode" > } > ] > }'); > ALTER TABLE episodes_partitioned ADD PARTITION (doctor_pt=4); > DESC episodes_partitioned PARTITION (doctor_pt=4); > {code} > You will get the error: > {code} > error_error_error_error_error_error_error string from deserializer > cannot_determine_schema string from deserializer > check string from deserializer > schema string from deserializer > url string from deserializer > and string from deserializer > literal string from deserializer > doctor_pt int > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)