TAJO-1644: When inserting empty data into a partitioned table, existing data would be removed.#601
TAJO-1644: When inserting empty data into a partitioned table, existing data would be removed.#601blrunner wants to merge 16 commits intoapache:masterfrom
Conversation
…ng data would be removed.
There was a problem hiding this comment.
It would be better if you rename verifyMaintainExistingData to verifyKeptExistingData.
|
Thanks @hyunsik I've just updated the patch using your comments. :) |
|
Hi @blrunner, Thank you for your work. How about the insert overwrite behavior for not partitioned table? Does that the same semantic? |
|
Hi @hyunsik Thank you for your review. I also agree with you. But when inserting empty data into a non partitioned table in hive, existing data would be removed always. I'm a bit anxious about user's confusion between hive and tajo. |
There was a problem hiding this comment.
How about TABLE_PARTITION_NO_RESULT_OVERWRITE_ENABLED for the config name? It seems to be more intuitive for me.
|
Thank you for your detailed review. |
…into TAJO-1644 Conflicts: tajo-core/src/test/resources/results/TestTajoCli/testHelpSessionVars.result
There was a problem hiding this comment.
I have one more suggestion. It would be great if you use PARTITION instead of TABLE_PARTITION. It is still clear because we only use the term 'partition' to indicate table partition.
|
+1 |
…into TAJO-1644 Conflicts: tajo-core/src/test/java/org/apache/tajo/engine/query/TestTablePartitions.java
…into TAJO-1644
…into TAJO-1644
When inserting empty data into a partitioned table, existing data would be removed. Tajo provides column value partition which is hive-style partition. In hive, when inserting empty data into a partition, there are two cases. If you use dynamic partitions, existing data never would be removed. But if you don't use dynamic partitions, existing data would be removed. When inserting a data to partition, tajo user don't specify each column and each column value. So, it is similar to dynamic partition of hive. It seems to update deletion logic of partitioned table.