hqx871 commented on PR #11848:
URL: https://github.com/apache/druid/pull/11848#issuecomment-1092457854

   By lookup is slow I mean the follow code:
   ```
   private static ShardSpecLookup createLookup(List<? extends ShardSpec> 
shardSpecs)
     {
       return (long timestamp, InputRow row) -> {
         for (ShardSpec spec : shardSpecs) {
           if (((DimensionRangeShardSpec) spec).isInChunk(row)) {
             return spec;
           }
         }
         throw new ISE("row[%s] doesn't fit in any shard[%s]", row, shardSpecs);
       };
     }
   ```


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