{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "hash",
  "description" : "Computes the hash of the input using various algorithms such as MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "algorithm",
          "type" : "keyword",
          "optional" : false,
          "description" : "Hash algorithm to use."
        },
        {
          "name" : "input",
          "type" : "keyword",
          "optional" : false,
          "description" : "Input to hash."
        }
      ],
      "variadic" : false,
      "returnType" : "keyword"
    },
    {
      "params" : [
        {
          "name" : "algorithm",
          "type" : "keyword",
          "optional" : false,
          "description" : "Hash algorithm to use."
        },
        {
          "name" : "input",
          "type" : "text",
          "optional" : false,
          "description" : "Input to hash."
        }
      ],
      "variadic" : false,
      "returnType" : "keyword"
    },
    {
      "params" : [
        {
          "name" : "algorithm",
          "type" : "text",
          "optional" : false,
          "description" : "Hash algorithm to use."
        },
        {
          "name" : "input",
          "type" : "keyword",
          "optional" : false,
          "description" : "Input to hash."
        }
      ],
      "variadic" : false,
      "returnType" : "keyword"
    },
    {
      "params" : [
        {
          "name" : "algorithm",
          "type" : "text",
          "optional" : false,
          "description" : "Hash algorithm to use."
        },
        {
          "name" : "input",
          "type" : "text",
          "optional" : false,
          "description" : "Input to hash."
        }
      ],
      "variadic" : false,
      "returnType" : "keyword"
    }
  ],
  "examples" : [
    "FROM sample_data\n| WHERE message != \"Connection error\"\n| EVAL md5 = hash(\"md5\", message), sha256 = hash(\"sha256\", message)\n| KEEP message, md5, sha256"
  ],
  "preview" : false,
  "snapshot_only" : false
}
