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

fix(ingestion/mssql): use platform_instance for mssql dataflow/datajob #9527

Merged
merged 8 commits into from
Jan 23, 2024

Conversation

sleeperdeep
Copy link
Contributor

remove platform_instance from name of df&dj;
add platform_instance to make_data_flow(job)_urn method;
remove dot replacing in formatted_platform_instance methods.

…name of df&dj; add platform_instance to make_data_flow(job)_urn method; remove dot replacing in formatted_platform_instance methods
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Dec 28, 2023
@@ -72,15 +72,15 @@ class MSSQLProceduresContainer:

@property
def formatted_name(self) -> str:
return f"{self.formatted_platform_instance}.{self.name.replace(',', '-')}"
return self.name.replace(',', '-')

@property
def orchestrator(self) -> str:
return self.source

@property
def formatted_platform_instance(self) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get rid of this altogether? e.g. just use .platform_instance everywhere


@property
def orchestrator(self) -> str:
return self.source

@property
def formatted_platform_instance(self) -> str:
return self.platform_instance.replace(".", "/")
return self.platform_instance
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at this in more detail, it seems like platform_instance really should be of type Optional[str] and not str as declared here

@sleeperdeep
Copy link
Contributor Author

Hi @hsheth2! Fixed.

@hsheth2 hsheth2 added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Jan 8, 2024
…ance method; declare platform_instance property as optional; update golden files
@hsheth2 hsheth2 changed the title fix(ingestion/mssql/dataflow_datajob): incorrect platform_instance filling mssql dataflow/datajob fix(ingestion/mssql): use platform_instance for mssql dataflow/datajob Jan 23, 2024
@hsheth2 hsheth2 merged commit 720296e into datahub-project:master Jan 23, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants