TAJO-1345: Implement logical plan part and DDL executor for alter partition.#618
TAJO-1345: Implement logical plan part and DDL executor for alter partition.#618blrunner wants to merge 28 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
Sorry. it's very trivial, but this line seems unnecessary.
|
Hi @blrunner, thank you for the patch. I left trivial comments only. In addition to them, I have one more comment. |
|
Hi @jihoonson Thanks for your detailed review. I updated the patch using your comments a few days ago. |
|
Hi @jihoonson I have updated the patch as following:
Could you review the patch again? |
|
@blrunner thanks for your nice work. I totally agree on that we follow Hive's partition policy. As you can see, the actual values of the partition key |
|
This problem looks not to be related to this patch. I'll finish my review soon. |
|
@blrunner, I have some more comments as follows.
|
|
Thanks @hyunsik . |
|
Thanks @jihoonson and @hyunsik. |
There was a problem hiding this comment.
The imports in this source code are unused. Please remove them. I know that this is not related to your changes.
|
In overall, the patch looks good to me. I leaved few comments. |
|
Thank you for your detailed review. |
There was a problem hiding this comment.
This message means that the table of tableName does not have the partitionKey column.
It would be better to print the partitionKey column is not the partition key of the tableName table.
|
It seems that there is another problem. That is, given a partitioned table, As you can see in the above, the partition of (n_regionkey=1,n_nationkey=2) exists after creating the partition table. In addition, when I run the following |
|
Hi @jihoonson Thank you for your detailed test. I also think that it looks like a problem. But currently, when creating partitions using DDL, tajo just make partitioned directories and doesn't add partitions to catalog. But when executing alter table add partition, this statement just check partitions from catalog. Thus it doesn't know partitions which are generated by DDL. This issue would be resolved automatically at TAJO-1346. |
|
Ok. But the last query is failed even though the location is different. |
|
Catalog check the identity of partition using the name of partition instead of location. In above case, the name of partition is |
|
Sorry @jihoonson I misunderstood the question and will add the exception for this case. :-) |
|
I added the exception for above case. |
|
@blrunner thanks for update. As you can see in this example, the partition of (n_regionkey=1, n_nationkey=2) exists, but dropping it is failed. The fundamental problem seems that partition information is not maintained by catalog. I believe that this will be resolved in https://issues.apache.org/jira/browse/TAJO-1346, and thus the above problem will be resolved, too. |
|
Hi @jihoonson Thanks for your review of great depth. |
See the title. The main objective of this issue is to implement the logical planning part and the DDL executor part for alter table partition support.