{
  "$schema": "/products/haybarn/functions/api/v1/function.schema.json",
  "schemaVersion": 1,
  "name": "arg_max",
  "schema": "main",
  "slug": "arg_max",
  "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
  "category": "aggregate",
  "kinds": [
    "aggregate"
  ],
  "aliasOf": [],
  "snapshot": {
    "schemaVersion": 1,
    "id": "duckdb-1.3.2",
    "engine": "duckdb",
    "label": "DuckDB 1.3.2",
    "engineVersion": "v1.3.2",
    "sourceId": "0b83e5d2f6",
    "source": "https://github.com/duckdb/duckdb/releases/tag/v1.3.2",
    "binarySha256": "9a2ae2a4d5dbd07a5b0cb30c502d65014825d34924c681eb3faa7647e7cd2b6f",
    "capturedAt": "2026-09-05T18:37:33.818Z",
    "requestedExtensions": [
      "core_functions",
      "icu",
      "json",
      "parquet"
    ],
    "loadedExtensions": [
      {
        "extension_name": "autocomplete",
        "extension_version": "v1.3.2",
        "installed_from": ""
      },
      {
        "extension_name": "core_functions",
        "extension_version": "v1.3.2",
        "installed_from": ""
      },
      {
        "extension_name": "icu",
        "extension_version": "v1.3.2",
        "installed_from": ""
      },
      {
        "extension_name": "json",
        "extension_version": "v1.3.2",
        "installed_from": ""
      },
      {
        "extension_name": "parquet",
        "extension_version": "v1.3.2",
        "installed_from": ""
      },
      {
        "extension_name": "shell",
        "extension_version": "v1.3.2",
        "installed_from": ""
      }
    ],
    "scope": "Built-in functions in the main schema, with the requested extensions loaded. Catalog visibility is not a guarantee of browser support."
  },
  "links": {
    "html": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/",
    "markdown": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/index.md",
    "json": "/products/haybarn/functions/api/v1/duckdb-1.3.2/functions/arg_max.json"
  },
  "interpretation": [
    "Choose a snapshot matching the target engine and build. The default is captured from the published Haybarn WASM package used by the browser playground. Historical native snapshots are also available.",
    "Availability is an observation in the recorded build and extension profile, not a guarantee of support in every installation or in WASM.",
    "Types and descriptions are declarations from duckdb_functions(). Binding can specialize result types. Null means not supplied by the catalog; do not invent defaults, optionality, argument mode, or table output columns.",
    "Raw parameter arrays preserve catalog order for scalar/aggregate/macro functions. Raw table arguments are alphabetical. Use callingConvention for engine-confirmed positional order and named arguments; null modes are unrecorded. Named does not mean optional. Macro defaults and special named variadic behavior are not supplied by duckdb_functions().",
    "Catalog examples are source material and may require data or extensions. runnableExamples contains separately verified SQL for the pinned WASM package; sample-data adaptations and guide examples are labeled separately.",
    "Guide annotations and recipes are separate editorial content. The browser runner always uses Haybarn WASM 1.5.5-rc3, independently of the documentation snapshot.",
    "All URLs beginning with / are relative to the origin hosting this document. Exports require no JavaScript, cookies, API key, or browser engine."
  ],
  "overloads": [
    {
      "id": "overload-7a13cd64de4d1d57",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-7a13cd64de4d1d57",
      "signature": "arg_max(arg: ANY, val: ANY) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "ANY",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "ANY"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-8af6a66932f47f6e",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-8af6a66932f47f6e",
      "signature": "arg_max(arg: ANY, val: BIGINT) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f518d6c0f0a1da08",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f518d6c0f0a1da08",
      "signature": "arg_max(arg: ANY, val: BLOB) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-0905ae7763faacb1",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-0905ae7763faacb1",
      "signature": "arg_max(arg: ANY, val: DATE) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-31e60c1fc95ec249",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-31e60c1fc95ec249",
      "signature": "arg_max(arg: ANY, val: DOUBLE) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e71eb89d2847860c",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e71eb89d2847860c",
      "signature": "arg_max(arg: ANY, val: HUGEINT) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-d25d2cdedcef39cf",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-d25d2cdedcef39cf",
      "signature": "arg_max(arg: ANY, val: INTEGER) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-bc66245450296d53",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-bc66245450296d53",
      "signature": "arg_max(arg: ANY, val: TIMESTAMP) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-6994f06e5c8b45c0",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-6994f06e5c8b45c0",
      "signature": "arg_max(arg: ANY, val: TIMESTAMP WITH TIME ZONE) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-54cbab4aff0b9161",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-54cbab4aff0b9161",
      "signature": "arg_max(arg: ANY, val: VARCHAR) → ANY",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "ANY",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-6fa435197cb4b0f4",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-6fa435197cb4b0f4",
      "signature": "arg_max(arg: BIGINT, val: BIGINT) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-66d6bd89c95f59bf",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-66d6bd89c95f59bf",
      "signature": "arg_max(arg: BIGINT, val: BLOB) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-25e7a8e7afeb663a",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-25e7a8e7afeb663a",
      "signature": "arg_max(arg: BIGINT, val: DATE) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-cb380c4575ec6e9c",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-cb380c4575ec6e9c",
      "signature": "arg_max(arg: BIGINT, val: DOUBLE) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-cc7da9ef3380a4ba",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-cc7da9ef3380a4ba",
      "signature": "arg_max(arg: BIGINT, val: HUGEINT) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-9a46d6fc0c9acef0",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-9a46d6fc0c9acef0",
      "signature": "arg_max(arg: BIGINT, val: INTEGER) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-3c9e05990da128e2",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-3c9e05990da128e2",
      "signature": "arg_max(arg: BIGINT, val: TIMESTAMP) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-ab8b29bf1676924c",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-ab8b29bf1676924c",
      "signature": "arg_max(arg: BIGINT, val: TIMESTAMP WITH TIME ZONE) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b8c942ff8eef9891",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b8c942ff8eef9891",
      "signature": "arg_max(arg: BIGINT, val: VARCHAR) → BIGINT",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BIGINT",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BIGINT",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BIGINT",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-4222d3d4fba43f31",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-4222d3d4fba43f31",
      "signature": "arg_max(arg: BLOB, val: BIGINT) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b5121a4af955dd9b",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b5121a4af955dd9b",
      "signature": "arg_max(arg: BLOB, val: BLOB) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e798732a7d1542a8",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e798732a7d1542a8",
      "signature": "arg_max(arg: BLOB, val: DATE) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-33107e088955a655",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-33107e088955a655",
      "signature": "arg_max(arg: BLOB, val: DOUBLE) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-d3c866a9f23a2f5f",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-d3c866a9f23a2f5f",
      "signature": "arg_max(arg: BLOB, val: HUGEINT) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-1224567de6e1693b",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-1224567de6e1693b",
      "signature": "arg_max(arg: BLOB, val: INTEGER) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-1f9240e4fa20d261",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-1f9240e4fa20d261",
      "signature": "arg_max(arg: BLOB, val: TIMESTAMP) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-599996b4117e1054",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-599996b4117e1054",
      "signature": "arg_max(arg: BLOB, val: TIMESTAMP WITH TIME ZONE) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-be3fcd3bcc4cc5a2",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-be3fcd3bcc4cc5a2",
      "signature": "arg_max(arg: BLOB, val: VARCHAR) → BLOB",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "BLOB",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "BLOB",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "BLOB",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-1face098a76423ff",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-1face098a76423ff",
      "signature": "arg_max(arg: DATE, val: BIGINT) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-1c6a251a20a76979",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-1c6a251a20a76979",
      "signature": "arg_max(arg: DATE, val: BLOB) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-9259159219cd4a86",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-9259159219cd4a86",
      "signature": "arg_max(arg: DATE, val: DATE) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f70426ec2654db32",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f70426ec2654db32",
      "signature": "arg_max(arg: DATE, val: DOUBLE) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-af6969ef3f056ede",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-af6969ef3f056ede",
      "signature": "arg_max(arg: DATE, val: HUGEINT) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-261969f50c62f7cd",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-261969f50c62f7cd",
      "signature": "arg_max(arg: DATE, val: INTEGER) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-dddc1244f06d77d5",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-dddc1244f06d77d5",
      "signature": "arg_max(arg: DATE, val: TIMESTAMP) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-65edfd4a1eed42f1",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-65edfd4a1eed42f1",
      "signature": "arg_max(arg: DATE, val: TIMESTAMP WITH TIME ZONE) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f76bb49496e91ea2",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f76bb49496e91ea2",
      "signature": "arg_max(arg: DATE, val: VARCHAR) → DATE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DATE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DATE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DATE",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-929f7fc31b9b3e3e",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-929f7fc31b9b3e3e",
      "signature": "arg_max(arg: DECIMAL, val: BIGINT) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-93d5f0a5d7131e15",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-93d5f0a5d7131e15",
      "signature": "arg_max(arg: DECIMAL, val: BLOB) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f84f20e2cbe9c8fb",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f84f20e2cbe9c8fb",
      "signature": "arg_max(arg: DECIMAL, val: DATE) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-dcb95e327c7efc08",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-dcb95e327c7efc08",
      "signature": "arg_max(arg: DECIMAL, val: DOUBLE) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-4da1ff2df1a8692f",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-4da1ff2df1a8692f",
      "signature": "arg_max(arg: DECIMAL, val: HUGEINT) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-cbbd29631206f083",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-cbbd29631206f083",
      "signature": "arg_max(arg: DECIMAL, val: INTEGER) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-4f5bf1d783009bf0",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-4f5bf1d783009bf0",
      "signature": "arg_max(arg: DECIMAL, val: TIMESTAMP) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-66668253642d62d6",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-66668253642d62d6",
      "signature": "arg_max(arg: DECIMAL, val: TIMESTAMP WITH TIME ZONE) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b645c32db667fd70",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b645c32db667fd70",
      "signature": "arg_max(arg: DECIMAL, val: VARCHAR) → DECIMAL",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DECIMAL",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DECIMAL",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DECIMAL",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e1c36a72e245187a",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e1c36a72e245187a",
      "signature": "arg_max(arg: DOUBLE, val: BIGINT) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-a47acddb2c378efc",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-a47acddb2c378efc",
      "signature": "arg_max(arg: DOUBLE, val: BLOB) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-2ed8cdee645c88a4",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-2ed8cdee645c88a4",
      "signature": "arg_max(arg: DOUBLE, val: DATE) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e7f25b0da1a20041",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e7f25b0da1a20041",
      "signature": "arg_max(arg: DOUBLE, val: DOUBLE) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-77cdb387565cc05d",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-77cdb387565cc05d",
      "signature": "arg_max(arg: DOUBLE, val: HUGEINT) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-abbb813e8a0e47bb",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-abbb813e8a0e47bb",
      "signature": "arg_max(arg: DOUBLE, val: INTEGER) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-1a7487471b7a2295",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-1a7487471b7a2295",
      "signature": "arg_max(arg: DOUBLE, val: TIMESTAMP) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-cd3046965902c896",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-cd3046965902c896",
      "signature": "arg_max(arg: DOUBLE, val: TIMESTAMP WITH TIME ZONE) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f6e0ab4cd9e7c5ea",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f6e0ab4cd9e7c5ea",
      "signature": "arg_max(arg: DOUBLE, val: VARCHAR) → DOUBLE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "DOUBLE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "DOUBLE",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-45c3722bfa95a48b",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-45c3722bfa95a48b",
      "signature": "arg_max(arg: INTEGER, val: BIGINT) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-07cf10a23be1aff6",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-07cf10a23be1aff6",
      "signature": "arg_max(arg: INTEGER, val: BLOB) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-62acc52261dbcce0",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-62acc52261dbcce0",
      "signature": "arg_max(arg: INTEGER, val: DATE) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-dfd6e7cf3731ed04",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-dfd6e7cf3731ed04",
      "signature": "arg_max(arg: INTEGER, val: DOUBLE) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-338f56f075a0471b",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-338f56f075a0471b",
      "signature": "arg_max(arg: INTEGER, val: HUGEINT) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b63676408ef94995",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b63676408ef94995",
      "signature": "arg_max(arg: INTEGER, val: INTEGER) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-df62ac2716b062a8",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-df62ac2716b062a8",
      "signature": "arg_max(arg: INTEGER, val: TIMESTAMP) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-7f9162fba25dabfa",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-7f9162fba25dabfa",
      "signature": "arg_max(arg: INTEGER, val: TIMESTAMP WITH TIME ZONE) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-71db361695a57d5a",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-71db361695a57d5a",
      "signature": "arg_max(arg: INTEGER, val: VARCHAR) → INTEGER",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "INTEGER",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "INTEGER",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "INTEGER",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-d3c6c1e11dc66648",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-d3c6c1e11dc66648",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: BIGINT) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b48fcfbfabccd4ec",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b48fcfbfabccd4ec",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: BLOB) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-3120d4a422e14167",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-3120d4a422e14167",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: DATE) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-9dd3801de9955c95",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-9dd3801de9955c95",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: DOUBLE) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-919c4490fe047353",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-919c4490fe047353",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: HUGEINT) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-548d16ded4ba47aa",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-548d16ded4ba47aa",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: INTEGER) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-3901c78894ab394d",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-3901c78894ab394d",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: TIMESTAMP) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-cd63c28260372aaa",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-cd63c28260372aaa",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: TIMESTAMP WITH TIME ZONE) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-8c70571bb4cbe25a",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-8c70571bb4cbe25a",
      "signature": "arg_max(arg: TIMESTAMP WITH TIME ZONE, val: VARCHAR) → TIMESTAMP WITH TIME ZONE",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP WITH TIME ZONE",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP WITH TIME ZONE",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-42e116ebd6e725d9",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-42e116ebd6e725d9",
      "signature": "arg_max(arg: TIMESTAMP, val: BIGINT) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-7225e5f39929c776",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-7225e5f39929c776",
      "signature": "arg_max(arg: TIMESTAMP, val: BLOB) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-6ab27ecdaf789732",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-6ab27ecdaf789732",
      "signature": "arg_max(arg: TIMESTAMP, val: DATE) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-515a2a06a3fb519c",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-515a2a06a3fb519c",
      "signature": "arg_max(arg: TIMESTAMP, val: DOUBLE) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-a70158385641e8ba",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-a70158385641e8ba",
      "signature": "arg_max(arg: TIMESTAMP, val: HUGEINT) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-38c314c70c61d939",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-38c314c70c61d939",
      "signature": "arg_max(arg: TIMESTAMP, val: INTEGER) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b745d96703f34e27",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b745d96703f34e27",
      "signature": "arg_max(arg: TIMESTAMP, val: TIMESTAMP) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-2416cf4c897d7ff4",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-2416cf4c897d7ff4",
      "signature": "arg_max(arg: TIMESTAMP, val: TIMESTAMP WITH TIME ZONE) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-de217735eb97d0de",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-de217735eb97d0de",
      "signature": "arg_max(arg: TIMESTAMP, val: VARCHAR) → TIMESTAMP",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "TIMESTAMP",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "TIMESTAMP",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-b91324a5040691c1",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-b91324a5040691c1",
      "signature": "arg_max(arg: VARCHAR, val: BIGINT) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-de208abac8e161a8",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-de208abac8e161a8",
      "signature": "arg_max(arg: VARCHAR, val: BLOB) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "BLOB",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "BLOB"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e78df92c1bc33c95",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e78df92c1bc33c95",
      "signature": "arg_max(arg: VARCHAR, val: DATE) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DATE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "DATE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e236f30e0c6fa620",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e236f30e0c6fa620",
      "signature": "arg_max(arg: VARCHAR, val: DOUBLE) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "DOUBLE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "DOUBLE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-a06db911a329aee2",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-a06db911a329aee2",
      "signature": "arg_max(arg: VARCHAR, val: HUGEINT) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "HUGEINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "HUGEINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-2becb890c03b6e47",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-2becb890c03b6e47",
      "signature": "arg_max(arg: VARCHAR, val: INTEGER) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "INTEGER",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "INTEGER"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-e7da78b603d86fed",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-e7da78b603d86fed",
      "signature": "arg_max(arg: VARCHAR, val: TIMESTAMP) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "TIMESTAMP"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-6e45ea2f4b93dfe7",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-6e45ea2f4b93dfe7",
      "signature": "arg_max(arg: VARCHAR, val: TIMESTAMP WITH TIME ZONE) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "TIMESTAMP WITH TIME ZONE",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "TIMESTAMP WITH TIME ZONE"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-f309ec3468eb3827",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-f309ec3468eb3827",
      "signature": "arg_max(arg: VARCHAR, val: VARCHAR) → VARCHAR",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "VARCHAR",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "VARCHAR",
        "parameters": [
          "arg",
          "val"
        ],
        "parameter_types": [
          "VARCHAR",
          "VARCHAR"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    },
    {
      "id": "overload-d79c9572ccf781ee",
      "url": "/products/haybarn/functions/releases/duckdb-1.3.2/arg_max/#overload-d79c9572ccf781ee",
      "signature": "arg_max(arg: ANY, val: ANY, col2: BIGINT) → ANY[]",
      "parameterOrder": "catalog-order",
      "callingConvention": {
        "source": null,
        "parameters": [
          {
            "name": "arg",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "val",
            "type": "ANY",
            "mode": null,
            "position": null
          },
          {
            "name": "col2",
            "type": "BIGINT",
            "mode": null,
            "position": null
          }
        ],
        "positional": null,
        "named": null,
        "variadic": null,
        "evidence": null
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "arg_max",
        "function_type": "aggregate",
        "description": "Finds the row with the maximum val. Calculates the non-NULL arg expression at that row.",
        "comment": null,
        "return_type": "ANY[]",
        "parameters": [
          "arg",
          "val",
          "col2"
        ],
        "parameter_types": [
          "ANY",
          "ANY",
          "BIGINT"
        ],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": false,
        "internal": true,
        "examples": [
          "arg_max(A,B)"
        ],
        "stability": "CONSISTENT",
        "categories": [],
        "alias_of": null
      }
    }
  ],
  "editorial": {
    "argumentNotes": [],
    "recipes": []
  },
  "examples": [
    {
      "original": "arg_max(A,B)",
      "sql": "SELECT arg_max(A,B);",
      "overloadIds": [
        "overload-7a13cd64de4d1d57",
        "overload-8af6a66932f47f6e",
        "overload-f518d6c0f0a1da08",
        "overload-0905ae7763faacb1",
        "overload-31e60c1fc95ec249",
        "overload-e71eb89d2847860c",
        "overload-d25d2cdedcef39cf",
        "overload-bc66245450296d53",
        "overload-6994f06e5c8b45c0",
        "overload-54cbab4aff0b9161",
        "overload-6fa435197cb4b0f4",
        "overload-66d6bd89c95f59bf",
        "overload-25e7a8e7afeb663a",
        "overload-cb380c4575ec6e9c",
        "overload-cc7da9ef3380a4ba",
        "overload-9a46d6fc0c9acef0",
        "overload-3c9e05990da128e2",
        "overload-ab8b29bf1676924c",
        "overload-b8c942ff8eef9891",
        "overload-4222d3d4fba43f31",
        "overload-b5121a4af955dd9b",
        "overload-e798732a7d1542a8",
        "overload-33107e088955a655",
        "overload-d3c866a9f23a2f5f",
        "overload-1224567de6e1693b",
        "overload-1f9240e4fa20d261",
        "overload-599996b4117e1054",
        "overload-be3fcd3bcc4cc5a2",
        "overload-1face098a76423ff",
        "overload-1c6a251a20a76979",
        "overload-9259159219cd4a86",
        "overload-f70426ec2654db32",
        "overload-af6969ef3f056ede",
        "overload-261969f50c62f7cd",
        "overload-dddc1244f06d77d5",
        "overload-65edfd4a1eed42f1",
        "overload-f76bb49496e91ea2",
        "overload-929f7fc31b9b3e3e",
        "overload-93d5f0a5d7131e15",
        "overload-f84f20e2cbe9c8fb",
        "overload-dcb95e327c7efc08",
        "overload-4da1ff2df1a8692f",
        "overload-cbbd29631206f083",
        "overload-4f5bf1d783009bf0",
        "overload-66668253642d62d6",
        "overload-b645c32db667fd70",
        "overload-e1c36a72e245187a",
        "overload-a47acddb2c378efc",
        "overload-2ed8cdee645c88a4",
        "overload-e7f25b0da1a20041",
        "overload-77cdb387565cc05d",
        "overload-abbb813e8a0e47bb",
        "overload-1a7487471b7a2295",
        "overload-cd3046965902c896",
        "overload-f6e0ab4cd9e7c5ea",
        "overload-45c3722bfa95a48b",
        "overload-07cf10a23be1aff6",
        "overload-62acc52261dbcce0",
        "overload-dfd6e7cf3731ed04",
        "overload-338f56f075a0471b",
        "overload-b63676408ef94995",
        "overload-df62ac2716b062a8",
        "overload-7f9162fba25dabfa",
        "overload-71db361695a57d5a",
        "overload-d3c6c1e11dc66648",
        "overload-b48fcfbfabccd4ec",
        "overload-3120d4a422e14167",
        "overload-9dd3801de9955c95",
        "overload-919c4490fe047353",
        "overload-548d16ded4ba47aa",
        "overload-3901c78894ab394d",
        "overload-cd63c28260372aaa",
        "overload-8c70571bb4cbe25a",
        "overload-42e116ebd6e725d9",
        "overload-7225e5f39929c776",
        "overload-6ab27ecdaf789732",
        "overload-515a2a06a3fb519c",
        "overload-a70158385641e8ba",
        "overload-38c314c70c61d939",
        "overload-b745d96703f34e27",
        "overload-2416cf4c897d7ff4",
        "overload-de217735eb97d0de",
        "overload-b91324a5040691c1",
        "overload-de208abac8e161a8",
        "overload-e78df92c1bc33c95",
        "overload-e236f30e0c6fa620",
        "overload-a06db911a329aee2",
        "overload-2becb890c03b6e47",
        "overload-e7da78b603d86fed",
        "overload-6e45ea2f4b93dfe7",
        "overload-f309ec3468eb3827",
        "overload-d79c9572ccf781ee"
      ],
      "source": "engine-catalog",
      "verification": null
    }
  ],
  "translations": [
    {
      "function": "arg_max",
      "scope": "",
      "relation": "direct",
      "source": {
        "engine": "BigQuery",
        "dialect": "bigquery",
        "name": "max_by",
        "names": [
          "max_by"
        ],
        "sql": "SELECT MAX_BY(name, score) FROM table1"
      },
      "target": {
        "dialect": "duckdb",
        "name": "arg_max",
        "sql": "SELECT ARG_MAX(name, score) FROM table1"
      },
      "formatTokens": [],
      "executionVerified": false,
      "provenance": {
        "name": "SQLGlot",
        "commit": "3086608e6fd4c41c02dfba47171608d2b193fce2",
        "url": "https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_bigquery.py#L2836"
      }
    },
    {
      "function": "arg_max",
      "scope": "",
      "relation": "direct",
      "source": {
        "engine": "Presto",
        "dialect": "presto",
        "name": "max_by",
        "names": [
          "max_by"
        ],
        "sql": "SELECT MAX_BY(a.id, a.timestamp) FROM a"
      },
      "target": {
        "dialect": "duckdb",
        "name": "arg_max",
        "sql": "SELECT ARG_MAX(a.id, a.timestamp) FROM a"
      },
      "formatTokens": [],
      "executionVerified": false,
      "provenance": {
        "name": "SQLGlot",
        "commit": "3086608e6fd4c41c02dfba47171608d2b193fce2",
        "url": "https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_presto.py#L820"
      }
    },
    {
      "function": "arg_max",
      "scope": "",
      "relation": "direct",
      "source": {
        "engine": "Snowflake",
        "dialect": "snowflake",
        "name": "max_by",
        "names": [
          "max_by"
        ],
        "sql": "SELECT MAX_BY(a, b) FROM t"
      },
      "target": {
        "dialect": "duckdb",
        "name": "arg_max",
        "sql": "SELECT ARG_MAX(a, b) FROM t"
      },
      "formatTokens": [],
      "executionVerified": false,
      "provenance": {
        "name": "SQLGlot",
        "commit": "3086608e6fd4c41c02dfba47171608d2b193fce2",
        "url": "https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_snowflake.py#L6044"
      }
    }
  ],
  "runnableExamples": [
    {
      "function": "arg_max",
      "original": "arg_max(A, B)",
      "sql": "SELECT arg_max(A, B)\nFROM (VALUES\n  (10, 10),\n  (20, 20),\n  (NULL, NULL)\n) AS sample(\"A\", \"B\");",
      "source": "catalog-with-sample-data",
      "verification": {
        "engine": "haybarn-wasm",
        "packageVersion": "1.5.5-rc3",
        "sourceId": "105edd31b5",
        "binarySha256": "426638bc374fcc542fea93b251f885bfb7d221c68fcc0a5a81cc565d7e6ca180",
        "rowCount": 1
      }
    }
  ],
  "additionalDocumentation": [
    {
      "title": "Aggregate Functions",
      "url": "https://duckdb.org/docs/current/sql/functions/aggregates#arg_maxarg-val-n"
    }
  ],
  "availability": [
    {
      "snapshot": "haybarn-1.5.5-rc3",
      "observed": true,
      "overloadCount": 92,
      "matchingOverloadIds": [
        "overload-d79c9572ccf781ee",
        "overload-7a13cd64de4d1d57",
        "overload-8af6a66932f47f6e",
        "overload-f518d6c0f0a1da08",
        "overload-0905ae7763faacb1",
        "overload-31e60c1fc95ec249",
        "overload-e71eb89d2847860c",
        "overload-d25d2cdedcef39cf",
        "overload-6994f06e5c8b45c0",
        "overload-bc66245450296d53",
        "overload-54cbab4aff0b9161",
        "overload-6fa435197cb4b0f4",
        "overload-66d6bd89c95f59bf",
        "overload-25e7a8e7afeb663a",
        "overload-cb380c4575ec6e9c",
        "overload-cc7da9ef3380a4ba",
        "overload-9a46d6fc0c9acef0",
        "overload-ab8b29bf1676924c",
        "overload-3c9e05990da128e2",
        "overload-b8c942ff8eef9891",
        "overload-4222d3d4fba43f31",
        "overload-b5121a4af955dd9b",
        "overload-e798732a7d1542a8",
        "overload-33107e088955a655",
        "overload-d3c866a9f23a2f5f",
        "overload-1224567de6e1693b",
        "overload-599996b4117e1054",
        "overload-1f9240e4fa20d261",
        "overload-be3fcd3bcc4cc5a2",
        "overload-1face098a76423ff",
        "overload-1c6a251a20a76979",
        "overload-9259159219cd4a86",
        "overload-f70426ec2654db32",
        "overload-af6969ef3f056ede",
        "overload-261969f50c62f7cd",
        "overload-65edfd4a1eed42f1",
        "overload-dddc1244f06d77d5",
        "overload-f76bb49496e91ea2",
        "overload-929f7fc31b9b3e3e",
        "overload-93d5f0a5d7131e15",
        "overload-f84f20e2cbe9c8fb",
        "overload-dcb95e327c7efc08",
        "overload-4da1ff2df1a8692f",
        "overload-cbbd29631206f083",
        "overload-66668253642d62d6",
        "overload-4f5bf1d783009bf0",
        "overload-b645c32db667fd70",
        "overload-e1c36a72e245187a",
        "overload-a47acddb2c378efc",
        "overload-2ed8cdee645c88a4",
        "overload-e7f25b0da1a20041",
        "overload-77cdb387565cc05d",
        "overload-abbb813e8a0e47bb",
        "overload-cd3046965902c896",
        "overload-1a7487471b7a2295",
        "overload-f6e0ab4cd9e7c5ea",
        "overload-45c3722bfa95a48b",
        "overload-07cf10a23be1aff6",
        "overload-62acc52261dbcce0",
        "overload-dfd6e7cf3731ed04",
        "overload-338f56f075a0471b",
        "overload-b63676408ef94995",
        "overload-7f9162fba25dabfa",
        "overload-df62ac2716b062a8",
        "overload-71db361695a57d5a",
        "overload-d3c6c1e11dc66648",
        "overload-b48fcfbfabccd4ec",
        "overload-3120d4a422e14167",
        "overload-9dd3801de9955c95",
        "overload-919c4490fe047353",
        "overload-548d16ded4ba47aa",
        "overload-cd63c28260372aaa",
        "overload-3901c78894ab394d",
        "overload-8c70571bb4cbe25a",
        "overload-42e116ebd6e725d9",
        "overload-7225e5f39929c776",
        "overload-6ab27ecdaf789732",
        "overload-515a2a06a3fb519c",
        "overload-a70158385641e8ba",
        "overload-38c314c70c61d939",
        "overload-2416cf4c897d7ff4",
        "overload-b745d96703f34e27",
        "overload-de217735eb97d0de",
        "overload-b91324a5040691c1",
        "overload-de208abac8e161a8",
        "overload-e78df92c1bc33c95",
        "overload-e236f30e0c6fa620",
        "overload-a06db911a329aee2",
        "overload-2becb890c03b6e47",
        "overload-6e45ea2f4b93dfe7",
        "overload-e7da78b603d86fed",
        "overload-f309ec3468eb3827"
      ],
      "json": "/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/arg_max.json"
    },
    {
      "snapshot": "duckdb-1.5.5",
      "observed": true,
      "overloadCount": 92,
      "matchingOverloadIds": [
        "overload-d79c9572ccf781ee",
        "overload-7a13cd64de4d1d57",
        "overload-8af6a66932f47f6e",
        "overload-f518d6c0f0a1da08",
        "overload-0905ae7763faacb1",
        "overload-31e60c1fc95ec249",
        "overload-e71eb89d2847860c",
        "overload-d25d2cdedcef39cf",
        "overload-6994f06e5c8b45c0",
        "overload-bc66245450296d53",
        "overload-54cbab4aff0b9161",
        "overload-6fa435197cb4b0f4",
        "overload-66d6bd89c95f59bf",
        "overload-25e7a8e7afeb663a",
        "overload-cb380c4575ec6e9c",
        "overload-cc7da9ef3380a4ba",
        "overload-9a46d6fc0c9acef0",
        "overload-ab8b29bf1676924c",
        "overload-3c9e05990da128e2",
        "overload-b8c942ff8eef9891",
        "overload-4222d3d4fba43f31",
        "overload-b5121a4af955dd9b",
        "overload-e798732a7d1542a8",
        "overload-33107e088955a655",
        "overload-d3c866a9f23a2f5f",
        "overload-1224567de6e1693b",
        "overload-599996b4117e1054",
        "overload-1f9240e4fa20d261",
        "overload-be3fcd3bcc4cc5a2",
        "overload-1face098a76423ff",
        "overload-1c6a251a20a76979",
        "overload-9259159219cd4a86",
        "overload-f70426ec2654db32",
        "overload-af6969ef3f056ede",
        "overload-261969f50c62f7cd",
        "overload-65edfd4a1eed42f1",
        "overload-dddc1244f06d77d5",
        "overload-f76bb49496e91ea2",
        "overload-929f7fc31b9b3e3e",
        "overload-93d5f0a5d7131e15",
        "overload-f84f20e2cbe9c8fb",
        "overload-dcb95e327c7efc08",
        "overload-4da1ff2df1a8692f",
        "overload-cbbd29631206f083",
        "overload-66668253642d62d6",
        "overload-4f5bf1d783009bf0",
        "overload-b645c32db667fd70",
        "overload-e1c36a72e245187a",
        "overload-a47acddb2c378efc",
        "overload-2ed8cdee645c88a4",
        "overload-e7f25b0da1a20041",
        "overload-77cdb387565cc05d",
        "overload-abbb813e8a0e47bb",
        "overload-cd3046965902c896",
        "overload-1a7487471b7a2295",
        "overload-f6e0ab4cd9e7c5ea",
        "overload-45c3722bfa95a48b",
        "overload-07cf10a23be1aff6",
        "overload-62acc52261dbcce0",
        "overload-dfd6e7cf3731ed04",
        "overload-338f56f075a0471b",
        "overload-b63676408ef94995",
        "overload-7f9162fba25dabfa",
        "overload-df62ac2716b062a8",
        "overload-71db361695a57d5a",
        "overload-d3c6c1e11dc66648",
        "overload-b48fcfbfabccd4ec",
        "overload-3120d4a422e14167",
        "overload-9dd3801de9955c95",
        "overload-919c4490fe047353",
        "overload-548d16ded4ba47aa",
        "overload-cd63c28260372aaa",
        "overload-3901c78894ab394d",
        "overload-8c70571bb4cbe25a",
        "overload-42e116ebd6e725d9",
        "overload-7225e5f39929c776",
        "overload-6ab27ecdaf789732",
        "overload-515a2a06a3fb519c",
        "overload-a70158385641e8ba",
        "overload-38c314c70c61d939",
        "overload-2416cf4c897d7ff4",
        "overload-b745d96703f34e27",
        "overload-de217735eb97d0de",
        "overload-b91324a5040691c1",
        "overload-de208abac8e161a8",
        "overload-e78df92c1bc33c95",
        "overload-e236f30e0c6fa620",
        "overload-a06db911a329aee2",
        "overload-2becb890c03b6e47",
        "overload-6e45ea2f4b93dfe7",
        "overload-e7da78b603d86fed",
        "overload-f309ec3468eb3827"
      ],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.5.5/functions/arg_max.json"
    },
    {
      "snapshot": "duckdb-1.4.4",
      "observed": true,
      "overloadCount": 92,
      "matchingOverloadIds": [
        "overload-d79c9572ccf781ee",
        "overload-7a13cd64de4d1d57",
        "overload-8af6a66932f47f6e",
        "overload-f518d6c0f0a1da08",
        "overload-0905ae7763faacb1",
        "overload-31e60c1fc95ec249",
        "overload-e71eb89d2847860c",
        "overload-d25d2cdedcef39cf",
        "overload-6994f06e5c8b45c0",
        "overload-bc66245450296d53",
        "overload-54cbab4aff0b9161",
        "overload-6fa435197cb4b0f4",
        "overload-66d6bd89c95f59bf",
        "overload-25e7a8e7afeb663a",
        "overload-cb380c4575ec6e9c",
        "overload-cc7da9ef3380a4ba",
        "overload-9a46d6fc0c9acef0",
        "overload-ab8b29bf1676924c",
        "overload-3c9e05990da128e2",
        "overload-b8c942ff8eef9891",
        "overload-4222d3d4fba43f31",
        "overload-b5121a4af955dd9b",
        "overload-e798732a7d1542a8",
        "overload-33107e088955a655",
        "overload-d3c866a9f23a2f5f",
        "overload-1224567de6e1693b",
        "overload-599996b4117e1054",
        "overload-1f9240e4fa20d261",
        "overload-be3fcd3bcc4cc5a2",
        "overload-1face098a76423ff",
        "overload-1c6a251a20a76979",
        "overload-9259159219cd4a86",
        "overload-f70426ec2654db32",
        "overload-af6969ef3f056ede",
        "overload-261969f50c62f7cd",
        "overload-65edfd4a1eed42f1",
        "overload-dddc1244f06d77d5",
        "overload-f76bb49496e91ea2",
        "overload-929f7fc31b9b3e3e",
        "overload-93d5f0a5d7131e15",
        "overload-f84f20e2cbe9c8fb",
        "overload-dcb95e327c7efc08",
        "overload-4da1ff2df1a8692f",
        "overload-cbbd29631206f083",
        "overload-66668253642d62d6",
        "overload-4f5bf1d783009bf0",
        "overload-b645c32db667fd70",
        "overload-e1c36a72e245187a",
        "overload-a47acddb2c378efc",
        "overload-2ed8cdee645c88a4",
        "overload-e7f25b0da1a20041",
        "overload-77cdb387565cc05d",
        "overload-abbb813e8a0e47bb",
        "overload-cd3046965902c896",
        "overload-1a7487471b7a2295",
        "overload-f6e0ab4cd9e7c5ea",
        "overload-45c3722bfa95a48b",
        "overload-07cf10a23be1aff6",
        "overload-62acc52261dbcce0",
        "overload-dfd6e7cf3731ed04",
        "overload-338f56f075a0471b",
        "overload-b63676408ef94995",
        "overload-7f9162fba25dabfa",
        "overload-df62ac2716b062a8",
        "overload-71db361695a57d5a",
        "overload-d3c6c1e11dc66648",
        "overload-b48fcfbfabccd4ec",
        "overload-3120d4a422e14167",
        "overload-9dd3801de9955c95",
        "overload-919c4490fe047353",
        "overload-548d16ded4ba47aa",
        "overload-cd63c28260372aaa",
        "overload-3901c78894ab394d",
        "overload-8c70571bb4cbe25a",
        "overload-42e116ebd6e725d9",
        "overload-7225e5f39929c776",
        "overload-6ab27ecdaf789732",
        "overload-515a2a06a3fb519c",
        "overload-a70158385641e8ba",
        "overload-38c314c70c61d939",
        "overload-2416cf4c897d7ff4",
        "overload-b745d96703f34e27",
        "overload-de217735eb97d0de",
        "overload-b91324a5040691c1",
        "overload-de208abac8e161a8",
        "overload-e78df92c1bc33c95",
        "overload-e236f30e0c6fa620",
        "overload-a06db911a329aee2",
        "overload-2becb890c03b6e47",
        "overload-6e45ea2f4b93dfe7",
        "overload-e7da78b603d86fed",
        "overload-f309ec3468eb3827"
      ],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.4.4/functions/arg_max.json"
    },
    {
      "snapshot": "duckdb-1.3.2",
      "observed": true,
      "overloadCount": 92,
      "matchingOverloadIds": [
        "overload-d79c9572ccf781ee",
        "overload-7a13cd64de4d1d57",
        "overload-8af6a66932f47f6e",
        "overload-f518d6c0f0a1da08",
        "overload-0905ae7763faacb1",
        "overload-31e60c1fc95ec249",
        "overload-e71eb89d2847860c",
        "overload-d25d2cdedcef39cf",
        "overload-6994f06e5c8b45c0",
        "overload-bc66245450296d53",
        "overload-54cbab4aff0b9161",
        "overload-6fa435197cb4b0f4",
        "overload-66d6bd89c95f59bf",
        "overload-25e7a8e7afeb663a",
        "overload-cb380c4575ec6e9c",
        "overload-cc7da9ef3380a4ba",
        "overload-9a46d6fc0c9acef0",
        "overload-ab8b29bf1676924c",
        "overload-3c9e05990da128e2",
        "overload-b8c942ff8eef9891",
        "overload-4222d3d4fba43f31",
        "overload-b5121a4af955dd9b",
        "overload-e798732a7d1542a8",
        "overload-33107e088955a655",
        "overload-d3c866a9f23a2f5f",
        "overload-1224567de6e1693b",
        "overload-599996b4117e1054",
        "overload-1f9240e4fa20d261",
        "overload-be3fcd3bcc4cc5a2",
        "overload-1face098a76423ff",
        "overload-1c6a251a20a76979",
        "overload-9259159219cd4a86",
        "overload-f70426ec2654db32",
        "overload-af6969ef3f056ede",
        "overload-261969f50c62f7cd",
        "overload-65edfd4a1eed42f1",
        "overload-dddc1244f06d77d5",
        "overload-f76bb49496e91ea2",
        "overload-929f7fc31b9b3e3e",
        "overload-93d5f0a5d7131e15",
        "overload-f84f20e2cbe9c8fb",
        "overload-dcb95e327c7efc08",
        "overload-4da1ff2df1a8692f",
        "overload-cbbd29631206f083",
        "overload-66668253642d62d6",
        "overload-4f5bf1d783009bf0",
        "overload-b645c32db667fd70",
        "overload-e1c36a72e245187a",
        "overload-a47acddb2c378efc",
        "overload-2ed8cdee645c88a4",
        "overload-e7f25b0da1a20041",
        "overload-77cdb387565cc05d",
        "overload-abbb813e8a0e47bb",
        "overload-cd3046965902c896",
        "overload-1a7487471b7a2295",
        "overload-f6e0ab4cd9e7c5ea",
        "overload-45c3722bfa95a48b",
        "overload-07cf10a23be1aff6",
        "overload-62acc52261dbcce0",
        "overload-dfd6e7cf3731ed04",
        "overload-338f56f075a0471b",
        "overload-b63676408ef94995",
        "overload-7f9162fba25dabfa",
        "overload-df62ac2716b062a8",
        "overload-71db361695a57d5a",
        "overload-d3c6c1e11dc66648",
        "overload-b48fcfbfabccd4ec",
        "overload-3120d4a422e14167",
        "overload-9dd3801de9955c95",
        "overload-919c4490fe047353",
        "overload-548d16ded4ba47aa",
        "overload-cd63c28260372aaa",
        "overload-3901c78894ab394d",
        "overload-8c70571bb4cbe25a",
        "overload-42e116ebd6e725d9",
        "overload-7225e5f39929c776",
        "overload-6ab27ecdaf789732",
        "overload-515a2a06a3fb519c",
        "overload-a70158385641e8ba",
        "overload-38c314c70c61d939",
        "overload-2416cf4c897d7ff4",
        "overload-b745d96703f34e27",
        "overload-de217735eb97d0de",
        "overload-b91324a5040691c1",
        "overload-de208abac8e161a8",
        "overload-e78df92c1bc33c95",
        "overload-e236f30e0c6fa620",
        "overload-a06db911a329aee2",
        "overload-2becb890c03b6e47",
        "overload-6e45ea2f4b93dfe7",
        "overload-e7da78b603d86fed",
        "overload-f309ec3468eb3827"
      ],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.3.2/functions/arg_max.json"
    }
  ]
}
