Whole file

fastavro/fastavro

The author described this change as fix issue with json decoding of complex types within maps. It counts as a record because the check below fails on the code as it stood at f320e5a15 and passes on 02feaa1c9, with nothing else changed between the two runs.

Fix saved2021-12-22
Sharing licenceMIT · LICENSE
Change size+2 1

What the code was meant to do, written into the code itself as a save note

fix issue with json decoding of complex types within maps

The change

6969 if self._key not in self._current:
7070 self._current = symbol.get_default()
7171 else:
72- self._current = self._current.pop(self._key)
72+ # self._current = self._current.pop(self._key)
73+ self._current = self._current[self._key]
7374
7475 def _pop(self):
7576 self._current, self._key = self._stack.pop()

The check that tells the two apart

failpass·tests/test_json.py::test_map_of_union_of_array_and_map

Check file tests/test_json.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itf320e5a1560427e61d404797a170cd9296749c68
Broken version dated2021-12-22
Modulefastavro.io.json_decoder
Units changedAvroJSONDecoder
Fingerprint4ff8a51f86d93853
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in fastavro/fastavro