Search in sources :

Example 1 with SparkAvroPostProcessor

use of org.apache.hudi.utilities.schema.SparkAvroPostProcessor in project hudi by apache.

the class TestSchemaPostProcessor method testSparkAvroSchema.

@Test
public void testSparkAvroSchema() throws IOException {
    SparkAvroPostProcessor processor = new SparkAvroPostProcessor(properties, null);
    Schema schema = new Schema.Parser().parse(ORIGINAL_SCHEMA);
    assertEquals(processor.processSchema(schema).toString(), RESULT_SCHEMA);
}
Also used : Schema(org.apache.avro.Schema) SparkAvroPostProcessor(org.apache.hudi.utilities.schema.SparkAvroPostProcessor) Test(org.junit.jupiter.api.Test)

Aggregations

Schema (org.apache.avro.Schema)1 SparkAvroPostProcessor (org.apache.hudi.utilities.schema.SparkAvroPostProcessor)1 Test (org.junit.jupiter.api.Test)1