khaledh opened a new pull request, #27137:
URL: https://github.com/apache/flink/pull/27137

   ## What is the purpose of the change
   
   Flink currently uses protobuf-java 3.x, causing compatibility issues for 
applications requiring protobuf 4.x. This upgrade to protobuf 4.32.1 enables:
   
     - Applications to use protobuf 4.x features (e.g., Protobuf Editions)
     - Resolution of dependency conflicts and forward compatibility as the 
protobuf ecosystem moves toward 4.x
   
   The `parquet-protobuf` integration required a compatibility patch 
(`PatchedProtoWriteSupport`) because upstream parquet-java 1.15.2 still uses 
protobuf 3.x APIs. This patch can be removed once parquet-java adds native 
protobuf 4.x support (https://github.com/apache/parquet-java/issues/3175).
   
   ## Brief change log
   
     - Upgrade protobuf-java from 3.x to 4.32.1
     - Add `PatchedProtoWriteSupport` to maintain compatibility with 
parquet-java 1.15.2 (which still uses protobuf 3.x APIs)
     - Replace enum-based syntax detection (removed in protobuf 4.x) with 
string-based detection
     - All changes are internal - no public API changes
   
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - All existing tests pass (no regressions)
     - New test suite `PatchedProtoWriteSupportTest` with 6 tests:
       - 4 unit tests validating proto2/proto3 syntax detection with direct API
       - 2 integration tests validating production code path through 
`ParquetProtoWriters`
     - Tests confirm round-trip write/read integrity for both proto2 and proto3 
messages
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): **yes**
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: **no**
     - The serializers: **no**
     - The runtime per-record code paths (performance sensitive): **no**
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: **no**
     - The S3 file system connector: **no**
   
   ## Documentation
   
     - Does this pull request introduce a new feature? **no**
     - If yes, how is the feature documented? **not applicable**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to