You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/05/26 18:05:53 UTC

[GitHub] [incubator-pinot] kishoreg commented on issue #4230: NULL value support for all data types

kishoreg commented on issue #4230: NULL value support for all data types
URL: https://github.com/apache/incubator-pinot/issues/4230#issuecomment-496019805
 
 
   Here is the high-level idea
   
   - add isNullable=true/false in the FieldSpec
   - if isNullable set to true, we can generate a presence vector or null vector. I think presence vector is better than null vector since the query will mostly be x != NULL. Having a presence vector means we don't have to invert the bitmap for every query
   - Add presence bit vector to DataSource (similar to bloom filter etc)
   - Nothing changes in the forward index for now. we will still use the default value. 
   - We have two options during query execution 1. users explicitly add x != NULL in the query or we automatically add x != NULL if we see column x as part of the group by or aggregation function.
   
   One open question is, should we restrict generating presence vector to segment creation phase or allow generating them on the fly when we load the segment (similar to inverted index). Generating them on the fly means we need to generate presence vector from the forward index. We can't do this as we represent NULL using the defaultValue in fieldSpec. One workaround is to treat the default value in the forward index as NULL. I think this might work but not 100% sure. Does anyone see any issues with treating default value in forward index implies NULL? 
      
   For the first phase, I think restricting it to segment generation phase should be good enough.
   
   Thoughts?
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org