Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6651

SchemaBuilder should not allow Arrays or Maps to be created by type()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • connect
    • None

    Description

      The following code should throw an exception because we cannot set valueSchema() or keySchema() once the builder is returned. 

      SchemaBuilder.type(Schema.Type.ARRAY);
      SchemaBuilder.type(Schema.Type.MAP);

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcustenborder Jeremy Custenborder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: