[ https://issues.apache.org/jira/browse/HIVE-22507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16977751#comment-16977751 ]
Hive QA commented on HIVE-22507: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12986213/HIVE-22507.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 17707 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sysdb_schq] (batchId=177) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/19497/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/19497/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-19497/ 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: 12986213 - PreCommit-HIVE-Build > KeyWrapper comparator create field comparator instances at every comparison > ---------------------------------------------------------------------------- > > Key: HIVE-22507 > URL: https://issues.apache.org/jira/browse/HIVE-22507 > Project: Hive > Issue Type: Bug > Components: Physical Optimizer > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Fix For: 4.0.0 > > Attachments: HIVE-22507.1.patch > > > TopNKeyOperator.KeyWrapperComparator uses separate comparators for each field > of the keys. Every time when TopNKeyOperator.KeyWrapperComparator.compare is > called a new instance of the field operators are created. > The field comparators should be created prior any comparison. Probably in the > constructor of KeyWrapperComparator or during initializeOp. > https://github.com/apache/hive/blob/fc81b8909b1a0e6aa15900387a98bccf38ae2247/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorUtils.java#L964 > -- This message was sent by Atlassian Jira (v8.3.4#803005)