We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b65c2 commit 03a20f3Copy full SHA for 03a20f3
fluss-client/src/main/java/org/apache/fluss/client/converter/PojoType.java
@@ -77,7 +77,9 @@ static <T> PojoType<T> of(Class<T> pojoClass) {
77
// Enforce nullable fields: primitives are not allowed in POJO definitions.
78
if (field.getType().isPrimitive()) {
79
throw new IllegalArgumentException(
80
- "Primitive types are not allowed; all fields must be nullable (use wrapper types).");
+ String.format(
81
+ "POJO class %s has primitive field '%s' of type %s. Primitive types are not allowed; all fields must be nullable (use wrapper types).",
82
+ pojoClass.getName(), name, field.getType().getName()));
83
}
84
// use boxed type as effective type
85
Class<?> effectiveType = boxIfPrimitive(field.getType());
0 commit comments