[ https://issues.apache.org/jira/browse/HIVE-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668279#comment-13668279 ]
Hudson commented on HIVE-4572: ------------------------------ Integrated in Hive-trunk-h0.21 #2121 (See [https://builds.apache.org/job/Hive-trunk-h0.21/2121/]) HIVE-4572 ColumnPruner cannot preserve RS key columns corresponding to un-selected join keys in columnExprMap (Yin Huai via Navis) (Revision 1486722) Result = FAILURE navis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1486722 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcFactory.java * /hive/trunk/ql/src/test/results/compiler/plan/join1.q.xml * /hive/trunk/ql/src/test/results/compiler/plan/join3.q.xml > ColumnPruner cannot preserve RS key columns corresponding to un-selected join > keys in columnExprMap > --------------------------------------------------------------------------------------------------- > > Key: HIVE-4572 > URL: https://issues.apache.org/jira/browse/HIVE-4572 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Yin Huai > Assignee: Yin Huai > Fix For: 0.12.0 > > Attachments: HIVE-4572.1.patch.txt, HIVE-4572.2.patch.txt, > HIVE-4572.D10941.1.patch, HIVE-4572.D10941.2.patch, HIVE-4572.replay.patch > > > For a RS of a join operator, if the join key corresponding to this RS does > not appear in the SELECT clause, ColumnPruner will drop the entry of this > column in colExprMap. > Example: > {code} > SELECT x.key FROM src1 x JOIN src y ON (x.key = y.key); > {\code} > Before CP, > {code} > colExprMap of RS corresponding to x: {VALUE._col3=Column[INPUT__FILE__NAME], > VALUE._col2=Column[BLOCK__OFFSET__INSIDE__FILE], VALUE._col1=Column[value], > VALUE._col0=Column[key]}; > colExprMap of RS corresponding to y: {VALUE._col3=Column[INPUT__FILE__NAME], > VALUE._col2=Column[BLOCK__OFFSET__INSIDE__FILE], VALUE._col1=Column[value], > VALUE._col0=Column[key]}. > {\code} > After CP, > {code} > colExprMap of RS corresponding to x: {VALUE._col0=Column[key]}; > colExprMap of RS corresponding to y: {}. > {\code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira