Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ public void testJsonPredicateEvaluators() {

EqPredicate eqPredicate = new EqPredicate(COLUMN_EXPRESSION, jsonString);
PredicateEvaluator eqPredicateEvaluator =
EqualsPredicateEvaluatorFactory.newRawValueBasedEvaluator(eqPredicate, FieldSpec.DataType.STRING);
EqualsPredicateEvaluatorFactory.newRawValueBasedEvaluator(eqPredicate, FieldSpec.DataType.JSON);

NotEqPredicate notEqPredicate = new NotEqPredicate(COLUMN_EXPRESSION, jsonString);
PredicateEvaluator neqPredicateEvaluator =
NotEqualsPredicateEvaluatorFactory.newRawValueBasedEvaluator(notEqPredicate, FieldSpec.DataType.STRING);
NotEqualsPredicateEvaluatorFactory.newRawValueBasedEvaluator(notEqPredicate, FieldSpec.DataType.JSON);

Assert.assertTrue(eqPredicateEvaluator.applySV(jsonString));
Assert.assertFalse(neqPredicateEvaluator.applySV(jsonString));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ public void testJsonPredicateEvaluators() {

InPredicate inPredicate = new InPredicate(COLUMN_EXPRESSION, jsonValues);
PredicateEvaluator inPredicateEvaluator =
InPredicateEvaluatorFactory.newRawValueBasedEvaluator(inPredicate, FieldSpec.DataType.STRING);
InPredicateEvaluatorFactory.newRawValueBasedEvaluator(inPredicate, FieldSpec.DataType.JSON);

NotInPredicate notInPredicate = new NotInPredicate(COLUMN_EXPRESSION, jsonValues);
PredicateEvaluator notInPredicateEvaluator =
NotInPredicateEvaluatorFactory.newRawValueBasedEvaluator(notInPredicate, FieldSpec.DataType.STRING);
NotInPredicateEvaluatorFactory.newRawValueBasedEvaluator(notInPredicate, FieldSpec.DataType.JSON);

for (String value : jsonValueSet) {
Assert.assertTrue(inPredicateEvaluator.applySV(value));
Expand Down