ATLAS-5159: Export APIs: Exporting parent type doesn't export child type#489
Closed
UmeshPatil-1 wants to merge 4 commits intoapache:masterfrom
Closed
ATLAS-5159: Export APIs: Exporting parent type doesn't export child type#489UmeshPatil-1 wants to merge 4 commits intoapache:masterfrom
UmeshPatil-1 wants to merge 4 commits intoapache:masterfrom
Conversation
2a806d9 to
3869ffc
Compare
chaitalicod
reviewed
Dec 19, 2025
...sitory/src/main/java/org/apache/atlas/repository/impexp/StartEntityFetchByExportRequest.java
Show resolved
Hide resolved
chaitalicod
reviewed
Jan 23, 2026
Contributor
chaitalicod
left a comment
There was a problem hiding this comment.
Please update the doc with existing working scenario how it will work for eg for hive_table and same unique attribute https://1drv.ms/w/c/8e18c4b145719a2f/IQA5uOupz4B7Q5ibo_s6fwQ9AX_GGdv55cFs_35AImVvmfw?e=uzQfYV
...sitory/src/main/java/org/apache/atlas/repository/impexp/StartEntityFetchByExportRequest.java
Outdated
Show resolved
Hide resolved
d6cf4b2 to
219ee63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ATLAS-5159
What changes were proposed in this pull request?
Background:
Exporting entities of a parent type (e.g.,
Referenceable) does not export entities of its child type (e.g.,hive_table).When attempting to export using the parent type with unique attributes, no child entities were returned, leading to incomplete exports.
Root Cause:
The export logic in StartEntityFetchByExportRequest did not properly handle abstract or parent types.
Methods like getEntitiesForMatchTypeType() and getEntitiesForMatchTypeUsingUniqueAttributes() only fetched concrete types when specified, ignoring child entities.
Changes Proposed:
Behavior Clarification: hive_table with Unique Attribute
When an export request specifies a concrete type such as hive_table along with a unique attribute (for example, qualifiedName):
Impact:
How was this patch tested?