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

Map lookup behavior is ill-defined in Java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5.1
    • None
    • java
    • None

    Description

      In Java, an Avro "map" is a Java Map. The map keys are type "string", which maps to a Java CharSequence.

      Clients must know to use Utf8 objects when calling get() or containsKey(). Instead, GenericDatumReader should instantiate a Map instance with a Comparator suitable for comparing any type of CharSequence.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gwu Garrett Wu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: