You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Jaehwa Jung (JIRA)" <ji...@apache.org> on 2014/12/18 05:39:13 UTC

[jira] [Commented] (TAJO-744) (Umbrella) ALTER TABLE ADD/DROP PARTITION statement

    [ https://issues.apache.org/jira/browse/TAJO-744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251164#comment-14251164 ] 

Jaehwa Jung commented on TAJO-744:
----------------------------------

Hi [~hyunsik] and [~alvinhenrick]

I think this issue is a big feature. And we need to implement more sub tasks such as catalog implementation, update physical operator, query optimizer. So, I changed this issue to umbrella issue. And I'll add more sub tasks continuously. Please feel free to add your opinion. :)

Cheers
Jaehwa

> (Umbrella) ALTER TABLE ADD/DROP PARTITION statement
> ---------------------------------------------------
>
>                 Key: TAJO-744
>                 URL: https://issues.apache.org/jira/browse/TAJO-744
>             Project: Tajo
>          Issue Type: New Feature
>          Components: catalog
>            Reporter: Hyunsik Choi
>            Assignee: Jaehwa Jung
>         Attachments: TAJO-744.Henrick-140423.01.patch.txt
>
>
> Currently, Tajo does not manage partitioned directly. In Tajo, each partition is just a directory. For each query, a logical planner traverses matched directories in HDFS according to partition predicates.
> This approach is not efficient especially in the environment where the number of partitions are very large. It also makes partition management hard.
> Tajo should manage partitions directly by using ALTER TABLE ADD/DROP PARTITION statements. A number of partition entries should be stored in the underlying database that catalog uses.
> {code:title=Synopsis of ALTER TABLE ADD/DROP PARTITION}
> ALTER TABLE table_name [IF NOT EXISTS] ADD COLUMN PARTITION (key1 = 'val2', key2 = 'val2', ...) WITH ('prop_key' = 'prop_val', ...) LOCATION '...';
> ALTER TABLE table_name [IF EXISTS] DROP COLUMN PARTITION  (key1 [=|<|<=|>|>=|!=] 'val1', key2 ...,);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)