-
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): Glue mapping patch #2930
fix(ingest): Glue mapping patch #2930
Conversation
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.
Thanks for this patch!
"decimal": NumberTypeClass, | ||
} | ||
|
||
type_class = None | ||
if field_type in field_type_mapping.keys(): |
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.
Note: if you want to check if a key is in a dict, there's no need for .keys()
– see https://stackoverflow.com/questions/1602934/check-if-a-given-key-already-exists-in-a-dictionary
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.
Other than the nit from Kevin, this 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!
Without this fix was getting errors due to
varchar(x)
anddecimal(x, y)
types in our glue catalogChecklist