Skip to content

Commit ff37c81

Browse files
andriy-yermakovAndriiYer
andauthored
Fix errata in operator for numbers (#2)
Co-authored-by: AndriiYer <[email protected]>
1 parent 9d50648 commit ff37c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filter/ops/op_val_nums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl OpValueToOpValType for $ov {
126126
("$gt", Value::Number(num)) => $ov::Gt($asfn(num)?),
127127
("$gte", Value::Number(num)) => $ov::Gte($asfn(num)?),
128128

129-
("$null", Value::Number(num)) => $ov::Gte($asfn(num)?),
129+
("$null", Value::Bool(v)) => $ov::Null(v),
130130

131131
(_, value) => return Err(Error::JsonOpValNotSupported{
132132
operator: op.to_string(),

0 commit comments

Comments
 (0)