Bad query parsing when decimal number without unit exists in conjunction
Summary
FIND MusicalAnalysis WHICH (quality_factor=0.3 AND date = 2019-07-24)
differs from
FIND MusicalAnalysis WHICH (has a quality_factor=0.3 AND has a date = 2019-07-24)
Expected Behavior
The conjunction is correctly understood as conjunction
Actual Behavior
-
FIND MusicalAnalysis WHICH has prop_a = 0.3 AND has prop_b = y'
is parsed incorrectly.0.3 AND
is parsed asatom
. - Adding a unit presents this, not having the second
has
prevents this.
When you use a conjunction or disjunction filter (AND or OR) in a query, where you
- not used a unit for the value of the first property of the first filter and
- used a 'has' in the second filter (like
has a prop_b=y
) the parsing is false.
Specifications
Bug was introduced with 6775c8bc and effects release v0.10.0
Possible fixes
Do you have ideas how the issue can be resolved?