-
Notifications
You must be signed in to change notification settings - Fork 592
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
[CORE-3181] Schema Registry: Normalization #22519
[CORE-3181] Schema Registry: Normalization #22519
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.
looks good so far
case rapidjson::Type::kArrayType: { | ||
for (auto& v : val.GetArray()) { | ||
sort(v); | ||
} | ||
break; | ||
} |
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.
some arrays should be sorted i think. looking at draft7
"allOf": { "$ref": "#/definitions/schemaArray" },
"anyOf": { "$ref": "#/definitions/schemaArray" },
"oneOf": { "$ref": "#/definitions/schemaArray" },
"required": { "$ref": "#/definitions/stringArray" },
"enum": {
"type": "array",
"items": true,
"minItems": 1,
"uniqueItems": true
},
"type": {
"anyOf": [
{ "$ref": "#/definitions/simpleTypes" },
{
"type": "array",
"items": { "$ref": "#/definitions/simpleTypes" },
"minItems": 1,
"uniqueItems": true
}
]
},
(note that "items" should not be sorted)
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.
This'll have to wait.
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52086#0190eed2-6772-4185-b3fd-3bb763a7713b ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52086#0190eed2-6773-499f-bee7-1c759a843069 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52086#0190eed2-6770-41c7-b35f-c79a469a5ffc ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/52119#0190f09c-41ff-48c1-88e7-22bde8a3c5ce |
result_raw = self._get_schemas_ids_id(id=v1_id) | ||
assert result_raw.status_code == requests.codes.ok | ||
assert result_raw.json()['schema'] == dataset.schema_canonical | ||
|
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.
If you rebase to dev, I've added a test with a TODO for the confluent SR client for normalization that might be nice to uncomment/implement now: https://github.com/redpanda-data/redpanda/pull/22328/files
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.
This will have to wait
Specifically, accept `True` by using case-insensitive comparison. Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
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 so far
"type": "boolean" | ||
}, |
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.
nitpick: I think we're not in the habit of this generally, but can we include the default value here?
280bc06
to
fb4f5f0
Compare
Fixes CORE-5704 TODO: Add tests Signed-off-by: Ben Pope <ben@redpanda.com>
No functional changes Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
fb4f5f0
to
b0058a1
Compare
Changes in force-push
Changes in force-push
|
Signed-off-by: Ben Pope <ben@redpanda.com>
b0058a1
to
a453390
Compare
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
/backport v24.2.x |
/backport v24.1.x |
/backport v23.3.x |
Failed to create a backport PR to v23.3.x branch. I tried:
|
Failed to create a backport PR to v24.2.x branch. I tried:
|
Failed to create a backport PR to v24.1.x branch. I tried:
|
/backport v24.2.x |
TODO: Add some more tests
Backports Required
Release Notes
Features
normalize=true
Improvements