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

AvroTrevniOutputFormat Metadata filter subString bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.4
    • 1.7.4
    • None
    • None
    • This is a bug fix. The functionality was brocken before this fix.

    Description

      In AvroTrevniOutputFormat there seems to be a cut and post error in the metadata filtering. The result is not "trevni.meta." metadatas will successfully get to the writer.

      if (e.getKey().startsWith(META_PREFIX))
      meta.put(e.getKey().substring(AvroJob.TEXT_PREFIX.length()),
      e.getValue().getBytes(MetaData.UTF8));

      META_PREFIX = "trevni.meta."
      TEXT_PREFIX = "avro.meta.text."

      Attachments

        1. AVRO-1234.patch.1
          3 kB
          Theodore michael Malaska
        2. AVRO-1242.patch
          3 kB
          Theodore michael Malaska

        Activity

          People

            ted.m Theodore michael Malaska
            ted.m Theodore michael Malaska
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: