the-other-tim-brown commented on code in PR #13632:
URL: https://github.com/apache/hudi/pull/13632#discussion_r2239999529
##########
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:
Ok that will simplify it. The column pruning does not exist currently
(passes in full reader schema instead of required schema) so I figured you must
be referring to the schema evolution
--
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]