lriggs commented on code in PR #656:
URL: https://github.com/apache/arrow-java/pull/656#discussion_r1985758964


##########
vector/src/main/codegen/templates/UnionVector.java:
##########
@@ -306,6 +307,9 @@ public StructVector getStruct() {
 
   public ${name}Vector get${name}Vector(String name) {
     if (${uncappedName}Vector == null) {
+      ${uncappedName}Vector = 
internalStruct.getChild(fieldName(MinorType.${name?upper_case}), 
${name}Vector.class);
+      if (${uncappedName}Vector == null) {
+        throw new IllegalArgumentException("No ${uncappedName} present. 
Provide ArrowType argument to create a new vector");

Review Comment:
   I pushed a new commit where this code is moved slightly, had forgotten that 
this one was updated in our repo.



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to