File tree Expand file tree Collapse file tree
parquet-hadoop/src/test/java/org/apache/parquet/statistics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ public void testBasicReadWriteGeographyValue() throws Exception {
170170 }
171171
172172 @ Test
173- public void testInvalidGeometryInvalidatesStatistics () throws Exception {
173+ public void testInvalidGeometryPresented () throws Exception {
174174 GeometryFactory geomFactory = new GeometryFactory ();
175175 WKBWriter wkbWriter = new WKBWriter ();
176176
@@ -218,10 +218,10 @@ public void testInvalidGeometryInvalidatesStatistics() throws Exception {
218218 Assert .assertNotNull (columnChunkMetaData );
219219
220220 // The key verification - when invalid geometry data is present,
221- // geospatial statistics should be null (not written to the file)
221+ // geospatial statistics should omit the invalid data
222222 GeospatialStatistics geospatialStatistics = columnChunkMetaData .getGeospatialStatistics ();
223- Assert .assertNull (
224- "Geospatial statistics should be null when corrupt geometry is present " , geospatialStatistics );
223+ Assert .assertNotNull (
224+ "Geospatial statistics should omit the corrupt geometry" , geospatialStatistics );
225225
226226 // Column index should still be readable, even if geometry-specific stats aren't present
227227 ColumnIndex columnIndex = reader .readColumnIndex (columnChunkMetaData );
You can’t perform that action at this time.
0 commit comments