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(ingestion/redshift): fix schema field data type mappings #9053

Conversation

siddiquebagwan-gslab
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Oct 19, 2023
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.

can you also do an audit to check if there's any other redshift data types that we might be missing here?

@@ -641,6 +644,7 @@ def gen_schema_fields(self, columns: List[RedshiftColumn]) -> List[SchemaField]:
if col.sort_key:
tags.append(TagAssociationClass(make_tag_urn(Constants.TAG_SORT_KEY)))

logger.debug(f"col.data_type = {col.data_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 not log this - will be overwhelming

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@siddiquebagwan-gslab
Copy link
Collaborator Author

can you also do an audit to check if there's any other redshift data types that we might be missing here?

Added more types and for GEOMETRY, HLLSKETCH set the type as NullType because GEOGRAPHY is set to NullType

@hsheth2 hsheth2 added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Oct 25, 2023
@hsheth2 hsheth2 changed the title fix(ingestion/redshift): incorrect SchemaFieldDataType (boolean + float) fix(ingestion/redshift): fix schema field data type mappings Oct 25, 2023
@hsheth2 hsheth2 merged commit b9508e6 into datahub-project:master Oct 25, 2023
53 of 54 checks passed
@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ ingestion PR or Issue related to the ingestion of metadata merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants