Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2443

Python: incorrect call of AvroTypeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.10.0
    • python
    • None

    Description

      There is a bug in the Validate function for py3 validator.

      https://github.com/apache/avro/blob/master/lang/py3/avro/io.py#L149

      The `AvroTypeException` will fail (if ever reached), because the exception accepts two arguments: `expected_schema, datum`.

       

      This issue was found here: https://github.com/apache/avro/pull/516/files#r287870842 and might be as well fixed in AVRO-2413.

      Attachments

        Activity

          People

            kojiromike Michael A. Smith
            sireliah Piotr Gołąb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: