[
https://issues.apache.org/jira/browse/TAJO-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270499#comment-14270499
]
ASF GitHub Bot commented on TAJO-1260:
--------------------------------------
Github user hyunsik commented on the pull request:
https://github.com/apache/tajo/pull/335#issuecomment-69288694
+1
The patch looks good to me.
BTW, you need to consider inequality expression in DROP PARTITION. But, the
current patch is good starting point. We can improve it later in another jira.
```sql
ALTER TABLE table_name [IF EXISTS] DROP PARTITION (key1 [=|<|<=|>|>=|!=]
'val1', key2 ...,);
```
> Add ALTER TABLE ADD/DROP PARTITION statement to parser
> ------------------------------------------------------
>
> Key: TAJO-1260
> URL: https://issues.apache.org/jira/browse/TAJO-1260
> Project: Tajo
> Issue Type: Sub-task
> Components: parser
> Reporter: Jaehwa Jung
> Assignee: Jaehwa Jung
>
> I plan to implement ALTER TABLE ADD/DROP PARTITION statement stage by stage.
> For the first time, I'll add the statement to parser.
> {code:title=Syntax|borderStyle=solid}
> ALTER TABLE table_name [IF NOT EXISTS] ADD PARTITION (key1 = 'val2', key2 =
> 'val2', ...) [LOCATION 'partition_path_of_directory'];
> ALTER TABLE table_name [IF NOT EXISTS] DROP PARTITION (key1 = 'val2', key2 =
> 'val2', ...)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)