Copilot commented on code in PR #3861: URL: https://github.com/apache/avro/pull/3861#discussion_r3570577829
########## lang/py/avro/io.py: ########## @@ -599,6 +665,97 @@ def write_timestamp_micros_long(self, datum: datetime.datetime) -> None: # # DatumReader/Writer # +#: Environment variable overriding the maximum number of zero-byte-encoded +#: collection elements (e.g. an array of nulls) to allocate from a single decode. +MAX_COLLECTION_ITEMS_ENV = "AVRO_MAX_COLLECTION_ITEMS" Review Comment: The doc comment for `MAX_COLLECTION_ITEMS_ENV` says it overrides only the maximum number of *zero-byte* collection elements, but `_collection_limits()` uses this env var to cap both the zero-byte limit and the structural limit. Updating the comment avoids misleading users about what setting `AVRO_MAX_COLLECTION_ITEMS` will do. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
