{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "st_x",
  "description" : "Extracts the `x` coordinate from the supplied point.\nIf the points is of type `geo_point` this is equivalent to extracting the `longitude` value.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "point",
          "type" : "cartesian_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "point",
          "type" : "geo_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    }
  ],
  "examples" : [
    "ROW point = TO_GEOPOINT(\"POINT(42.97109629958868 14.7552534006536)\")\n| EVAL x =  ST_X(point), y = ST_Y(point)"
  ],
  "preview" : false,
  "snapshot_only" : false
}
