[
https://issues.apache.org/jira/browse/HIVE-21714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838308#comment-16838308
]
Zoltan Haindrich commented on HIVE-21714:
-----------------------------------------
[~asomani] the ticket is not about removing the old files; more like: about an
inconsistency. for an acid table 'a':
if insert overwrite is technically making the table empty:
{code}
insert into a values(1);
insert overwrite a select 1 limit 0;
{code}
Currenty after the above the table incorrectly retains all earlier values for
even reads in the future.
I think you might got into a misunderstanding because of the ticket's summary
is a little misleading - the solution should not be to clear the entire acid
directory; but make sure that future readers see the empty state in the future.
> INSERT OVERWRITE TABLE doesn't clean the table directory before overwriting
> with ACID table
> -------------------------------------------------------------------------------------------
>
> Key: HIVE-21714
> URL: https://issues.apache.org/jira/browse/HIVE-21714
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Reporter: Ivan Suller
> Assignee: Ivan Suller
> Priority: Major
> Attachments: HIVE-21714.1.patch, HIVE-21714.1.patch
>
>
> The issue of HIVE-18702 is present for ACID tables as well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)