MongoDB Schema inferrer doesn't use all JSON inner array items but only the first.

Description

Current MongoDB store schema inferrer implementation doesn't use all JSON inner array items for building the schema. The right behavior should be iterate all its items to catch all the attributes as possible.

See:
https://github.com/geotools/geotools/blob/37669f4e4a67e5fe1b1c4fbfd4264e88a4de5240/modules/plugin/mongodb/src/main/java/org/geotools/data/mongodb/complex/MongoComplexUtilities.java#L375

Environment

None

Status

Assignee

Fernando Miño

Reporter

Fernando Miño

Triage

None

Components

Priority

Medium
Configure