{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "starts_with",
  "description" : "Returns a boolean that indicates whether a keyword string starts with another string.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "str",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        },
        {
          "name" : "prefix",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "str",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        },
        {
          "name" : "prefix",
          "type" : "text",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "str",
          "type" : "text",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        },
        {
          "name" : "prefix",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "str",
          "type" : "text",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        },
        {
          "name" : "prefix",
          "type" : "text",
          "optional" : false,
          "description" : "String expression. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    }
  ],
  "examples" : [
    "FROM employees\n| KEEP last_name\n| EVAL ln_S = STARTS_WITH(last_name, \"B\")"
  ],
  "preview" : false,
  "snapshot_only" : false
}
