kbendick commented on a change in pull request #1334:
URL: https://github.com/apache/iceberg/pull/1334#discussion_r470924097



##########
File path: pig/src/main/java/org/apache/iceberg/pig/IcebergPigInputFormat.java
##########
@@ -243,6 +243,7 @@ private boolean advance() throws IOException {
       return true;
     }
 
+    @SuppressWarnings("ByteBufferBackingArray")

Review comment:
       And do I need to restore the buffer position as well? In my 
implementation above that uses `remaining` above in GenericOrcWriters that 
we're also discussing, I returned the original buffer (`value` here) to its 
original position. IIUC, they'd be backed by the same data as the casted 
`buffer`.




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

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