VinayakMarraiya230920 commented on code in PR #360:
URL: https://github.com/apache/atlas/pull/360#discussion_r2110986843
##########
addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java:
##########
@@ -711,6 +711,9 @@ private AtlasEntityWithExtInfo toTableEntity(AtlasEntity
database, Table hiveTab
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);
Review Comment:
You're right — thanks for pointing that out. I've updated the code so that
isIncomplete is now set to false for all imported tables, not just the ones
missing the attribute. The call to setIsIncomplete(false) has been moved
outside the if/else block to ensure it's always applied.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]