somu-imply commented on code in PR #13576:
URL: https://github.com/apache/druid/pull/13576#discussion_r1081615401


##########
processing/src/main/java/org/apache/druid/segment/UnnestDimensionCursor.java:
##########
@@ -409,7 +412,12 @@ public int size()
     @Override
     public int get(int idx)
     {
-      return indexedIntsForCurrentRow.get(index);
+      // to support rows which have only null values
+      // need to check if the value is not null and the size is greater than 0
+      if (indexedIntsForCurrentRow != null && indexedIntsForCurrentRow.size() 
> 0) {
+        return indexedIntsForCurrentRow.get(index);
+      }

Review Comment:
   The comment is misleading, I'll update the comment we process the row only 
if it is not null and has atleast 1 value



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