[ https://issues.apache.org/jira/browse/HIVE-13112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157484#comment-15157484 ]
Harish Butani commented on HIVE-13112: -------------------------------------- The HookContext gets the Lineage from the SessionState. And AFAICT the Lineage in SessionState is only being set in the MoveTask. > Expose Lineage information in case of CTAS > ------------------------------------------ > > Key: HIVE-13112 > URL: https://issues.apache.org/jira/browse/HIVE-13112 > Project: Hive > Issue Type: Bug > Reporter: Harish Butani > > This is not happening because Lineage is being exposed by MoveTask which > checks for a LoadTableDesc. In case of CTAS the table is created after the > MoveTask. > Proposed solution is to add a flag to CreateTableDesc to track a CTAS > operation, and have the DDLTask expose the lineage if this flag is set. -- This message was sent by Atlassian JIRA (v6.3.4#6332)