TAJO-1067: INSERT OVERWRITE INTO should not remove all partitions.#161
TAJO-1067: INSERT OVERWRITE INTO should not remove all partitions.#161blrunner wants to merge 18 commits intoapache:masterfrom
Conversation
…into TAJO-1067
|
I think that this feature should not depend on session variable. Session variable works implicitly. Users can miss to check if the session variable is enabled. As a result, inadvertently, a user can lost his or her entire table by I think that we should force users to manually use |
|
Hi @hyunsik I agree with your opinion. I've just removed the variable. |
There was a problem hiding this comment.
COLUMN_PARITION_REMOVE_ALL_PARTITIONS was already removed. So, you need to revise this comment line.
|
Hi @hyunsik Thank you for your detailed review. |
|
Thank you for your work. The patch looks good to me. After I hear your through about my final comments, I'll finish this review. |
…into TAJO-1067
I added new session variable for avoiding remove existing partition directories. Its name is COLUMN_PARITION_REMOVE_ALL_PARTITIONS. Its default value is false. Thus, if you run INSERT OVERWRITE statement with column partitioned table, tajo doesn't remove existing partition directories. Tajo just remove partition directories which is equals to staging directories.
And this patch has a lack that is related to TAJO-744. You left the comment for the lack at TAJO-1067.