[
https://issues.apache.org/jira/browse/HIVE-14883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15546733#comment-15546733
]
Hive QA commented on HIVE-14883:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12831575/HIVE-14883.5.patch
{color:red}ERROR:{color} -1 due to no test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 10656 tests
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[acid_mapjoin]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[ctas]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_join_part_col_char]
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainuser_3]
org.apache.hive.jdbc.TestJdbcWithMiniHS2.testAddJarConstructorUnCaching
org.apache.hive.spark.client.TestSparkClient.testJobSubmission
{noformat}
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/1390/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/1390/console
Test logs:
http://ec2-204-236-174-241.us-west-1.compute.amazonaws.com/logs/PreCommit-HIVE-Build-1390/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
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: 6 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12831575 - PreCommit-HIVE-Build
> Checks for Acid operation/bucket table write are in the wrong place
> -------------------------------------------------------------------
>
> Key: HIVE-14883
> URL: https://issues.apache.org/jira/browse/HIVE-14883
> Project: Hive
> Issue Type: Bug
> Components: Query Planning, Transactions
> Affects Versions: 1.2.0
> Reporter: Eugene Koifman
> Assignee: Eugene Koifman
> Fix For: 2.2.0
>
> Attachments: HIVE-14883.2.patch, HIVE-14883.3.patch,
> HIVE-14883.4.patch, HIVE-14883.5.patch, HIVE-14883.patch
>
>
> The following code in
> in SemanticAnalyzer.getMetaData(QB qb, ReadEntity parentInput)
> {noformat}
> // Disallow INSERT INTO on bucketized tables
> boolean isAcid = AcidUtils.isAcidTable(tab);
> boolean isTableWrittenTo =
> qb.getParseInfo().isInsertIntoTable(tab.getDbName(), tab.getTableName());
> if (isTableWrittenTo &&
> tab.getNumBuckets() > 0 && !isAcid) {
> throw new SemanticException(ErrorMsg.INSERT_INTO_BUCKETIZED_TABLE.
> getMsg("Table: " + tabName));
> }
> // Disallow update and delete on non-acid tables
> if ((updating() || deleting()) && !isAcid && isTableWrittenTo) {
> //isTableWrittenTo: delete from acidTbl where a in (select id from
> nonAcidTable)
> //so only assert this if we are actually writing to this table
> // Whether we are using an acid compliant transaction manager has
> already been caught in
> // UpdateDeleteSemanticAnalyzer, so if we are updating or deleting
> and getting nonAcid
> // here, it means the table itself doesn't support it.
> throw new SemanticException(ErrorMsg.ACID_OP_ON_NONACID_TABLE,
> tabName);
> }
> {noformat}
> is done in the loop " for (String alias : tabAliases) {" which is over
> tables being read.
> Should be done in " for (String name : qbp.getClauseNamesForDest()) {" loop
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)