marton-bod commented on code in PR #3131:
URL: https://github.com/apache/hive/pull/3131#discussion_r845016196


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergSerDe.java:
##########
@@ -224,7 +232,7 @@ public Writable serialize(Object o, ObjectInspector 
objectInspector) {
     Deserializer deserializer = deserializers.get(objectInspector);
     if (deserializer == null) {
       deserializer = new Deserializer.Builder()
-          .schema(tableSchema)
+          .schema(isDelete ? deleteSchema : tableSchema)

Review Comment:
   `projectedSchema` is only local variable inside `initialize()` and not 
available here



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