robert3005 commented on code in PR #1227:
URL: https://github.com/apache/arrow-java/pull/1227#discussion_r4768806063
##########
vector/src/main/codegen/templates/UnionReader.java:
##########
@@ -39,7 +39,9 @@
@SuppressWarnings("unused")
public class UnionReader extends AbstractFieldReader {
- private static final int NUM_SUPPORTED_TYPES = 51;
+ // The reader/type arrays are indexed by MinorType.ordinal(), so they must
be sized to the total
+ // number of minor types (not a hardcoded count, which would break whenever
a type is added).
Review Comment:
Apologies, this code went through a lot of refactoring and this slipped
through
--
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]