Skip to content

bug: Parser can't infer ZM dimensionality correctly for certain WKT strings #162

@petern48

Description

@petern48

Creating either one of the following geometries fails with the following error on SedonaDB, even though they succeed on PostGIS. This behavior occurs in the cli, the tests, etc.

select st_geomfromtext('GEOMETRYCOLLECTION Z (POINT (1 2 3))')
-- fails

select st_geomfromtext('GEOMETRYCOLLECTION (POINT (1 2 3))');
-- postgis infers this to be xyz based on st_hasz, st_hasm calls

select st_geomfromtext('point (1 1 1)');
-- postgis infers this to be xyz based on st_hasz, st_hasm calls

Error:

Internal error: WKT parse error: Missing closing parenthesis for type.
This issue was likely caused by a bug in DataFusion's code. Please help us to resolve this by filing a bug report in our issue tracker: https://github.com/apache/datafusion/issues

(Ignore that it misleadingly says "Datafusion's code")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions