From 75b920702d242e74d654a52858a3fe112caa21e8 Mon Sep 17 00:00:00 2001 From: Sagar Sumit Date: Tue, 12 Sep 2023 10:29:26 +0530 Subject: [PATCH] Fix flink getUTF8Bytes and some tests --- .../hudi/io/storage/row/HoodieRowDataParquetWriteSupport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowDataParquetWriteSupport.java b/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowDataParquetWriteSupport.java index 1cb9c8f20820..a153ec15052d 100644 --- a/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowDataParquetWriteSupport.java +++ b/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowDataParquetWriteSupport.java @@ -21,6 +21,7 @@ import org.apache.hudi.avro.HoodieBloomFilterWriteSupport; import org.apache.hudi.common.bloom.BloomFilter; import org.apache.hudi.common.util.Option; +import org.apache.hudi.common.util.StringUtils; import org.apache.flink.table.data.RowData; import org.apache.flink.table.types.logical.RowType; @@ -70,7 +71,7 @@ public HoodieBloomFilterRowDataWriteSupport(BloomFilter bloomFilter) { @Override protected byte[] getUTF8Bytes(String key) { - return getUTF8Bytes(key); + return StringUtils.getUTF8Bytes(key); } } }