-
Notifications
You must be signed in to change notification settings - Fork 970
Fix: Corrected position of arguments in _par #2037
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: Corrected position of arguments in _par #2037
Conversation
Congratulations on your first Pull Request and welcome to Amundsen community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/amundsen-io/amundsen/blob/main/CONTRIBUTING.md) |
…obustness Signed-off-by: Jovi Loo <[email protected]>
561e34c
to
9adb61f
Compare
@@ -1958,8 +1958,8 @@ def _get_edge_type_from_user_resource_rel_type(self, relation: UserResourceRel) | |||
|
|||
raise NotImplementedError(f"Don't know how to handle UserResourceRel={relation}") | |||
|
|||
def _parse_lineage(self, resource_type: ResourceType, type_: str, upstream_tables: List[LineageItem], path: Path, | |||
downstream_tables: List[LineageItem]) -> Tuple[List[LineageItem], List[LineageItem]]: | |||
def _parse_lineage(self, resource_type: ResourceType, type_: str, upstream_tables: List[LineageItem], |
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.
what is the main reason of the argument swap?
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.
Previously, parse_lineage
function accepted arguments in the wrong order as it was called on line 2038. There are two possible fixes for this:
- Align the order of the arguments in
parse_lineage
and line 2038. - Add kwargs
Technically, either one of the above fixes would work but I have included both.
Signed-off-by: Jovi Loo <[email protected]>
Awesome work, congrats on your first merged pull request! |
Summary of Changes
path
anddownstream_tables
arguments in_parse_lineage
function.Tests
Test suites not relevant for this bug fix, but changes have been tested internally with Neptune server.
Documentation
No documentation to add as there is no change in behavior.
CheckList
Make sure you have checked all steps below to ensure a timely review.