the-other-tim-brown commented on code in PR #13632:
URL: https://github.com/apache/hudi/pull/13632#discussion_r2239456418
##########
hudi-hadoop-common/src/main/java/org/apache/hudi/common/util/AvroOrcUtils.java:
##########
@@ -496,13 +497,41 @@ public static Object readFromVector(TypeDescription type,
ColumnVector colVector
case SHORT:
return (short) ((LongColumnVector) colVector).vector[vectorPos];
case INT:
- return (int) ((LongColumnVector) colVector).vector[vectorPos];
case LONG:
- return ((LongColumnVector) colVector).vector[vectorPos];
+ long longValue = ((LongColumnVector) colVector).vector[vectorPos];
+ switch (avroSchema.getType()) {
+ case INT:
Review Comment:
This was how I was doing it but you asked for it to be done here.
https://github.com/apache/hudi/pull/13632#discussion_r2234616042
--
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]