-
Notifications
You must be signed in to change notification settings - Fork 1k
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
JSON_SR Schemas Incorrectly Considered Incompatible in CREATE STREAM #5798
Comments
Thanks for reporting this @dlfaraujo - I'm going to change the name of this ticket and clarify the bug a little bit to cover this general class of bugs. I think it will require changes in schema registry to resolve these bugs. |
FYI, it's best to generate schemas with |
@rayokota - thanks for the tip. I'm not sure I understand though, wouldn't |
Yes, the latter case. See confluentinc/schema-registry#1529 |
When ksqlDB uses a topic that has a schema already registered in schema registry, it ensures that the schema is compatible with the one that ksqlDB generates given the generated sql code. To test compatibility, it uses the schema registry's
testCompatibility
method. ForJSON_SR
(AVRO
as well, but there are other factors in play that make it not an issue) case changes cause compatibility issues (see this comment: #5801 (comment)) especially with regards to case sensitivity.Additionally, there are many properties that are not convertible to SQL schemas:
additionalProperties
$id
Changing our schema to include additional properties for the serde might be possible, but it seems that
testCompatibility
should not fail if missing the above properties.Original Ticket:
When using a JSON Schema with
"additionalProperties": true
and trying to CREATE STREAM from a topic with that schema it returns the errorCould not register schema for topic.
. The exact same schema but with"additionalProperties": false
works fine.flight.json.zip
The text was updated successfully, but these errors were encountered: