abhishekagarwal87 commented on code in PR #13211:
URL: https://github.com/apache/druid/pull/13211#discussion_r992303841


##########
processing/src/main/java/org/apache/druid/segment/nested/NestedFieldLiteralColumnIndexSupplier.java:
##########
@@ -108,8 +108,14 @@ public NestedFieldLiteralColumnIndexSupplier(
   public <T> T as(Class<T> clazz)
   {
     if (clazz.equals(NullValueIndex.class)) {
-      // null index is always 0 in the global dictionary, even if there are no 
null rows in any of the literal columns
-      return (T) (NullValueIndex) () -> new 
SimpleImmutableBitmapIndex(bitmaps.get(0));
+      final BitmapColumnIndex nullIndex;
+      if (dictionary.get(0) == 0) {

Review Comment:
   it would have been nicer to have these constants (RHS) defined at the top - 
something like GLOBAL_DICTIONARY_NULL_INDEX. Some other day perhaps. 



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