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 <[email protected]> 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 <[email protected]> (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);
