mirror of https://github.com/apache/druid.git
Merge pull request #1180 from metamx/logging-groupBy-NPE
add null check early to catch root cause for groupBy NPE while running bySegment query
This commit is contained in:
commit
2abdce1dc0
|
@ -76,7 +76,7 @@ You can optionally only configure caching to be enabled on the broker by setting
|
|||
|`druid.broker.cache.useCache`|true, false|Enable the cache on the broker.|false|
|
||||
|`druid.broker.cache.populateCache`|true, false|Populate the cache on the broker.|false|
|
||||
|`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`|
|
||||
|`druid.cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]|
|
||||
|`druid.broker.cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]|
|
||||
|
||||
#### Local Cache
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ You can optionally only configure caching to be enabled on the historical by set
|
|||
|`druid.historical.cache.useCache`|true, false|Enable the cache on the historical.|false|
|
||||
|`druid.historical.cache.populateCache`|true, false|Populate the cache on the historical.|false|
|
||||
|`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`|
|
||||
|`druid.cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]|
|
||||
|`druid.historical.cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]|
|
||||
|
||||
#### Local Cache
|
||||
|
||||
|
|
|
@ -138,6 +138,9 @@ public class GroupByQueryHelper
|
|||
@Override
|
||||
public List accumulate(List accumulated, T in)
|
||||
{
|
||||
if(in == null){
|
||||
throw new ISE("Cannot have null result");
|
||||
}
|
||||
accumulated.add(in);
|
||||
return accumulated;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue