ramitg254 commented on code in PR #6565:
URL: https://github.com/apache/hive/pull/6565#discussion_r3497340182


##########
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedDummyColumnReader.java:
##########
@@ -64,6 +68,41 @@ public void readBatch(int total, ColumnVector col, TypeInfo 
typeInfo) throws IOE
 
     if (typeInfo.getCategory() == ObjectInspector.Category.PRIMITIVE) {
       fillPrimitive(col, (PrimitiveTypeInfo) typeInfo, defaultValue);
+    } else if (typeInfo.getCategory() == ObjectInspector.Category.STRUCT) {
+      fillStruct(col, (StructTypeInfo) typeInfo, defaultValue);
+    } else {
+      throw new IOException("Unsupported type category in DummyColumnReader: " 
+ typeInfo.getCategory());
+    }

Review Comment:
   this is a false positive,
   this case can never be encountered as filling of initial defaults is limited 
to `add columns `and since entire column from schema will be missing before 
that and this situtation which mention where wrong assignment of default value 
can happen to primitive when a nested field of struct  is missing and others 
are already part of file can never exist, as I mentioned column will be added 
entirely and no similar partial column will be existing earlier which needs to 
be updated so this case can never occur



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to