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 5BBC110A05 for ; Thu, 8 Jan 2015 21:52:35 +0000 (UTC) Received: (qmail 81028 invoked by uid 500); 8 Jan 2015 21:52:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 80904 invoked by uid 500); 8 Jan 2015 21:52:35 -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 80645 invoked by uid 500); 8 Jan 2015 21:52:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 80640 invoked by uid 99); 8 Jan 2015 21:52:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 21:52:35 +0000 Date: Thu, 8 Jan 2015 21:52:35 +0000 (UTC) From: "Thomas Friedrich (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9274) STORED BY not setting input and output formats correctly 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-9274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270096#comment-14270096 ] Thomas Friedrich commented on HIVE-9274: ---------------------------------------- Looks like this behavior has changed due to HIVE-6584. In DDLTask the input and output format classes are only persisted when explicitly specified. I wonder if the documentation in https://cwiki.apache.org/confluence/display/Hive/StorageHandlers should be updated (under open issues: "Names of helper classes such as input format and output format are saved into the metastore based on what the storage handler returns during CREATE TABLE; it would be better to leave these null in case they are changed later as part of a handler upgrade"). > STORED BY not setting input and output formats correctly > -------------------------------------------------------- > > Key: HIVE-9274 > URL: https://issues.apache.org/jira/browse/HIVE-9274 > Project: Hive > Issue Type: Bug > Affects Versions: 0.14.0 > Reporter: Thomas Friedrich > Priority: Minor > > When creating a new table using a storage handler via the STORED BY clause, for example using the HBaseStorageHandler, the input and output formats are set to null instead of the correct formats: > CREATE TABLE hbase_table_1(key int, value string) > STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' > WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val") > TBLPROPERTIES ("hbase.table.name" = "xyz"); > describe formatted hbase_table_1: > # Storage Information > SerDe Library: org.apache.hadoop.hive.hbase.HBaseSerDe > InputFormat: null > OutputFormat: null > In older Hive versions, it would set the correct formats. > Could it be related to the changes in HIVE-5976? -- This message was sent by Atlassian JIRA (v6.3.4#6332)