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

Dynamodb kafka connector sanitise invalid field names #9

Conversation

TPRobots
Copy link
Contributor

@TPRobots TPRobots commented May 4, 2021

Pull request opened by github-pullrequestcreator.

Avro is [quite restrictive in what characters are allowed when defining a field](https://avro.apache.org/docs/current/spec.html#names) but DynamoDB [would happily allow characters](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html) like `- (dash)` or `. (dot)`.

We updated the connectors code so that field names are sanitised so that they match Avro's field naming convention by replacing any invalid characters with `_ (underscore)`.

https://trello.com/c/Dhv4FIod/1198-dynamodb-kafka-connector-sanitise-invalid-field-names
@emilio-larrambebere-TP emilio-larrambebere-TP force-pushed the dynamodb-kafka-connector-sanitise-invalid-field-names branch from c089a0d to 4940e8f Compare May 5, 2021 20:27
@emilio-larrambebere-TP emilio-larrambebere-TP merged commit a1e993b into master May 12, 2021
@emilio-larrambebere-TP emilio-larrambebere-TP deleted the dynamodb-kafka-connector-sanitise-invalid-field-names branch May 12, 2021 11:30
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