You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2022/08/17 17:42:10 UTC
[beam] branch master updated: Improve error message on schema issues (#22469)
This is an automated email from the ASF dual-hosted git repository.
tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 64fae637eca Improve error message on schema issues (#22469)
64fae637eca is described below
commit 64fae637ecacbc277f3357ae91e81a88a8761aac
Author: Pablo Estrada <pa...@users.noreply.github.com>
AuthorDate: Wed Aug 17 10:42:03 2022 -0700
Improve error message on schema issues (#22469)
Co-authored-by: tvalentyn <tv...@users.noreply.github.com>
---
.../main/java/org/apache/beam/sdk/schemas/utils/ByteBuddyUtils.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/ByteBuddyUtils.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/ByteBuddyUtils.java
index d51a2964c3b..bb0003c4d4d 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/ByteBuddyUtils.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/ByteBuddyUtils.java
@@ -1440,7 +1440,11 @@ public class ByteBuddyUtils {
}
if (index == null) {
throw new RuntimeException(
- "Creator parameter " + paramName + " Doesn't correspond to a schema field");
+ "Creator parameter "
+ + paramName
+ + " Doesn't correspond to a schema field."
+ + " Make sure that you are compiling with -parameters parameter to include"
+ + " constructor parameter information in class files.");
}
fieldMapping.put(i, index);
}