paul8263 commented on code in PR #10497:
URL: https://github.com/apache/hudi/pull/10497#discussion_r1454374435
##########
hudi-flink-datasource/hudi-flink1.14.x/src/main/java/org/apache/hudi/table/format/cow/ParquetSplitReaderUtil.java:
##########
@@ -460,59 +460,59 @@ private static WritableColumnVector
createWritableColumnVector(
case BOOLEAN:
checkArgument(
typeName == PrimitiveType.PrimitiveTypeName.BOOLEAN,
- "Unexpected type: %s", typeName);
+ "Unexpected type exception. Primitive type: %s. Field type: %s.",
typeName, fieldType.getTypeRoot().name());
Review Comment:
I extracted it as a static method. The code for error message construction
won't be duplicated too many times.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]