Hi Frank,
Thanks for your question.
The function ST_DISTANCESPHERE comes with the default function factory of Ontop and is made available to all the SQL dialects by default.
We didn't implement anything Dremio-specific for geospatial support so far.
Unfortunately, Dremio is missing support for the GEOMETRY data type on which our current implementation of GeoSPARQL is based.
It requires to directly deal with latitude and longitude values instead of handling arbitrary geometry objects.
This looks at first glance a bit tricky to implement, especially if the DB value directly comes as a WKT text string, potentially describing an arbitrary geometry.
I am not a specialist of the geospatial part, perhaps my colleagues can comment more on this.
Best,
Benjamin