-
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
feat(dbt): Platform instances for target platform #5129
feat(dbt): Platform instances for target platform #5129
Conversation
This reverts commit e607410.
@@ -456,11 +462,27 @@ def get_custom_properties(node: DBTNode) -> Dict[str, str]: | |||
return custom_properties | |||
|
|||
|
|||
def match_target_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.
lets call this get_entity_platform_instance
, since it may be getting a platform instance for a dbt node and not a target node
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.
done
self.config.platform_instance, | ||
match_target_platform_instance( | ||
self.config.target_platform_instance, | ||
None, |
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.
why set this as none here? let's let the logic of the method handle whether to use the dbt platform instance or not. that will make things less error prone
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.
Ok I added reference to config platform_instance here. Originally here there was a None if I recall correctly and I wanted to preserve the original logic, so that in case platform would match dbt
it would still return None as before. But if you think we should return platform instance I adjusted it to return 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.
LGTM! smoke test failures seem unrelated.
Adds 2 configuration fields
target_platform_instance
andtarget_platform_instance_mapping
to allow for setting target platform instance values.Checklist