-
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
fix(ingest): patch lookml types and refactor ingestion sources layout #2950
Conversation
metadata-ingestion/setup.py
Outdated
"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", |
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.
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, |
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.
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) |
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.
let's make sure this is comprehensive
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
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
Checklist