Skip to content

Commit

Permalink
feat(ingest): migrate Cassandra source to new SDK (#12695)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Feb 24, 2025
1 parent 005a9b0 commit 8dfd8fb
Show file tree
Hide file tree
Showing 11 changed files with 1,435 additions and 1,261 deletions.
2 changes: 1 addition & 1 deletion metadata-ingestion/scripts/avro_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def from_key_aspect(cls, key_aspect: "{key_aspect_class}") -> "{class_name}":
code += f"""
@property
def {field_name(field)}(self) -> {field_type(field)}:
return self.entity_ids[{i}]
return self._entity_ids[{i}]
"""

return code
Expand Down
5 changes: 5 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/run/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
SystemMetadataTransformer,
)
from datahub.ingestion.transformer.transform_registry import transform_registry
from datahub.sdk._attribution import KnownAttribution, change_default_attribution
from datahub.telemetry import stats
from datahub.telemetry.telemetry import telemetry_instance
from datahub.utilities._custom_package_loader import model_version_name
Expand Down Expand Up @@ -410,6 +411,10 @@ def run(self) -> None:
)
)

self.exit_stack.enter_context(
change_default_attribution(KnownAttribution.INGESTION)
)

self.final_status = PipelineStatus.UNKNOWN
self._notify_reporters_on_ingestion_start()
callback = None
Expand Down
Loading

0 comments on commit 8dfd8fb

Please sign in to comment.