isNewSchema() method checks if top-level schema or any of the deeper map schemas has changed. The last one doesn't work properly with count function.
"deeperSchemaChanged" equals true even when two map strings have the same children fields.
Discovered while trying to fix
Dataset test.json for reproducing (MAP<REQUIRED> datatype object):
Example of query: