ST_X (Lakehouse v1)
Returns the longitude (X coordinate) of a Point represented by a GEOMETRY object.
SQL Syntax
Section titled “SQL Syntax”ST_X(<geometry>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<geometry> | The argument must be an expression of type GEOMETRY and must contain a Point. |
Return Type
Section titled “Return Type”Double.
SQL Examples
Section titled “SQL Examples”SELECT ST_X( ST_MAKEGEOMPOINT( 37.5, 45.5 ) ) AS pipeline_x;
┌────────────┐│ pipeline_x │├────────────┤│ 37.5 │└────────────┘