You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/07/27 08:16:00 UTC

[jira] [Work logged] (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?focusedWorklogId=795552&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-795552 ]

ASF GitHub Bot logged work on AVRO-3590:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jul/22 08:15
            Start Date: 27/Jul/22 08:15
    Worklog Time Spent: 10m 
      Work Description: complone opened a new pull request, #1790:
URL: https://github.com/apache/avro/pull/1790

   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   Related to [AVRO-3590](https://issues.apache.org/jira/browse/AVRO-3590)
   
   ### Tests
   
   ```TestAllCodec#testCodec```
   
   ### Commits
   
   - [ ] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](https://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [ ] In case of new functionality, my PR adds documentation that describes how to use it.
     - All the public functions and the classes in the PR contain Javadoc that explain what it does
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 795552)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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: Bug
>          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
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)