[ 
https://issues.apache.org/jira/browse/LUCENE-7289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305012#comment-15305012
 ] 

Steve Rowe commented on LUCENE-7289:
------------------------------------

My Jenkins found a reproducing seed for a {{TestHalfFloatPoint.testRounding()}} 
failure:

{noformat}
Checking out Revision 2391b5b81dfade413d70d26da63e85cbd7245bf2 
(refs/remotes/origin/master)
[...]
  [junit4] Suite: org.apache.lucene.document.TestHalfFloatPoint
  [junit4]   2> NOTE: download the large Jenkins line-docs file by running 'ant 
get-jenkins-line-docs' in the lucene directory.
  [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestHalfFloatPoint 
-Dtests.method=testRounding -Dtests.seed=337CEB28FDBC3420 -Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
-Dtests.locale=ar-OM -Dtests.timezone=Pacific/Pohnpei -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
  [junit4] FAILURE 0.54s J8 | TestHalfFloatPoint.testRounding <<<
  [junit4]    > Throwable #1: java.lang.AssertionError
  [junit4]    >         at 
__randomizedtesting.SeedInfo.seed([337CEB28FDBC3420:D64E2AF1B93BB3BF]:0)
  [junit4]    >         at 
org.apache.lucene.document.TestHalfFloatPoint.testRounding(TestHalfFloatPoint.java:108)
  [junit4]    >         at java.lang.Thread.run(Thread.java:745)
  [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62): {}, 
docValues:{}, maxPointsInLeafNode=982, maxMBSortInHeap=7.016444684690926, 
sim=ClassicSimilarity, locale=ar-OM, timezone=Pacific/Pohnpei
  [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 
1.8.0_77 (64-bit)/cpus=16,threads=1,free=481511712,total=514850816
  [junit4]   2> NOTE: All tests run in this JVM: [TestPayloadSpanUtil, 
TestBigIntegerPoint, TestHalfFloatPoint]
  [junit4] Completed [5/18 (1!)] on J8 in 1.05s, 9 tests, 1 failure <<< 
FAILURES!
{noformat}

> Half floats
> -----------
>
>                 Key: LUCENE-7289
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7289
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 6.1, master (7.0)
>
>         Attachments: LUCENE-7289.patch, LUCENE-7289.patch
>
>
> When it comes to indexing floating-point data, doubles and floats are quite 
> space-intensive even though full precision is rarely needed. So maybe we 
> should consider exposing half floats?
> Half floats have 5 bits for the exponent and 11 bits (including the implicit 
> bit) for the mantissa so the minimum value is ~6x10&#08;^−8^, the maximum is 
> 65504 and they can represent all integers between -2048 and 2048 accurately.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to