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

vterentev pushed a commit to branch cp-36063
in repository https://gitbox.apache.org/repos/asf/beam.git

commit e1d990dd37f649c33adfcef3a6b399a3622a1e91
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Mon Sep 8 14:31:43 2025 +0400

    Cherrypick
---
 .../main/java/org/apache/beam/sdk/schemas/logicaltypes/OneOfType.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/OneOfType.java
 
b/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/OneOfType.java
index 31b6c8db2fe..5c2e376e4bf 100644
--- 
a/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/OneOfType.java
+++ 
b/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/OneOfType.java
@@ -155,12 +155,12 @@ public class OneOfType implements 
LogicalType<OneOfType.Value, Row> {
     for (int i = 0; i < base.getFieldCount(); ++i) {
       Object value = base.getValue(i);
       if (value != null) {
-        checkArgument(caseType == null, "More than one field set in union " + 
this);
+        checkArgument(caseType == null, "More than one field set in union %s", 
this);
         caseType = enumerationType.valueOf(oneOfSchema.getField(i).getName());
         oneOfValue = value;
       }
     }
-    checkNotNull(oneOfValue, "No value set in union" + this);
+    checkNotNull(oneOfValue, "No value set in union %s", this);
     return createValue(caseType, oneOfValue);
   }
 

Reply via email to