@@ -509,16 +509,18 @@ public void testGtEqDouble() throws Exception {
509509
510510 @ Test
511511 public void testSizeBinary () throws Exception {
512+ // repeated_binary_field dict has 26 distinct values
512513 BinaryColumn b = binaryColumn ("repeated_binary_field" );
513514
514- // DictionaryFilter knows that `repeated_binary_field` column has at least 26 element values
515- assertFalse (canDrop (size (b , Operators .Size .Operator .GT , 26 ), ccmd , dictionaries ));
516- assertFalse (canDrop (size (b , Operators .Size .Operator .GTE , 27 ), ccmd , dictionaries ));
517- assertFalse (canDrop (size (b , Operators .Size .Operator .EQ , 27 ), ccmd , dictionaries ));
515+ // DictionaryFilter knows that `repeated_binary_field` column has at least 26 element values spread across
516+ // records
517+ assertTrue (canDrop (size (b , Operators .Size .Operator .EQ , 0 ), ccmd , dictionaries ));
518+ assertTrue (canDrop (size (b , Operators .Size .Operator .LT , 1 ), ccmd , dictionaries ));
519+ assertTrue (canDrop (size (b , Operators .Size .Operator .LTE , 0 ), ccmd , dictionaries ));
518520
519- assertTrue (canDrop (size (b , Operators .Size .Operator .LT , 26 ), ccmd , dictionaries ));
520- assertTrue (canDrop (size (b , Operators .Size .Operator .LTE , 25 ), ccmd , dictionaries ));
521- assertTrue (canDrop (size (b , Operators .Size .Operator .EQ , 25 ), ccmd , dictionaries ));
521+ assertFalse (canDrop (size (b , Operators .Size .Operator .EQ , 30 ), ccmd , dictionaries ));
522+ assertFalse (canDrop (size (b , Operators .Size .Operator .GT , 0 ), ccmd , dictionaries ));
523+ assertFalse (canDrop (size (b , Operators .Size .Operator .GTE , 1 ), ccmd , dictionaries ));
522524
523525 // If column doesn't exist in meta, it should be treated as having size 0
524526 BinaryColumn nonExistentColumn = binaryColumn ("nonexistant_col" );
0 commit comments