Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-2777

Add support for GenericFixed to AzureBlobAvroWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Add support for avro type GenericFixed to AzureBlobAvroWriter.write(). This will allow the caller to provide both Schema and an encoded message when sending messages to the SystemProducer. This types avoids the message encoding required by IndexedRecord and still provides the Schema to the writer instance.

      The existing AzureBlobAvroWriter allows either an IndexedRecord or a byte[], but requires that the first message is always an IndexedRecord. The existing writer uses the first message to "set" the Schema, }}subsequent messages can be {{{}byte[]s. This requires the sender be aware of the writer's internal state and how it's state is changed by flush() and close(). The writer can use the GenericFixed to "set" the Schema since the Schema is provided by the common parent type GenericContainer

       

      Avro reference:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              atoomula Aditya Toomula
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m