[ https://issues.apache.org/jira/browse/HIVE-22945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054351#comment-17054351 ]
Hive QA commented on HIVE-22945: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12995990/HIVE-22945.2.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 18103 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/21012/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/21012/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-21012/ 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: 12995990 - PreCommit-HIVE-Build > Hive ACID Data Corruption: Update command mess the other column data and > produces incorrect result > -------------------------------------------------------------------------------------------------- > > Key: HIVE-22945 > URL: https://issues.apache.org/jira/browse/HIVE-22945 > Project: Hive > Issue Type: Bug > Components: Hive, Transactions > Affects Versions: 3.2.0 > Reporter: Rajkumar Singh > Assignee: Denys Kuzmenko > Priority: Critical > Attachments: HIVE-22945.1.patch, HIVE-22945.2.patch > > > Hive Update Operation update the other column incorrectly and produces > incorrect results: > Steps to reproduce: > {code:java} > CREATE TABLE `test`( > `start_dt` timestamp, > `stop_dt` timestamp > ); > > INSERT INTO test (start_dt, stop_dt) SELECT CURRENT_TIMESTAMP, CAST(NULL AS > TIMESTAMP); > select * from test; > +--------------------------+---------------+ > | test.start_dt | test.stop_dt | > +--------------------------+---------------+ > | 2020-02-28 20:06:29.116 | NULL | > +--------------------------+---------------+ > UPDATE test SET STOP_DT = CURRENT_TIMESTAMP WHERE CAST(START_DT AS DATE) = > CURRENT_DATE; > +------------------------+--------------------------+ > | test.start_dt | test.stop_dt | > +------------------------+--------------------------+ > | 2020-02-28 00:00:00.0 | 2020-02-28 20:07:12.248 | > +------------------------+--------------------------+ > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)