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 4FB1B18237 for ; Wed, 22 Jul 2015 15:31:12 +0000 (UTC) Received: (qmail 85854 invoked by uid 500); 22 Jul 2015 15:31:06 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 85827 invoked by uid 500); 22 Jul 2015 15:31:06 -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 85512 invoked by uid 99); 22 Jul 2015 15:31:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 15:31:05 +0000 Date: Wed, 22 Jul 2015 15:31:05 +0000 (UTC) From: "Gaurav Kohli (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11340) Create ORC based table using like clause doesn't copy compression property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11340?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1463= 7075#comment-14637075 ]=20 Gaurav Kohli commented on HIVE-11340: ------------------------------------- Workaround: create table orc_table_2 like orc_table tblproperties ("orc.compress"=3D"SN= APPY"); > Create ORC based table using like clause doesn't copy compression propert= y > -------------------------------------------------------------------------= - > > Key: HIVE-11340 > URL: https://issues.apache.org/jira/browse/HIVE-11340 > Project: Hive > Issue Type: Bug > Components: File Formats > Reporter: Gaurav Kohli > > I found a issue in =E2=80=9Ccreate table like=E2=80=9D clause, as it is n= ot copying the table properties from ORC File format based table. > Steps to reproduce: > Step1 : > create table orc_table ( > time string) > stored as ORC tblproperties ("orc.compress"=3D"SNAPPY"); > Step 2:=20 > create table orc_table_using_like like orc_table; > Step 3: > show create table orc_table_using_like; =20 > Result: > createtab_stmt > CREATE TABLE `orc_table_using_like`( > `time` string) > ROW FORMAT SERDE=20 > 'org.apache.hadoop.hive.ql.io.orc.OrcSerde'=20 > STORED AS INPUTFORMAT=20 > 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'=20 > OUTPUTFORMAT=20 > 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat' > LOCATION > 'hdfs://nameservice1/user/hive/warehouse/gkohli.db/orc_table_using_like= ' > TBLPROPERTIES ( > 'transient_lastDdlTime'=3D'1437578939') > Issue: 'orc.compress'=3D'SNAPPY' property is missing -- This message was sent by Atlassian JIRA (v6.3.4#6332)