Commit f1f828fd by Ashutosh Mestry Committed by Madhan Neethiraj

ATLAS-2372: Export without relationship attributes.

parent 7c80aba2
......@@ -442,6 +442,7 @@ public class ExportService {
return;
}
removeRelationshipAttributes(entity);
context.sink.add(entity);
context.result.incrementMeticsCounter(String.format("entity:%s", entity.getEntity().getTypeName()));
......@@ -455,6 +456,15 @@ public class ExportService {
context.reportProgress();
}
private void removeRelationshipAttributes(AtlasEntityWithExtInfo entity) {
entity.getEntity().getRelationshipAttributes().clear();
if(entity.getReferredEntities() != null) {
for (AtlasEntity e: entity.getReferredEntities().values()) {
e.getRelationshipAttributes().clear();
}
}
}
private void addTypes(AtlasEntity entity, ExportContext context) {
addEntityType(entity.getTypeName(), context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment