[
https://issues.apache.org/jira/browse/SOLR-12352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474798#comment-16474798
]
Andrey Kudryavtsev edited comment on SOLR-12352 at 5/14/18 9:03 PM:
--------------------------------------------------------------------
Casting to double is a "better" approach (i.e. it will give correct answers in
more cases) but in general [it is still broken|http://example.com/] :
{code:java}
long version1 = 1600463487761383425L;
long version2 = 1600463487761383424L;
System.out.println((double)version1 == (double) version2); //true
{code}
Probably there should be more complex logic behind that user function
was (Author: werder):
Casting to double is a "better" approach (i.e. it will give correct answers in
more cases) but in general [it is still broken|http://example.com] :
{code}
long version1 = 1600463487761383425L;
long version2 = 1600463487761383424L;
System.out.println((double)version1 == (double) version2); //true
{code}
Probably there should be more complex logic here
> Solr mod function query does not yield correct results
> ------------------------------------------------------
>
> Key: SOLR-12352
> URL: https://issues.apache.org/jira/browse/SOLR-12352
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 7.3
> Reporter: gnandre
> Priority: Minor
>
> It seems mod operation in function query is not working correctly for large
> numbers.
> {noformat}
> "_version_": 1600463487761383425,
> "ms(NOW)": 1526324140364,
> "mod(_version_,ms(NOW))": 1280437520000
> {noformat}
>
> However, mod(1600463487761383425,1526324140364) is 1204927482853.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]