You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ra...@apache.org on 2026/03/14 22:50:03 UTC
(atlas) 15/15: ATLAS-5043 : import-hive.sh is failing when shell entity id present during import (#360)
This is an automated email from the ASF dual-hosted git repository.
radhikakundam pushed a commit to branch atlas-2.5
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit b2180af9255305940caeba3cc073e95561216395
Author: Vinayak Marraiya <72...@users.noreply.github.com>
AuthorDate: Fri Jun 6 14:58:17 2025 +0530
ATLAS-5043 : import-hive.sh is failing when shell entity id present during import (#360)
Co-authored-by: Vinayak Marraiya <vi...@cloudera.com>
(cherry picked from commit ec502bcdc42ffd2dde2fc8794bb64f4958cc853e)
---
.../main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
index 512f0e928..e4f20554f 100755
--- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
+++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
@@ -711,7 +711,10 @@ public class HiveMetaStoreBridge {
private AtlasEntityWithExtInfo toTableEntity(AtlasEntity database, final Table hiveTable, AtlasEntityWithExtInfo table) throws AtlasHookException {
if (table == null) {
table = new AtlasEntityWithExtInfo(new AtlasEntity(HiveDataTypes.HIVE_TABLE.getName()));
+ } else if (table.getEntity().getAttribute(ATTRIBUTE_NAME) == null) {
+ table.getEntity().setAttribute(ATTRIBUTE_NAME, hiveTable.getTableName().toLowerCase());
}
+ table.getEntity().setIsIncomplete(false);
AtlasEntity tableEntity = table.getEntity();
String tableQualifiedName = getTableQualifiedName(metadataNamespace, hiveTable);