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 AFDAC1813C for ; Wed, 5 Aug 2015 22:14:04 +0000 (UTC) Received: (qmail 41516 invoked by uid 500); 5 Aug 2015 22:14:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 41490 invoked by uid 500); 5 Aug 2015 22:14:04 -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 41479 invoked by uid 99); 5 Aug 2015 22:14:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 22:14:04 +0000 Date: Wed, 5 Aug 2015 22:14:04 +0000 (UTC) From: "Yongzhi Chen (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=3D1465= 9062#comment-14659062 ]=20 Yongzhi Chen commented on HIVE-11340: ------------------------------------- Fix it by adding orc.compress to schemaProps > 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 > Assignee: Yongzhi Chen > Priority: Minor > > 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)