ST_ENDPOINT (Lakehouse v1)
Returns the last Point in a LineString.
SQL Syntax
Section titled “SQL Syntax”ST_ENDPOINT(<geometry>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<geometry> | The argument must be an expression of type GEOMETRY that represents a LineString. |
Return Type
Section titled “Return Type”Geometry.
SQL Examples
Section titled “SQL Examples”SELECT ST_ENDPOINT( ST_GEOMETRYFROMWKT( 'LINESTRING(1 1, 2 2, 3 3, 4 4)' ) ) AS pipeline_endpoint;
┌───────────────────┐│ pipeline_endpoint │├───────────────────┤│ POINT(4 4) │└───────────────────┘