kasakrisz commented on PR #5839:
URL: https://github.com/apache/hive/pull/5839#issuecomment-2970226780

   > @kasakrisz, @zabetak isn't it possible to find a top level table scan 
operator for a specific table based on DAG plan?
   
   @deniskuzZ 
   I'm not fully understand the functionality introduced by 
https://issues.apache.org/jira/browse/HIVE-27653 but I try to answer your 
question: All TS operators are the starting operators of a plan. There is a 
field in SemanticAnalyzer which contains all of them: 
https://github.com/apache/hive/blob/4193a6db6243bfd8a5a2a3d142bef5acdb02e389/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L364
   
   The key in the map is the alias of the table scanned by the TS. Depending on 
the query a table might be scanned by more than one TS but with different 
aliases. Shared work optimizer merges them in most cases but there are cases 
when it is not possible.


-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to