java.lang.IncompatibleClassChangeError: class org.apache.avro.LogicalTypes$Decimal has interface org.apache.avro.LogicalType as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at
java.net.
URLClassLoader.defineClass(
URLClassLoader.java:
468)
at
java.net.
URLClassLoader.access$100(
URLClassLoader.java:
74)
at
java.net.
URLClassLoader$1.run(
URLClassLoader.java:
369)
at
java.net.
URLClassLoader$1.run(
URLClassLoader.java:
363)
at java.security.AccessController.doPrivileged(Native Method)
at
java.net.
URLClassLoader.findClass(
URLClassLoader.java:
362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:180)
at org.apache.parquet.avro.AvroSchemaConverter.convertUnion(AvroSchemaConverter.java:214)
at org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:171)
at org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:130)
at org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:227)
at org.apache.parquet.avro.AvroSchemaConverter.convertFields(AvroSchemaConverter.java:124)
at org.apache.parquet.avro.AvroSchemaConverter.convert(AvroSchemaConverter.java:115)
at org.apache.parquet.avro.AvroParquetWriter.writeSupport(AvroParquetWriter.java:150)
at org.apache.parquet.avro.AvroParquetWriter.access$200(AvroParquetWriter.java:36)
at org.apache.parquet.avro.AvroParquetWriter$Builder.getWriteSupport(AvroParquetWriter.java:182)
at org.apache.parquet.hadoop.ParquetWriter$Builder.build(ParquetWriter.java:529)
at org.apache.flink.formats.parquet.avro.ParquetAvroWriters.createAvroParquetWriter(ParquetAvroWriters.java:87)
at org.apache.flink.formats.parquet.avro.ParquetAvroWriters.lambda$forGenericRecord$abd75386$1(ParquetAvroWriters.java:61)
at org.apache.flink.formats.parquet.ParquetWriterFactory.create(ParquetWriterFactory.java:57)
at org.apache.flink.streaming.api.functions.sink.filesystem.BulkPartWriter$Factory.openNew(BulkPartWriter.java:103)
at org.apache.flink.streaming.api.functions.sink.filesystem.Bucket.rollPartFile(Bucket.java:222)
at org.apache.flink.streaming.api.functions.sink.filesystem.Bucket.write(Bucket.java:212)
at org.apache.flink.streaming.api.functions.sink.filesystem.Buckets.onElement(Buckets.java:378)
at org.apache.flink.streaming.api.functions.sink.filesystem.StreamingParquetSink.invoke(StreamingParquetSink.java:555)
I am using the following schema to create the writer,