awslabs / awslabs/schema-manager
Unexpected Schema Change
- Dominant language
- Java
- Stars
- 23
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
A schema was committed to our repository with the following doc string:
```json
{
"name": "name",
"type": "string",
"doc": "Represents the span name. A description of the span's operation."
},
```
The string contains a single quote character. Once the avro is processed by schema manager and uploaded to the registry the quote is missing:
```
{\"name\":\"name\",\"type\":\"string\",\"doc\":\"Represents the span name. A description of the spans operation.\"}
```
This is problematic for our client because schema registry does not view these as the same schema. When attempting to consume/produce our clients will first check that an expected schema is in the registry. This check is accomplished using the `POST /subjects/` API in schema registry https://docs.confluent.io/platform/current/schema-registry/develop/api.html#post--subjects-(string-%20subject) When posting the avro with single quote to registry we get back a 40403 status.
We have temporarily worked around the issue by just removing the single quote. However, we need to better understand if this is expected? Or can the schema manager be updated to allow single quotes in avros?
Contributor guide
Assessment
This issue has not been assessed yet.