From d21c27c4d1f6faf7fa730462730761afb7454639 Mon Sep 17 00:00:00 2001 From: Ankit Sultana Date: Tue, 30 Jul 2024 16:21:52 -0500 Subject: [PATCH] Use ByteString.EMPTY to Prevent Protobuf Version Pining to >3.19 --- .../protobuf/ProtoBufCodeGenMessageDecoderTest.java | 4 ++-- .../protobuf/ProtoBufRecordExtractorLowLevelTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufCodeGenMessageDecoderTest.java b/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufCodeGenMessageDecoderTest.java index 3f15ed42bbf3..cdc590830b7a 100644 --- a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufCodeGenMessageDecoderTest.java +++ b/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufCodeGenMessageDecoderTest.java @@ -234,8 +234,8 @@ public Object[][] defaultCases() { new Object[] {FLOAT_FIELD, 0f, 0f}, new Object[] {NULLABLE_FLOAT_FIELD, 0f, 0f}, - new Object[] {BYTES_FIELD, ByteString.empty(), new byte[] {}}, - new Object[] {NULLABLE_BYTES_FIELD, ByteString.empty(), new byte[] {}}, + new Object[] {BYTES_FIELD, ByteString.EMPTY, new byte[] {}}, + new Object[] {NULLABLE_BYTES_FIELD, ByteString.EMPTY, new byte[] {}}, new Object[] {BOOL_FIELD, false, "false"}, new Object[] {NULLABLE_BOOL_FIELD, false, "false"} diff --git a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordExtractorLowLevelTest.java b/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordExtractorLowLevelTest.java index b57f61ac6319..34de62036062 100644 --- a/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordExtractorLowLevelTest.java +++ b/pinot-plugins/pinot-input-format/pinot-protobuf/src/test/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordExtractorLowLevelTest.java @@ -163,8 +163,8 @@ public Object[][] defaultCases() { new Object[] {FLOAT_FIELD, 0f, 0f}, new Object[] {NULLABLE_FLOAT_FIELD, 0f, 0f}, - new Object[] {BYTES_FIELD, ByteString.empty(), new byte[] {}}, - new Object[] {NULLABLE_BYTES_FIELD, ByteString.empty(), new byte[] {}}, + new Object[] {BYTES_FIELD, ByteString.EMPTY, new byte[] {}}, + new Object[] {NULLABLE_BYTES_FIELD, ByteString.EMPTY, new byte[] {}}, new Object[] {BOOL_FIELD, false, "false"}, new Object[] {NULLABLE_BOOL_FIELD, false, "false"}