You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "xingyuan cheng (Jira)" <ji...@apache.org> on 2022/07/27 08:14:00 UTC
[jira] [Updated] (AVRO-3590) Fix the problem that CodeFactory is null when specifying snappy format when java Client compresses data
[ https://issues.apache.org/jira/browse/AVRO-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xingyuan cheng updated AVRO-3590:
---------------------------------
Attachment: image-2022-07-27-16-11-46-218.png
image-2022-07-27-16-10-42-262.png
image-2022-07-27-16-10-33-410.png
image-2022-07-27-16-10-17-970.png
Description:
When flink-avro writes data in batches based on the avro format, the general user will specify snappy compression. However, in the avro-1.10.0 version, the Codec and CodeFactory are returned by directly applying for the object, so that the user cannot obtain it Information for SnappyCodec.
I refer to the practice of NullCodec, changing it to a global variable way will work fine
!image-2022-07-27-16-10-17-970.png!
Before repair:
!image-2022-07-27-16-10-42-262.png!
after Repair:
!image-2022-07-27-16-11-46-218.png!
> Fix the problem that CodeFactory is null when specifying snappy format when java Client compresses data
> -------------------------------------------------------------------------------------------------------
>
> Key: AVRO-3590
> URL: https://issues.apache.org/jira/browse/AVRO-3590
> Project: Apache Avro
> Issue Type: New Feature
> Components: java
> Affects Versions: 1.10.0
> Reporter: xingyuan cheng
> Priority: Major
> Fix For: 1.10.0
>
> Attachments: image-2022-07-27-16-10-17-970.png, image-2022-07-27-16-10-33-410.png, image-2022-07-27-16-10-42-262.png, image-2022-07-27-16-11-46-218.png
>
>
> When flink-avro writes data in batches based on the avro format, the general user will specify snappy compression. However, in the avro-1.10.0 version, the Codec and CodeFactory are returned by directly applying for the object, so that the user cannot obtain it Information for SnappyCodec.
> I refer to the practice of NullCodec, changing it to a global variable way will work fine
>
> !image-2022-07-27-16-10-17-970.png!
>
> Before repair:
> !image-2022-07-27-16-10-42-262.png!
>
>
> after Repair:
>
> !image-2022-07-27-16-11-46-218.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)