Hi, the following statement crashes duckdb spatial.
SELECT ST_PointOnSurface(ST_Collect([ST_GeomFromText('LINESTRING(0 0, 1 1)'), ST_GeomFromText('LINESTRING EMPTY')]))
--Segmentation fault (core dumped)
Using the function ST_AsText, I got the following result.
SELECT ST_AsText(ST_Collect([ST_GeomFromText('LINESTRING(0 0, 1 1)'), ST_GeomFromText('LINESTRING EMPTY')]))
-- [('MULTILINESTRING ((0 0, 1 1), ())',)]
Version:
The result of "pragma version;" is [('v0.9.2', '3c695d7ba9')]
I used "FORCE INSTALL spatial FROM 'http://nightly-extensions.duckdb.org';" in the Python client.