shpark commented on a change in pull request #91: [NEMO-3] Bump up the Beam 
version to 2.5.0
URL: https://github.com/apache/incubator-nemo/pull/91#discussion_r209166646
 
 

 ##########
 File path: 
compiler/frontend/beam/src/main/java/edu/snu/nemo/compiler/frontend/beam/BeamKeyExtractor.java
 ##########
 @@ -26,7 +26,8 @@
   @Override
   public Object extractKey(final Object element) {
     if (element instanceof KV) {
-      return ((KV) element).getKey();
+      final Object key = ((KV) element).getKey();
+      return key == null ? 0 : key;
 
 Review comment:
   Thank you, I will leave a comment.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to