lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hao jin <hao....@oracle.com>
Subject PercentileAgg.merge could throw NPE when percentile function is used in a subFacet with a shards param
Date Thu, 07 Jan 2016 06:06:08 GMT
Hi,
When I call such query, an NPE is reported
q=*:*&json.facet={root:{type:range,%20field:time,%20start:"2014-07-11T10:22:29.000Z",%20end:"2014-12-31T12:30:00.000Z",%20gap:"%2B1MONTH/MONTH",%20hardend:true,%20limit:-1,%20facet:{sub:{type:terms,%20field:astrField,%20missing:true,%20limit:-1,%20facet:{"pct(adoubleField)":"percentile(adoubleField,%2050.0)"}}}}}&shards=http://localhost:8983/solr/qa_env

"java.lang.NullPointerException\r\n\tat java.nio.ByteBuffer.wrap(ByteBuffer.java:392)\r\n\tat
org.apache.solr.search.facet.PercentileAgg$Merger.merge(PercentileAgg.java:196)\r\n\tat org.apache.solr.search.facet.FacetBucket.mergeBucket(FacetModule.java:410)\r\n\tat

In one or more buckets of the "astrField" field, there is no values for the "adoubleField".
It seems like it happens when mergeing distributed results. If I exclude those buckets by
adding filters in "q" or remove the "shards" param, NPE is not thrown and percentile work
as expected.

Is it a bug? Already known?

Thanks,
Henry






Mime
View raw message