Skip to content

Commit

Permalink
Merge pull request #67 from ni-ze/main
Browse files Browse the repository at this point in the history
[ISSUE #68]make filter sql:  `between and` right.
  • Loading branch information
ni-ze authored Jan 25, 2023
2 parents 164b7b3 + 11742eb commit 347d499
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NumericNode;

@JsonIgnoreProperties(ignoreUnknown = true)
public class RangeValueExpression extends SingleExpression {
Expand Down Expand Up @@ -60,7 +61,7 @@ public Operator getOperator() {
public boolean isTrue(JsonNode jsonNode) {
String fieldName = this.getField().getFieldName();
JsonNode node = jsonNode.get(fieldName);
if (node == null) {
if (!(node instanceof NumericNode)) {
return false;
}

Expand Down

0 comments on commit 347d499

Please sign in to comment.