Skip to content

APP-7132: Fixed FS search criteria used for get_by_qualified_name/guid method to include asset type_name #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions pyatlan/client/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ def get_by_qualified_name(
related_attributes and len(related_attributes)
):
search = (
FluentSearch().select().where(Asset.QUALIFIED_NAME.eq(qualified_name))
FluentSearch()
.select()
.where(Asset.QUALIFIED_NAME.eq(qualified_name))
.where(Asset.TYPE_NAME.eq(asset_type.__name__))
)
for attribute in attributes:
search = search.include_on_results(attribute)
Expand Down Expand Up @@ -509,7 +512,12 @@ def get_by_guid(
if (attributes and len(attributes)) or (
related_attributes and len(related_attributes)
):
search = FluentSearch().select().where(Asset.GUID.eq(guid))
search = (
FluentSearch()
.select()
.where(Asset.GUID.eq(guid))
.where(Asset.TYPE_NAME.eq(asset_type.__name__))
)
for attribute in attributes:
search = search.include_on_results(attribute)
for relation_attribute in related_attributes:
Expand Down
Loading