hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "caofangkun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-4735) table's lifecycle should be controlled in Hive
Date Fri, 14 Jun 2013 06:40:20 GMT

     [ https://issues.apache.org/jira/browse/HIVE-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

caofangkun updated HIVE-4735:
-----------------------------

    Description: 
Example as:
-- create table src,and set it's lifecycle as 100 days
-- alter 100 days the table will be dropped automatically
CREATE TABLE src (key string, value string) TBLPROPERTIES ('LIFECYCLE'='100d');

-- alter table src and reset it's lifecycle as 50 day
-- alter 50 days the table will be dropped automatically
ALTER TABLE src SET TBLPROPERTIES('LIFECYCLE'='50d');

-- alter specific table partition's lifecycle
-- we have DBPROPERTIES and TBLPROPERTIES , but seems we do not have 'PRTPROPERTIES'
ALTER TABLE srcpart PARTITION (dt='20130614',hr='10') SET PRTPROPERTIES('LIFECYCLE'='50d');

  was:
Example as:

CREATE TABLE src (key string, value string) TBLPROPERTIES ('LIFECYCLE'='50d');
-- alter table src and reset it's lifecycle as 50 day
-- alter 50 days the table will be dropped automatically
ALTER TABLE src SET TBLPROPERTIES('LIFECYCLE'='50d');

-- alter specific table partition's lifecycle
-- we have DBPROPERTIES and TBLPROPERTIES , but seems we do not have 'PRTPROPERTIES'
ALTER TABLE srcpart PARTITION (dt='20130614',hr='10') SET PRTPROPERTIES('LIFECYCLE'='50d');

    
> table's lifecycle should be controlled in Hive
> ----------------------------------------------
>
>                 Key: HIVE-4735
>                 URL: https://issues.apache.org/jira/browse/HIVE-4735
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: caofangkun
>            Priority: Minor
>
> Example as:
> -- create table src,and set it's lifecycle as 100 days
> -- alter 100 days the table will be dropped automatically
> CREATE TABLE src (key string, value string) TBLPROPERTIES ('LIFECYCLE'='100d');
> -- alter table src and reset it's lifecycle as 50 day
> -- alter 50 days the table will be dropped automatically
> ALTER TABLE src SET TBLPROPERTIES('LIFECYCLE'='50d');
> -- alter specific table partition's lifecycle
> -- we have DBPROPERTIES and TBLPROPERTIES , but seems we do not have 'PRTPROPERTIES'
> ALTER TABLE srcpart PARTITION (dt='20130614',hr='10') SET PRTPROPERTIES('LIFECYCLE'='50d');

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message