Skip to content
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(ingest): patch lookml types and refactor ingestion sources layout #2950

Merged
merged 6 commits into from
Jul 26, 2021

Conversation

kevinhu
Copy link
Contributor

@kevinhu kevinhu commented Jul 23, 2021

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@kevinhu kevinhu marked this pull request as ready for review July 23, 2021 22:13
"mssql = datahub.ingestion.source.mssql:SQLServerSource",
"mysql = datahub.ingestion.source.mysql:MySQLSource",
"mssql = datahub.ingestion.source.sql.mssql:SQLServerSource",
"mysql = datahub.ingestion.source.sql.mysql:MySQLSource",
"oracle = datahub.ingestion.source.oracle:OracleSource",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like you missed hive, oracle, and the generic sqlalchemy source

@@ -478,6 +483,8 @@ def _get_upstream_lineage(self, looker_view: LookerView) -> UpstreamLineage:

def _get_field_type(self, native_type: str) -> SchemaFieldDataType:
field_type_mapping = {
**POSTGRES_TYPES_MAP,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to move this up to the top-level of the file (only initialize the dict once + allows dynamic modification if needed)

if native_type in field_type_mapping:
type_class = field_type_mapping[native_type]
else:
type_class = field_type_mapping.get(native_type)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make sure this is comprehensive

Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shirshanka shirshanka merged commit 662017e into datahub-project:master Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants