ClickHouse/tests/queries/0_stateless/03164_linestring_geometry.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
437 B
MySQL
Raw Normal View History

2024-05-27 14:01:52 +00:00
-- { echoOn }
SELECT readWKTLineString('LINESTRING (1 1, 2 2, 3 3, 1 1)');
SELECT toTypeName(readWKTLineString('LINESTRING (1 1, 2 2, 3 3, 1 1)'));
SELECT wkt(readWKTLineString('LINESTRING (1 1, 2 2, 3 3, 1 1)'));
-- Native Array(Tuple(Float64, Float64)) is threated as Ring, not as LineString.
WITH wkt(CAST([(1, 1), (2, 2), (3, 3)], 'Array(Tuple(Float64, Float64))')) as x
SELECT x, toTypeName(x), readWKTRing(x) as y, toTypeName(y);