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



##########
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:
       It's worth noting that the java doc of ByteBuffer states that the 
underlying buffer does get moved forward.
   
   ```
        * Unrelated stuff about BufferUnderflowException....
        *
        * <p> Otherwise, this method copies <tt>length</tt> bytes from this
        * buffer into the given array, starting at the current position of this
        * buffer and at the given offset in the array.  The position of this
        * buffer is then incremented by <tt>length</tt>.
        * ....
   ```




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