[ https://issues.apache.org/jira/browse/HIVE-11799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aihua Xu updated HIVE-11799: ---------------------------- Description: Execute the following query {noformat} CREATE TABLE `t1`(`pattern` array<int>); explain select * from t1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 ...; {noformat} After HIVE-11617 gets fixed, the explain output still takes forever since we are recursively printing operator info which could be an issue if the ops could have multiple children and parents, like lateral view case. Seems it's introduced with "explain logical" change. was: CREATE TABLE `t1`(`pattern` array<int>); explain select * from t1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1 lateral view explode(pattern) tbl1 as col1; > The output of explain query for multiple lateral views is huge > -------------------------------------------------------------- > > Key: HIVE-11799 > URL: https://issues.apache.org/jira/browse/HIVE-11799 > Project: Hive > Issue Type: Sub-task > Components: Hive > Affects Versions: 2.0.0 > Reporter: Aihua Xu > Assignee: Aihua Xu > Fix For: 2.0.0 > > > Execute the following query > {noformat} > CREATE TABLE `t1`(`pattern` array<int>); > > explain select * from t1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > lateral view explode(pattern) tbl1 as col1 > ...; > {noformat} > After HIVE-11617 gets fixed, the explain output still takes forever since we > are recursively printing operator info which could be an issue if the ops > could have multiple children and parents, like lateral view case. Seems it's > introduced with "explain logical" change. -- This message was sent by Atlassian JIRA (v6.3.4#6332)