[ https://issues.apache.org/jira/browse/HIVE-27006?focusedWorklogId=844324&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-844324 ]
ASF GitHub Bot logged work on HIVE-27006: ----------------------------------------- Author: ASF GitHub Bot Created on: 08/Feb/23 11:58 Start Date: 08/Feb/23 11:58 Worklog Time Spent: 10m Work Description: sonarcloud[bot] commented on PR #4043: URL: https://github.com/apache/hive/pull/4043#issuecomment-1422479772 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=4043) [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=BUG) [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=VULNERABILITY) [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=4043&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=4043&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=4043&resolved=false&types=SECURITY_HOTSPOT) [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=CODE_SMELL) [10 Code Smells](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=4043&resolved=false&types=CODE_SMELL) [![No Coverage information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/NoCoverageInfo-16px.png 'No Coverage information')](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=4043&metric=coverage&view=list) No Coverage information [![No Duplication information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/NoDuplicationInfo-16px.png 'No Duplication information')](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=4043&metric=duplicated_lines_density&view=list) No Duplication information Issue Time Tracking ------------------- Worklog Id: (was: 844324) Remaining Estimate: 0h Time Spent: 10m > ParallelEdgeFixer inserts misconfigured operator and does not connect it in > Tez DAG > ----------------------------------------------------------------------------------- > > Key: HIVE-27006 > URL: https://issues.apache.org/jira/browse/HIVE-27006 > Project: Hive > Issue Type: Bug > Affects Versions: 4.0.0-alpha-2 > Reporter: Seonggon Namgung > Assignee: Seonggon Namgung > Priority: Major > Attachments: after.PEF.png, tez-dag.png > > Time Spent: 10m > Remaining Estimate: 0h > > Hive fails to run the below query on 1TB ORC formatted TPC-DS dataset because > of runtime error happens in one Operator. > I found that the problematic operator is inserted by ParallelEdgeFixer. > Also I observed that the corresponding vertex has no descendant vertex > although its ReduceSinkOperator has a SemiJoin edge connected to > TableScanOperator. > (I attached the figure of Tez DAG and OperatorGraph. One can check that > Cluster6 and Cluster7 are connected while Reducer4 and Map7 are not.) > > Query > {code:java} > set hive.optimize.shared.work=true; > set hive.optimize.shared.work.parallel.edge.support=true; > with > inv00 as (select inv_item_sk, inv_warehouse_sk from inventory, date_dim > where inv_date_sk = d_date_sk and d_year = 2000), > inv01 as (select inv_item_sk, inv_warehouse_sk from inventory, date_dim > where inv_date_sk = d_date_sk and d_year = 2001), > inv02 as (select inv_item_sk, inv_warehouse_sk from inventory, date_dim > where inv_date_sk = d_date_sk and d_year = 2002), > sd00 as (select inv_item_sk id, w_zip zip from inv00 full outer join > warehouse on inv_warehouse_sk = w_warehouse_sk where w_state = 'SD'), > sd01 as (select inv_item_sk id, w_zip zip from inv01 full outer join > warehouse on inv_warehouse_sk = w_warehouse_sk where w_state = 'SD'), > sd02 as (select inv_item_sk id, w_zip zip from inv02 full outer join > warehouse on inv_warehouse_sk = w_warehouse_sk where w_state = 'SD') > select * from sd00, sd01, sd02 where sd00.id = sd01.id and sd00.id = sd02.id; > {code} > > Error message > {code:java} > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime > Error while processing row > at > org.apache.hadoop.hive.ql.exec.tez.ReduceRecordSource$GroupIterator.next(ReduceRecordSource.java:385) > at > org.apache.hadoop.hive.ql.exec.tez.ReduceRecordSource.pushRecord(ReduceRecordSource.java:301) > ... 18 more > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.RuntimeException: cannot find field _col0 from [] > at > org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.process(ReduceSinkOperator.java:384) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:888) > at > org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperator.java:94) > at > org.apache.hadoop.hive.ql.exec.tez.ReduceRecordSource$GroupIterator.next(ReduceRecordSource.java:370) > ... 19 more > Caused by: java.lang.RuntimeException: cannot find field _col0 from [] > at > org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:550) > at > org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:153) > at > org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:56) > at > org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:1073) > at > org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:1099) > at > org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.process(ReduceSinkOperator.java:305) > ... 22 more {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)