File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
main/java/org/apache/parquet/column/values/dictionary
test/java/org/apache/parquet/column/values/dictionary Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ public boolean decodeToBoolean(int id) {
331331
332332 @ Override
333333 public String toString () {
334- StringBuilder sb = new StringBuilder ("PlainIntegerDictionary {\n " );
334+ StringBuilder sb = new StringBuilder ("PlainBooleanDictionary {\n " );
335335 for (int i = 0 ; i < boolDictionaryContent .length ; i ++) {
336336 sb .append (i ).append (" => " ).append (boolDictionaryContent [i ]).append ("\n " );
337337 }
Original file line number Diff line number Diff line change 2424import static org .apache .parquet .schema .PrimitiveType .PrimitiveTypeName .DOUBLE ;
2525import static org .apache .parquet .schema .PrimitiveType .PrimitiveTypeName .FLOAT ;
2626import static org .apache .parquet .schema .PrimitiveType .PrimitiveTypeName .INT32 ;
27- import static org .junit .Assert .*;
27+ import static org .junit .Assert .assertEquals ;
28+ import static org .junit .Assert .assertTrue ;
29+ import static org .junit .Assert .assertFalse ;
2830
2931import java .io .IOException ;
3032import java .nio .ByteBuffer ;
@@ -726,7 +728,7 @@ public void testBooleanDictionaryToString() throws IOException {
726728 PlainBooleanDictionary dictionary = new PlainBooleanDictionary (dictionaryPage );
727729
728730 String str = dictionary .toString ();
729- Assert .assertTrue (str .contains ("PlainIntegerDictionary " ));
731+ Assert .assertTrue (str .contains ("PlainBooleanDictionary " ));
730732 Assert .assertTrue (str .contains ("0 => false" ));
731733 Assert .assertTrue (str .contains ("1 => true" ));
732734 }
You can’t perform that action at this time.
0 commit comments