Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.3.0, 2.2.1, 2.3.1, 3.0.0
-
None
Description
JSON Convertor in Kafka Connect validates the payload against the schema provided by the user. In case there is an additional field in the payload which is not mentioned in the schema the JSON convertor does not fail and returns the value without the additional column.
e.g) message has additional column "new_col"
{
"schema": {
"type": "struct",
"fields": [
,
{ "type": "string", "optional": false, "field": "data" } ],
"optional": false,
"name": "test"
},
"payload":
}
The output of JSON convertor "Struct{type=testpayload,data=test_data}" should ideally fail assuming fail fast rather than skipping the field in the output payload.