steveniemitz commented on code in PR #17802:
URL: https://github.com/apache/beam/pull/17802#discussion_r895830916
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/util/common/worker/ByteArrayShufflePosition.java:
##########
@@ -58,15 +65,15 @@ public static byte[] getPosition(@Nullable ShufflePosition
shufflePosition) {
}
Preconditions.checkArgument(shufflePosition instanceof
ByteArrayShufflePosition);
ByteArrayShufflePosition adapter = (ByteArrayShufflePosition)
shufflePosition;
- return adapter.getPosition();
+ return adapter.getPosition().toByteArray();
Review Comment:
I think leaving it here is the cleanest way now that I've looked at the
usage again. It needs to eventually be copied to a byte[] in this case so it
can be passed over to the native reader.
--
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]