throw new SchemaConversionException("Unknown type "+ parquetPrimitiveTypeName);
but you can also replace the switch by:
parquetPrimitiveTypeName.convert(new PrimitiveTypeNameConverter<FieldSchema>() { ... })