ljq-dmr opened a new pull request, #6485:
URL: https://github.com/apache/hive/pull/6485

   
   ### What changes were proposed in this pull request?
   lineage column Predicate baseCols 
   
   ### Why are the changes needed?
   The logic in ExprProcFactory#findSourceColumn resolves source columns from 
TopOps by matching table and field aliases.  If a match is found, it returns 
the result directly.  This implementation fails in scenarios involving multiple 
subqueries with identical table aliases (e.g., in a UNION statement).  Because 
the search returns the first match it encounters, it may link to the wrong 
source column from a different subquery branch, leading to incorrect lineage
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
    mvn test -Pitests -pl itests/qtest -Dtest=TestMiniLlapLocalCliDriver 
-Dqfile=lineage8.q
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to