[
https://issues.apache.org/jira/browse/HIVE-11319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653364#comment-14653364
]
Hive QA commented on HIVE-11319:
--------------------------------
{color:red}Overall{color}: -1 at least one tests failed
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12748529/HIVE-11319.2.patch
{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 9320 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_convert_enum_to_string
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_dynamic_rdd_cache
{noformat}
Test results:
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/4814/testReport
Console output:
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/4814/console
Test logs:
http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-4814/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12748529 - PreCommit-HIVE-TRUNK-Build
> CTAS with location qualifier overwrites directories
> ---------------------------------------------------
>
> Key: HIVE-11319
> URL: https://issues.apache.org/jira/browse/HIVE-11319
> Project: Hive
> Issue Type: Bug
> Components: Parser
> Affects Versions: 0.14.0, 1.0.0, 1.2.0
> Reporter: Yongzhi Chen
> Assignee: Yongzhi Chen
> Attachments: HIVE-11319.1.patch, HIVE-11319.2.patch
>
>
> CTAS with location clause acts as an insert overwrite. This can cause
> problems when there sub directories with in a directory.
> This cause some users accidentally wipe out directories with very important
> data. We should ban CTAS with location to a non-empty directory.
> Reproduce:
> create table ctas1
> location '/Users/ychen/tmp'
> as
> select * from jsmall limit 10;
> create table ctas2
> location '/Users/ychen/tmp'
> as
> select * from jsmall limit 5;
> Both creates will succeed. But value in table ctas1 will be replaced by ctas2
> accidentally.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)