[KAFKA-349] Schema inference fails with an Array containing nested Structs Created: 24/Jan/23  Updated: 28/Oct/23  Resolved: 25/Jan/23

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.1

Type: Bug Priority: Unknown
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to KAFKA-343 Improve schema inference for document... Closed
Case:

 Description   

Should be able to infer the following document and not mark it as a String type.

{nested: [
   {a: 1, b: true, c: {a: 1, b: true, c: 'foo'}}, 
   {b: false, d: 4, e: 5, c: {a: 2, b: true, d: 9, e: 1}}
]}



 Comments   
Comment by Githook User [ 25/Jan/23 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Fix schema inference (#129)

Fix nested structs recursion.
Ensure tests recurse correctly when evaluating schemas.
Added debug schema helper for comparing and visualizing schemas.

KAFKA-349
Branch: master
https://github.com/mongodb/mongo-kafka/commit/e47c652ae4859878c41794e9d4e24feee4cdc184

Generated at Thu Feb 08 09:06:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.