File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
parquet-hadoop/src/test/java/parquet/hadoop Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -339,14 +339,11 @@ public void testWriteReadStatisticsAllNulls() throws Exception {
339339 writer .close ();
340340
341341 ParquetMetadata readFooter = ParquetFileReader .readFooter (configuration , path );
342- for (BlockMetaData block : readFooter .getBlocks ()) {
343- for (ColumnChunkMetaData col : block .getColumns ()) {
344- col .getPath ();
345- }
346- }
347- { // assert the number of nulls are correct for the first block
348- assertEquals (1 , (readFooter .getBlocks ().get (0 ).getColumns ().get (0 ).getStatistics ().getNumNulls ()));
349- }
342+
343+ // assert the statistics object is not empty
344+ assertTrue ((readFooter .getBlocks ().get (0 ).getColumns ().get (0 ).getStatistics ().isEmpty ()) == false );
345+ // assert the number of nulls are correct for the first block
346+ assertEquals (1 , (readFooter .getBlocks ().get (0 ).getColumns ().get (0 ).getStatistics ().getNumNulls ()));
350347 }
351348
352349 private void validateFooters (final List <Footer > metadata ) {
You can’t perform that action at this time.
0 commit comments