Krisztian Kasa created HIVE-28768:
-------------------------------------
Summary: Remove hardcoded post exec hooks
Key: HIVE-28768
URL: https://issues.apache.org/jira/browse/HIVE-28768
Project: Hive
Issue Type: Improvement
Reporter: Krisztian Kasa
Currently lineage information collection depends on check whether specific post
exec hooks present or not.
[https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/Optimizer.java#L78-L81]
[https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L13270-L13272]
The goal is to replace these with configuration setting checks. Hive already
has a settings for this purpose:
[HIVE_LINEAGE_STATEMENT_FILTER|https://github.com/apache/hive/blob/523f7b7f0ae2951eccdf1eb08a426d0984d36e41/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L3883C5-L3888]
There is also
[HIVE_LINEAGE_INFO|https://github.com/apache/hive/blob/523f7b7f0ae2951eccdf1eb08a426d0984d36e41/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L3879-L3882]
but this one is deprecated in favor of HIVE_LINEAGE_STATEMENT_FILTER
--
This message was sent by Atlassian Jira
(v8.20.10#820010)