Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 47462 invoked from network); 18 Oct 2010 03:16:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 03:16:08 -0000 Received: (qmail 41773 invoked by uid 500); 18 Oct 2010 03:16:08 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 41648 invoked by uid 500); 18 Oct 2010 03:16:08 -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 41635 invoked by uid 500); 18 Oct 2010 03:16:07 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 41632 invoked by uid 99); 18 Oct 2010 03:16:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 03:16:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 03:16:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9I3Fh9I026036 for ; Mon, 18 Oct 2010 03:15:43 GMT Message-ID: <18057438.14451287371743644.JavaMail.jira@thor> Date: Sun, 17 Oct 2010 23:15:43 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1076) CreateTime is reset to 0 when a partition is overwritten In-Reply-To: <565747289.381381264029174476.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-1076: --------------------------------- Component/s: Metastore Fix Version/s: (was: 0.6.0) > CreateTime is reset to 0 when a partition is overwritten > -------------------------------------------------------- > > Key: HIVE-1076 > URL: https://issues.apache.org/jira/browse/HIVE-1076 > Project: Hadoop Hive > Issue Type: Bug > Components: Metastore > Reporter: Zheng Shao > Assignee: Paul Yang > Fix For: 0.5.0 > > Attachments: HIVE-1076.1.patch > > > Hive should keep "CreateTime" when a partition is overwritten. The "CreateTime" should be the first time the partition is created. > {code} > hive> describe extended zshao_ttp; > OK > d string > ds string > Detailed Table Information Table(tableName:zshao_ttp, dbName:default, owner:zshao, createTime:1264027720, > lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:d, type:string, comment:null)], > location:hdfs://hdfs:9000/user/hive/zshao_ttp, inputFormat:org.apache.hadoop.mapred.SequenceFileInputFormat, > outputFormat:org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat, compressed:false, numBuckets:-1, > serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters: > {serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[FieldSchema(name:ds, type:string, > comment:null)], parameters:{transient_lastDdlTime=1264027720}) > Time taken: 3.062 seconds > hive> describe extended zshao_ttp partition(ds='2010-01-01'); > OK > d string > ds string > Detailed Partition Information Partition(values:[2010-01-01], dbName:default, tableName:zshao_ttp, createTime:1264027788, > lastAccessTime:0, sd:StorageDescriptor(cols:[FieldSchema(name:d, type:string, comment:null)], location:hdfs://hdfs:9000 > /user/hive/zshao_ttp/ds=2010-01-01, inputFormat:org.apache.hadoop.mapred.SequenceFileInputFormat, > outputFormat:org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat, compressed:false, numBuckets:-1, > serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters: > {serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), parameters:{transient_lastDdlTime=1264027788}) > Time taken: 0.436 seconds > hive> insert overwrite table zshao_ttp partition (ds='2010-01-01') select d from zshao_ttp where ds = '2010-01-01'; > Total MapReduce jobs = 2 > Launching Job 1 out of 2 > Number of reduce tasks is set to 0 since there's no reduce operator > Starting Job = job_200912262300_1111, Tracking URL = http://jobtracker:50030/jobdetails.jsp?jobid=job_200912262300_1111 > Kill Command = hadoop/bin/../bin/hadoop job -Dmapred.job.tracker=jobtracker:50029 -kill job_200912262300_1111 > 2010-01-20 15:04:15,272 Stage-1 map = 0%, reduce = 0% > 2010-01-20 15:05:16,895 Stage-1 map = 0%, reduce = 0% > 2010-01-20 15:06:16,768 Stage-1 map = 100%, reduce = 0% > 2010-01-20 15:06:43,929 Stage-1 map = 100%, reduce = 100% > Ended Job = job_200912262300_1111 > Launching Job 2 out of 2 > Moving data to: hdfs://hdfs:9000/tmp/hive-zshao/262641680/10000 > Loading data to table zshao_ttp partition {ds=2010-01-01} > Moved to trash: /user/hive/zshao_ttp/ds=2010-01-01 > 2 Rows loaded to zshao_ttp > OK > Time taken: 187.049 seconds > hive> describe extended zshao_ttp partition(ds='2010-01-01'); > OK > d string > ds string > Detailed Partition Information Partition(values:[2010-01-01], dbName:default, tableName:zshao_ttp, createTime:0, > lastAccessTime:0, sd:StorageDescriptor(cols:[FieldSchema(name:d, type:string, comment:null)], location:hdfs://hdfs:9000 > /user/hive/zshao_ttp/ds=2010-01-01, inputFormat:org.apache.hadoop.mapred.SequenceFileInputFormat, > outputFormat:org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat, compressed:false, numBuckets:-1, > serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, parameters: > {serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}), parameters: > {lastQueryTime=1264028626290,archiveFlag=false,transient_lastDdlTime=1264028626}) > Time taken: 0.283 seconds > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.