[
https://issues.apache.org/jira/browse/HIVE-21831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858205#comment-16858205
]
Hive QA commented on HIVE-21831:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12971057/HIVE-21831.02.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 16080 tests
executed
*Failed tests:*
{noformat}
org.apache.hive.spark.client.rpc.TestRpc.testExtendClientTimeout (batchId=342)
{noformat}
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/17459/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/17459/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-17459/
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
Tests exited with: TestsFailedException: 1 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12971057 - PreCommit-HIVE-Build
> Stats should be reset correctly during load of a partitioned ACID table
> -----------------------------------------------------------------------
>
> Key: HIVE-21831
> URL: https://issues.apache.org/jira/browse/HIVE-21831
> Project: Hive
> Issue Type: Bug
> Components: Hive, Import/Export
> Affects Versions: 3.0.0, 3.1.0, 3.1.1
> Reporter: David Lavati
> Assignee: David Lavati
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-21831.01.patch, HIVE-21831.02.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> While running something similar to the following example, I noticed that an
> import of a partitioned ACID table using the ORC format fails to provide
> table statistics:
> {code:java}
> set hive.stats.autogather=true;
> set hive.stats.column.autogather=true;
> set hive.fetch.task.conversion=none;
> set hive.support.concurrency=true;
> set hive.default.fileformat.managed=ORC;
> set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
> create transactional table int_src (foo int, bar int);
> insert into int_src select 1,1;
> create transactional table int_exp(foo int) partitioned by (bar int);
> insert into int_exp select * from int_src;
> select count(*) from int_exp;
> create transactional table int_imp(foo int) partitioned by (bar int);
> EXPORT TABLE int_exp to '/tmp/expint';
> IMPORT TABLE int_imp FROM '/tmp/expint';
> select count(*) FROM int_imp;
> {code}
> The count returned 0 (opposed to 1, but even for 100k order of records it was
> 0) and correct statistics were only available after running compute
> statistics.
>
> This was unique to ACID + partitioning + ORC, but this isn't the expected
> behavior.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)