Floating point comparisons should not be tested with the validator #735
Labels
bug
Something isn't working
priority/medium
Issue or PR with a consensus of medium priority
validator
Related to the OPTIMADE validator
During validation, we currently test that queries for e.g.
_custom_float_field=3.5
returns at least one matching document to_custom_float_field>=3.5
and other inclusive operators. The OPTIMADE specification is quite flexible on floating point comparisons, so during validation we should be too:This is a big problem when e.g. testing queries on
elements_ratios
with filters likeelements_ratios HAS 0.299999999999999988897769753748434595763683319091796875
, or whatever.The text was updated successfully, but these errors were encountered: