-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: update fivetran connector with new sdk #13859
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: update fivetran connector with new sdk #13859
Conversation
@@ -134,7 +137,22 @@ def __init__( | |||
self._setdefault_aspect(job_info) | |||
self._ensure_datajob_props().flowUrn = str(flow.urn) | |||
|
|||
# Set properties if provided | |||
self._init_basic_props( |
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.
separated these to avoid mypy error (init is too complex)
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.
you can noqa: C901
@@ -103,12 +104,14 @@ def __init__( | |||
ValueError: If neither flow nor (flow_urn and platform_instance) are provided | |||
""" | |||
if flow is None: | |||
if flow_urn is None or platform_instance is None: | |||
if flow_urn is 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.
fixed bug ; platform_instance is not strictly needed
@@ -237,21 +237,6 @@ def test_datajob_init_with_flow_urn() -> None: | |||
|
|||
|
|||
def test_invalid_init() -> None: | |||
flow = DataFlow( |
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.
removed tests as we fixed bug above
flow_urn=datajob.flow_urn, | ||
platform_instance=self.config.platform_instance, | ||
name=datajob.name, | ||
) | ||
return DataProcessInstance.from_datajob( |
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.
eh this is very hacky and i don't like this solution, but seems like we need to do a lot of job with api.entities.dataprocessinstance
code to be compatible with the SDK v2. i'd rather just add DPI to SDK v2 rather than trying to make this compatible.
Bundle ReportChanges will increase total bundle size by 77 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
"ownerTypes": {}, | ||
"lastModified": { | ||
"time": 0, | ||
"actor": "urn:li:corpuser:unknown" |
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.
i'm not sure where this is coming from -- this should be corpuser:fivetran
metadata-ingestion/src/datahub/ingestion/source/fivetran/fivetran.py
Outdated
Show resolved
Hide resolved
@@ -134,7 +137,22 @@ def __init__( | |||
self._setdefault_aspect(job_info) | |||
self._ensure_datajob_props().flowUrn = str(flow.urn) | |||
|
|||
# Set properties if provided | |||
self._init_basic_props( |
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.
you can noqa: C901
Uh oh!
There was an error while loading. Please reload this page.