将Parquet转换为Avro会引发java.lang.IllegalArgumentException:INT96尚未实现错误

时间:2019-04-12 02:59:06

标签: java avro parquet parquet-mr

我正在尝试将实木复合地板文件转换为avro,但抛出“尚未实现INT96”

请问您对此有何建议

Parquet parquet = ParquetReaderUtils.getParquetData("000001_0");
            MessageType messageType = new MessageType("org.apache.parquet.avro.myrecord",parquet.getSchema());  
            AvroSchemaConverter avroSchemaConverter = new AvroSchemaConverter(new Configuration(false));
            Schema convertedAvroSchema = avroSchemaConverter.convert(messageType);
  

线程“ main”中的异常java.lang.IllegalArgumentException:INT96   尚未实现。在   org.apache.parquet.avro.AvroSchemaConverter $ 1.convertINT96(AvroSchemaConverter.java:279)     在   org.apache.parquet.avro.AvroSchemaConverter $ 1.convertINT96(AvroSchemaConverter.java:264)     在   org.apache.parquet.schema.PrimitiveType $ PrimitiveTypeName $ 7.convert(PrimitiveType.java:297)     在   org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:263)     在   org.apache.parquet.avro.AvroSchemaConverter.convertFields(AvroSchemaConverter.java:241)     在   org.apache.parquet.avro.AvroSchemaConverter.convert(AvroSchemaConverter.java:231)

0 个答案:

没有答案