Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants