This statement crashes the debug version of the DuckDB Spatial extension:
SELECT ST_PointOnSurface(g) FROM (SELECT ST_GeomFromText('MULTIPOINT((0 0), EMPTY)') As g);
The assertion failed here:
duckdb: /duckdb_spatial/build/debug/deps/projects/Source/GEOS/src/algorithm/InteriorPointPoint.cpp:68: void geos::algorithm::InteriorPointPoint::add(const geos::geom::CoordinateXY*): Assertion `point' failed.
Version:
┌─────────────────┬────────────┐
│ library_version │ source_id │
│ varchar │ varchar │
├─────────────────┼────────────┤
│ v0.9.2-dev209 │ 6545a55cfe │
└─────────────────┴────────────┘
The assertion failure is triggered using the latest nightly version of the Spatial extension.