-
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(ingestion): adding superset ingestion source #2425
feat(ingestion): adding superset ingestion source #2425
Conversation
…tSupersetIngestion
…tSupersetIngestion
…tSupersetIngestion
…tSupersetIngestion
@@ -7,5 +8,8 @@ export function getLogoFromPlatform(platform: string) { | |||
if (platform.toLowerCase() === 'looker') { | |||
return lookerLogo; | |||
} | |||
if (platform.toLowerCase() === 'superset') { |
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.
We've got to push this from backend. Forgot about this.
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 - left a couple minor comments
test_response = self.session.get(f"{self.config.connect_uri}/api/v1/database") | ||
if test_response.status_code == 200: | ||
pass | ||
# TODO(Gabe): how should we message about this error? |
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.
maybe just do test_response.raise_for_status()
and let the caller deal with the error?
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.
Sg- I can handle that in a follow up.
f"urn:li:dataset:(" | ||
f"{platform_urn},{database_name + '.' if database_name else ''}" | ||
f"{schema_name + '.' if schema_name else ''}" | ||
f"{table_name},{self.env})" |
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.
definitely not necessary for this PR, but we have mce_builders.py which lets you do builder.make_dataset_urn(platform, name, env)
- my eventual goal is to put all the URN construction stuff there
Co-authored-by: Harshal Sheth <[email protected]>
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!
Ingests via Superset's REST API. Currently populates chart/dashboard information. Followup work
Checklist