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

Ruby schema.single_object_schema_fingerprint is reversed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0, 1.10.1
    • ruby
    • None

    Description

      The Ruby schema.single_object_schema_fingerprint method (originally added in this PR) seems to return an incorrect fingerprint, which is reversed from what the Java implementation returns.

      I believe that the cause is the unnecessary reverse array traversal order on this line during the bit masking + shifting operation for converting the fingerprint into a little endian byte array.

      I'll also drop a comment in the original PR that implements this Ruby functionality and see if there's more to the story.

      Attachments

        Issue Links

          Activity

            People

              yptzen Paul Tzen
              yptzen Paul Tzen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: