-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(ingestion/mssql): use platform_instance for mssql dataflow/datajob #9527
Conversation
…name of df&dj; add platform_instance to make_data_flow(job)_urn method; remove dot replacing in formatted_platform_instance methods
@@ -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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
…ance method; declare platform_instance property as optional
…eep/datahub into feature/fix_mssql_df_dj
Hi @hsheth2! Fixed. |
…ance method; declare platform_instance property as optional; update golden files
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.