This is an automated email from the ASF dual-hosted git repository. mandarambawane pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new ec502bcdc ATLAS-5043 : import-hive.sh is failing when shell entity id present during import (#360) ec502bcdc is described below commit ec502bcdc42ffd2dde2fc8794bb64f4958cc853e Author: Vinayak Marraiya <72193307+vinayakmarraiya230...@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 <vinayak.marra...@cloudera.com> --- .../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 49c721c18..cfce59f2e 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);