hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-23442) ACID major compaction doesn't read base directory correctly if it was written by insert overwrite
Date Tue, 12 May 2020 11:37:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-23442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105338#comment-17105338
] 

Hive QA commented on HIVE-23442:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/13002691/HIVE-23442.2.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 17266 tests passed

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/22282/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/22282/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-22282/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 13002691 - PreCommit-HIVE-Build

> ACID major compaction doesn't read base directory correctly if it was written by insert
overwrite
> -------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-23442
>                 URL: https://issues.apache.org/jira/browse/HIVE-23442
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Marta Kuczora
>            Assignee: Marta Kuczora
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-23442.1.patch, HIVE-23442.2.patch
>
>
> Steps to reproduce:
> {noformat}
> SET hive.acid.direct.insert.enabled=true;
> CREATE EXTERNAL TABLE test_comp_txt(a int, b int, c int) STORED AS TEXTFILE;
> INSERT INTO test_comp_txt values (1, 1, 1), (2, 2, 2), (3, 3, 3), (4, 4, 4);
> CREATE TABLE test_comp(a int, b int, c int) STORED AS ORC TBLPROPERTIES('transactional'='true');
> INSERT OVERWRITE TABLE test_comp SELECT * FROM test_comp_txt;
> UPDATE test_comp SET b=55, c=66 WHERE a=2;
> DELETE FROM test_comp WHERE a=4;
> UPDATE test_comp SET b=77 WHERE a=1;
> SELECT * FROM test_comp;
> 3	3	3
> 2	55	66
> 1	77	1
> ALTER TABLE test_comp COMPACT 'MAJOR';
> SELECT * FROM test_comp;
> 2	55	66
> 1	77	1
> {noformat}
> This issue only occurs if the base directory was created with an insert overwrite command
and the hive.acid.direct.insert.enabled parameter was true. This issue doesn't affect the
query based compaction.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message