Skip to content
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

refactor(ingestion): Browse Paths Upgrade V2 Feast & Sagemaker #6002

Merged
Merged
Show file tree
Hide file tree
Changes from 7 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
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_feature_group_wu(
feature_group_snapshot = MLFeatureTableSnapshot(
urn=builder.make_ml_feature_table_urn("sagemaker", feature_group_name),
aspects=[
BrowsePathsClass(paths=[f"/sagemaker/{feature_group_name}"]),
BrowsePathsClass(paths=["/sagemaker"]),
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def create_common_job_snapshot(
"jobType": job_type.value,
},
),
BrowsePathsClass(paths=[f"/{job_type.value}/{name}"]),
BrowsePathsClass(paths=[f"/{job_type.value}"]),
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def get_group_wu(
},
),
OwnershipClass(owners),
BrowsePathsClass(paths=[f"/sagemaker/{group_name}"]),
BrowsePathsClass(paths=["/sagemaker"]),
],
)

Expand Down
10 changes: 2 additions & 8 deletions metadata-ingestion/src/datahub/ingestion/source/feast.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ def _get_feature_view_workunit(self, feature_view: FeatureView) -> MetadataWorkU
feature_view_snapshot = MLFeatureTableSnapshot(
urn=builder.make_ml_feature_table_urn("feast", feature_view_name),
aspects=[
BrowsePathsClass(
paths=[f"/feast/{self.feature_store.project}/{feature_view_name}"]
),
BrowsePathsClass(paths=[f"/feast/{self.feature_store.project}"]),
StatusClass(removed=False),
],
)
Expand Down Expand Up @@ -342,11 +340,7 @@ def _get_on_demand_feature_view_workunit(
on_demand_feature_view_snapshot = MLFeatureTableSnapshot(
urn=builder.make_ml_feature_table_urn("feast", on_demand_feature_view_name),
aspects=[
BrowsePathsClass(
paths=[
f"/feast/{self.feature_store.project}/{on_demand_feature_view_name}"
]
),
BrowsePathsClass(paths=[f"/feast/{self.feature_store.project}"]),
StatusClass(removed=False),
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
{
"com.linkedin.pegasus2avro.common.BrowsePaths": {
"paths": [
"/feast/feature_store/feature_store.driver_hourly_stats"
"/feast/feature_store"
]
}
},
Expand Down Expand Up @@ -286,7 +286,7 @@
{
"com.linkedin.pegasus2avro.common.BrowsePaths": {
"paths": [
"/feast/feature_store/feature_store.transformed_conv_rate"
"/feast/feature_store"
]
}
},
Expand Down