Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65AF01075E for ; Tue, 8 Sep 2015 17:45:52 +0000 (UTC) Received: (qmail 32250 invoked by uid 500); 8 Sep 2015 17:45:46 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 32226 invoked by uid 500); 8 Sep 2015 17:45:46 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 32214 invoked by uid 99); 8 Sep 2015 17:45:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 17:45:46 +0000 Date: Tue, 8 Sep 2015 17:45:45 +0000 (UTC) From: "Chao Sun (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11696) Exception when table-level serde is Parquet while partition-level serde is JSON 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-11696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14735253#comment-14735253 ] Chao Sun commented on HIVE-11696: --------------------------------- +1 > Exception when table-level serde is Parquet while partition-level serde is JSON > ------------------------------------------------------------------------------- > > Key: HIVE-11696 > URL: https://issues.apache.org/jira/browse/HIVE-11696 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Affects Versions: 1.2.0, 2.0.0 > Reporter: Aihua Xu > Assignee: Aihua Xu > Attachments: HIVE-11696.2.patch, HIVE-11696.patch > > > Create a table with partitions and set the SerDe to be Json. The query "select * from tbl1" works fine. > Now set table level SerDe to be Parquet serde. Based on HIVE-6785, table level and partition level can have different serdes. > {noformat} > java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.UnsupportedOperationException: Cannot inspect java.util.ArrayList > at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:154) > at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1764) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:233) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:165) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376) > at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:736) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.UnsupportedOperationException: Cannot inspect java.util.ArrayList > at org.apache.hadoop.hive.ql.exec.ListSinkOperator.process(ListSinkOperator.java:93) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:812) > at org.apache.hadoop.hive.ql.exec.LimitOperator.process(LimitOperator.java:54) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:812) > at org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperator.java:88) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:812) > at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:97) > at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:425) > at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:417) > at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:140) > ... 13 more > Caused by: java.lang.UnsupportedOperationException: Cannot inspect java.util.ArrayList > at org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveArrayInspector.getList(ParquetHiveArrayInspector.java:112) > at org.apache.hadoop.hive.serde2.SerDeUtils.buildJSONString(SerDeUtils.java:310) > at org.apache.hadoop.hive.serde2.SerDeUtils.getJSONString(SerDeUtils.java:202) > at org.apache.hadoop.hive.serde2.DelimitedJSONSerDe.serializeField(DelimitedJSONSerDe.java:61) > at org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.doSerialize(LazySimpleSerDe.java:246) > at org.apache.hadoop.hive.serde2.AbstractEncodingAwareSerDe.serialize(AbstractEncodingAwareSerDe.java:55) > at org.apache.hadoop.hive.ql.exec.DefaultFetchFormatter.convert(DefaultFetchFormatter.java:71) > at org.apache.hadoop.hive.ql.exec.DefaultFetchFormatter.convert(DefaultFetchFormatter.java:40) > at org.apache.hadoop.hive.ql.exec.ListSinkOperator.process(ListSinkOperator.java:90) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)