[
https://issues.apache.org/jira/browse/SOLR-8420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15142019#comment-15142019
]
Tomás Fernández Löbbe commented on SOLR-8420:
---------------------------------------------
While looking at this patch I noticed that in the line 841 of
{{TestDistributedSearch}} it says:
{code:java}
rsp = query("q", "*:*", "rows", "0", "stats", "true",
{code}
but was intended to be
{code:java}
rsp = query("q", q, "rows", "0", "stats", "true",
{code}
We should fix that as part of this Jira too.
> Date statistics: sumOfSquares overflows long
> --------------------------------------------
>
> Key: SOLR-8420
> URL: https://issues.apache.org/jira/browse/SOLR-8420
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 5.4
> Reporter: Tom Hill
> Priority: Minor
> Attachments: 0001-Fix-overflow-in-date-statistics.patch,
> 0001-Fix-overflow-in-date-statistics.patch, StdDev.java
>
>
> The values for Dates are large enough that squaring them overflows a "long"
> field. This should be converted to a double.
> StatsValuesFactory.java, line 755 DateStatsValues#updateTypeSpecificStats Add
> a cast to double
> sumOfSquares += ( (double)value * value * count);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]