You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nifi-nar-bundles/nifi-atlas-bundle/nifi-atlas-reporting-task/src/main/java/org/apache/nifi/atlas/provenance/analyzer/Hive2JDBC.java
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
importorg.slf4j.Logger;
27
27
importorg.slf4j.LoggerFactory;
28
28
29
+
importjava.util.Collections;
29
30
importjava.util.Set;
30
31
importjava.util.regex.Matcher;
31
32
importjava.util.regex.Pattern;
@@ -61,6 +62,8 @@ public class Hive2JDBC extends AbstractHiveAnalyzer {
if (inputTables.isEmpty() && outputTables.isEmpty()) {
96
-
// If input/output tables are unknown, create database level lineage.
99
+
// If input/output tables are unknown, create hive_table entity with name 'unknown' (hive_db is not a DataSet entity and therefore it cannot be used in the lineage).
97
100
// Handle case insensitivity of database and table names in Hive: send names uniformly in lower case
Copy file name to clipboardExpand all lines: nifi-nar-bundles/nifi-atlas-bundle/nifi-atlas-reporting-task/src/test/java/org/apache/nifi/atlas/provenance/analyzer/TestHive2JDBC.java
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,11 @@ public class TestHive2JDBC {
45
45
46
46
/**
47
47
* If a provenance event does not have table name attributes,
48
-
* then a database lineage should be created.
48
+
* then a table lineage is created with table name 'unknown'.
49
+
* Database lineage cannot be sent to Atlas because hive_db is not a DataSet entity.
0 commit comments