You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ru...@apache.org on 2024/10/28 08:40:16 UTC

(flink-cdc) branch master updated: [FLINK-35291][runtime] Improve the ROW data deserialization performance of DebeziumEventDeserializationScheme (#3289)

This is an automated email from the ASF dual-hosted git repository.

ruanhang1993 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git


The following commit(s) were added to refs/heads/master by this push:
     new 2a5828c0a [FLINK-35291][runtime] Improve the ROW data deserialization performance of DebeziumEventDeserializationScheme (#3289)
2a5828c0a is described below

commit 2a5828c0ac445461c12a6d387a7b8f12f4dca158
Author: lzshlzsh <li...@qq.com>
AuthorDate: Mon Oct 28 16:40:11 2024 +0800

    [FLINK-35291][runtime] Improve the ROW data deserialization performance of DebeziumEventDeserializationScheme (#3289)
    
    Co-authored-by: liuzeshan <li...@bytedance.com>
---
 .../cdc/runtime/typeutils/BinaryRecordDataGenerator.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/typeutils/BinaryRecordDataGenerator.java b/flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/typeutils/BinaryRecordDataGenerator.java
index bb7559109..5004fa4f2 100644
--- a/flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/typeutils/BinaryRecordDataGenerator.java
+++ b/flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/typeutils/BinaryRecordDataGenerator.java
@@ -58,9 +58,9 @@ public class BinaryRecordDataGenerator {
     public BinaryRecordDataGenerator(DataType[] dataTypes, TypeSerializer[] serializers) {
         checkArgument(
                 dataTypes.length == serializers.length,
-                String.format(
-                        "The types and serializers must have the same length. But types is %d and serializers is %d",
-                        dataTypes.length, serializers.length));
+                "The types and serializers must have the same length. But types is %s and serializers is %s",
+                dataTypes.length,
+                serializers.length);
 
         this.dataTypes = dataTypes;
         this.serializers = serializers;
@@ -77,9 +77,9 @@ public class BinaryRecordDataGenerator {
     public BinaryRecordData generate(Object[] rowFields) {
         checkArgument(
                 dataTypes.length == rowFields.length,
-                String.format(
-                        "The types and values must have the same length. But types is %d and values is %d",
-                        dataTypes.length, rowFields.length));
+                "The types and values must have the same length. But types is %s and values is %s",
+                dataTypes.length,
+                rowFields.length);
 
         reuseWriter.reset();
         for (int i = 0; i < dataTypes.length; i++) {