Skip to content

Commit 136bbf4

Browse files
committed
fix testInvalidGeometryPresented
1 parent 9f3d31a commit 136bbf4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

parquet-hadoop/src/test/java/org/apache/parquet/statistics/TestGeometryTypeRoundTrip.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)