use of org.apache.druid.data.input.avro.SchemaRegistryBasedAvroBytesDecoder in project druid by druid-io.
the class AvroStreamInputFormatTest method testSerdeForSchemaRegistry.
@Test
public void testSerdeForSchemaRegistry() throws IOException {
AvroStreamInputFormat inputFormat = new AvroStreamInputFormat(flattenSpec, new SchemaRegistryBasedAvroBytesDecoder("http://test:8081", 100, null, null, null, null), false, false);
NestedInputFormat inputFormat2 = jsonMapper.readValue(jsonMapper.writeValueAsString(inputFormat), NestedInputFormat.class);
Assert.assertEquals(inputFormat, inputFormat2);
}
Aggregations